-
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
global sort: fix broken prop with onefile writer #49589
Changes from 6 commits
458b71c
e627537
4dd4f99
65ff794
b1cd3ec
cd7bff7
b26768f
6c81364
60ad208
9726cef
a5238bc
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 |
---|---|---|
|
@@ -148,7 +148,7 @@ func TestGlobalSortLocalWithMerge(t *testing.T) { | |
startKey = BytesMin(startKey, s.Min.Clone()) | ||
endKey = BytesMax(endKey, s.Max.Clone().Next()) | ||
} | ||
|
||
mergeMemSize := (rand.Intn(10) + 1) * 100 | ||
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. what does this “mergeMemSize := (rand.Intn(10) + 1) * 100” mean, why here use a random func? 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. Make the test run more cases to check different memSize/blockSize of writer can be used for writer. |
||
for _, group := range dataGroup { | ||
require.NoError(t, MergeOverlappingFiles( | ||
ctx, | ||
|
@@ -157,7 +157,8 @@ func TestGlobalSortLocalWithMerge(t *testing.T) { | |
int64(5*size.MB), | ||
100, | ||
"/test2", | ||
100, | ||
mergeMemSize, | ||
uint64(mergeMemSize), | ||
8*1024, | ||
100, | ||
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.
oops, I will rename it