Skip to content
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

[3.4] pkg/ioutil: deflake TestPageWriterRandom #16558

Merged
merged 1 commit into from
Sep 8, 2023

Conversation

fuweid
Copy link
Member

@fuweid fuweid commented Sep 8, 2023

The PageWriter has cache buffer so that it doesn't call the Writer until the cache is almost full. Since the data's length is random, the pending bytes should be always less than cache buffer size, instead of page size.

Fix: #16255

(cherry picked from commit fddd1ad #16268 )

Please read https://github.com/etcd-io/etcd/blob/main/CONTRIBUTING.md#contribution-flow.

The PageWriter has cache buffer so that it doesn't call the Writer until
the cache is almost full. Since the data's length is random, the pending
bytes should be always less than cache buffer size, instead of page
size.

Fix: etcd-io#16255

Signed-off-by: Wei Fu <fuweid89@gmail.com>
(cherry picked from commit fddd1ad)
Signed-off-by: Wei Fu <fuweid89@gmail.com>
@ahrtr
Copy link
Member

ahrtr commented Sep 8, 2023

thx @fuweid for the quick fix.

@ahrtr ahrtr merged commit e35bf9d into etcd-io:release-3.4 Sep 8, 2023
12 checks passed
@jmhbnz jmhbnz mentioned this pull request Sep 25, 2023
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants