-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
executor: make the inserting errors more easier to understand (#24044) #26189
Changes from 3 commits
20572dc
a4fb20c
837acd6
e04181b
88cbdec
a3919e3
9abf9d0
b65ed00
58bdbbb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -155,7 +155,7 @@ func (s *testCoprocessorSuite) TestBuildTasks(c *C) { | |
func (s *testCoprocessorSuite) TestSplitRegionRanges(c *C) { | ||
// nil --- 'g' --- 'n' --- 't' --- nil | ||
// <- 0 -> <- 1 -> <- 2 -> <- 3 -> | ||
_, cluster, pdClient, err := testutils.NewMockTiKV("", nil) | ||
_, cluster, pdClient, _ := testutils.NewMockTiKV("", nil) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ditto |
||
testutils.BootstrapWithMultiRegions(cluster, []byte("g"), []byte("n"), []byte("t")) | ||
pdCli := &tikv.CodecPDClient{Client: pdClient} | ||
cache := NewRegionCache(tikv.NewRegionCache(pdCli)) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,7 +53,7 @@ import ( | |
type Tracker struct { | ||
mu struct { | ||
sync.Mutex | ||
// The children memory trackers. If the Tracker is the Global Tracker, like executor.GlobalDiskUsageTracker, | ||
// children memory trackers. If the Tracker is the Global Tracker, like executor.GlobalDiskUsageTracker, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why delete There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the goword abort the commit unless modified it. is this change too small to create another PR? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You mean that the I think one PR to do one thing is better, it's no problem to create a small PR to fix a typo or make lint happy. However, fixing many typos in one PR is better. ^_^ There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ok, thank you for reply |
||
// we wouldn't maintain its children in order to avoiding mutex contention. | ||
children map[int][]*Tracker | ||
} | ||
|
@@ -95,7 +95,6 @@ func InitTracker(t *Tracker, label int, bytesLimit int64, action ActionOnExceed) | |
t.bytesSoftLimit = int64(float64(bytesLimit) * softScale) | ||
t.maxConsumed = 0 | ||
t.isGlobal = false | ||
return | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ditto |
||
} | ||
|
||
// NewTracker creates a memory tracker. | ||
|
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.
It's duplicate with #26096.