-
Notifications
You must be signed in to change notification settings - Fork 486
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: link_parent more realible and delete topic partitions #4219
Conversation
4dc63b2
to
a675410
Compare
a675410
to
0a300db
Compare
7e4bb89
to
40c8f1a
Compare
40c8f1a
to
a7098fb
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.
Fix seems to look good. Can you add CLI Test as described in the issue?
fluvio topic create data
fluvio topic add-partition data
fluvio topic add-partition data
fluvio topic add-partition data
fluvio topic add-partition data
fluvio topic add-partition data
fluvio topic delete data
fluvio partition list
I created one at #4094 at |
But then that didn't catch error. Can you create PR to reproduce bug? |
The #4094 fixed this bug with changes at I can create a PR with only |
Let's not revert anything. This PR should be suffice for fix but we should make sure we can reproduce and confirm fix is applied. Since this bug can be manually reproduced, let's create PR to reproduce the bug (test should confirm bug). Once that is in, this PR should update test to assert bug fix is working |
…ren_to_parents_with_stale_version
5ba25e6
to
30f7bc7
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.
LGTM
The fix of #4094 was a wrong fix to have sure that all partitions are childrens of its Topic.
I reverted this PR, and I made the
link_parent
andunlink_parent
more reliable.Because they were being called correct, but
link_parent
it was using stale objects.Now they are getting the parent from the store to have sure to not lose data.
How to test:
Must output no results.
This should also fix logs like these after each 5min (SC_RECONCILIATION_INTERVAL_SEC):