-
Notifications
You must be signed in to change notification settings - Fork 595
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
fix: s3 source cannot read incremental files #18017
Conversation
Signed-off-by: tabVersion <[email protected]>
fe5754d
to
2c48e34
Compare
Signed-off-by: tabVersion <[email protected]>
Signed-off-by: tabVersion <[email protected]>
Signed-off-by: tabVersion <[email protected]>
Maybe related: #17991 |
e2e_test/s3/fs_source_v2_new_file.py
Outdated
time.sleep(10) | ||
|
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 make this test more robust? e.g., sth like: 1. upload some files. 2. check. 3. upload another batch of files. 4. check again
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.
I think it does the same thing
first check
do_test( |
check after upload
success_flag = check_for_new_files(FILE_NUM, ITEM_NUM_PER_FILE, fmt) |
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.
Then why it didn't catch the bug before? 👀
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.
I am surprised, too. 😄
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.
So can we make this test more robust like doing interleaving upload and check? If a single sleep
can affect the correctness, it seems too fragile.
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.
Sorry, I misunderstood it. do_test
is the first check, and check_for_new_files
is the second check. I just looked for the usage of check_for_new_files
and thought it's the only check.
New update:
|
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 reason why the CI didn't catch the bug is because CI passed even when test failed.
https://buildkite.com/risingwavelabs/main-cron/builds/3181#019175ab-4d30-44bd-aba4-562ab5ebd33a
Since I also modified this PR, this PR needs approval from another reviewer( @xxchan @fuyufjh ). Basically |
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.
Please fix test and CI
Signed-off-by: tabVersion <[email protected]>
Signed-off-by: tabVersion <[email protected]>
Signed-off-by: tabVersion <[email protected]>
Signed-off-by: tabVersion <[email protected]>
Signed-off-by: tabVersion <[email protected]>
…abs/risingwave into tab/fix-s3-read-file
This test( |
Signed-off-by: tabVersion <[email protected]> Co-authored-by: congyi <[email protected]> Co-authored-by: congyi wang <[email protected]>
Signed-off-by: tabVersion <[email protected]> Co-authored-by: congyi <[email protected]> Co-authored-by: congyi wang <[email protected]>
I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
prev fix does not handle the case right #17702
Checklist
./risedev check
(or alias,./risedev c
)Documentation
Release note
If this PR includes changes that directly affect users or other significant modifications relevant to the community, kindly draft a release note to provide a concise summary of these changes. Please prioritize highlighting the impact these changes will have on users.