-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
*: don't handle live updates of column size #58596
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #58596 +/- ##
================================================
+ Coverage 73.5326% 74.4767% +0.9440%
================================================
Files 1680 1711 +31
Lines 464728 481843 +17115
================================================
+ Hits 341727 358861 +17134
+ Misses 102158 101381 -777
- Partials 20843 21601 +758
Flags with carried forward coverage won't be shown. Click here to find out more.
|
297fb21
to
111a58d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/hold
Thanks!
func (ctx *litTableMutateContext) UpdatePhysicalTableDelta( | ||
physicalTableID int64, _ int64, | ||
_ int64, cols variable.DeltaCols, | ||
func (*litTableMutateContext) UpdatePhysicalTableDelta( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we even delete this function? I believe we can delete the interface as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The interface MutateContext
will be used in the normal write path. We cannot delete the MutateContext
interface.
We can only let the litTableMutateContext
not impl the interface StatisticsSupport
and return a nil
for its GetStatisticsSupport
and add an intest.Assert(false)
inside it.
I think the changes in the latest commit are incorrect. |
b63ca1d
to
1805653
Compare
some tests like |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
require.Equal(t, map[int64]int64{1: 2, 3: 9, 4: 3}, tblCtx.GetColumnSize(123)) | ||
// test gets a non-existed table | ||
require.Empty(t, tblCtx.GetColumnSize(456)) | ||
stats.UpdatePhysicalTableDelta(123, 5, 2) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps we can delete them at all.
@winoros: The following test failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
/unhold |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@winoros @songrijie We need to make this change clearly stated in the document as well as communication with users.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cfzjywxk, lance6716, qw4990, Rustin170506, yudongusa The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
…long-vector * commit '510d0037b18f258f505abc6cf13a8128563e9359': *: upgrade pd client to make sure tso client initiate successfully (#58752) ttl, test: scale TTL workers during the fault tests (#58750) planner: improve warning messages for unsupported HASH_JOIN hints (#58646) planner: prealloc the slices in the SplitCorColAccessCondFromFilters (#58785) ddl: supports non-unique global index (#58678) util/stmtsummary: add the network traffic related fields (#58101) var: enable `pd_enable_follower_handle_region` as default (#58385) statistics: refactor stats meta handling to use DeltaUpdate for multi-table support (#58657) parser: move 'model' to 'ast' pkg (#58704) statistics: add recover to protect background task (#58739) disttask: cancel subtask context if scheduled away (#58615) *: don't handle live updates of column size (#58596) *: fix a bug for default_authentication_plugin (2) (#58723) dupdetect: gRPC cancel should trigger retry (#58542) *: fix a bug for default_authentication_plugin (#57391) distsql: Fix backoff execution info inaccurate issue (#58707)
In response to a cherrypick label: new pull request created to branch |
What problem does this PR solve?
Issue Number: close #58595
Problem Summary:
What changed and how does it work?
Just as the issue said. We dropped the maintenance of the column size updates during various DML statements.
Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.