-
Notifications
You must be signed in to change notification settings - Fork 136
Ignite 24467 #7445
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
base: main
Are you sure you want to change the base?
Ignite 24467 #7445
Conversation
26719c2 to
e6f6aa3
Compare
|
|
||
| /** Constructor. */ | ||
| public AssignmentsQueue(AssignmentsQueue... assignmentsQueues) { | ||
| LinkedList<Assignments> assigments = new LinkedList<>(); |
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.
typo
| assertValuesPresentOnNodes(node.clock().now(), table, 0, 1, 2); | ||
|
|
||
| stopNodes(1, 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.
assertLogicalTopologyInMetastorage(List.of(0, 3, 4, 5), node);
| // Check that there is no ongoing or planned rebalance. | ||
| assertNull(getPendingAssignments(node0, partId)); | ||
|
|
||
| assertRealAssignments(node0, partId, 1); |
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.
let's also check scenario when offline nodes where filtered (in this case, node 2 also was removed)
| .target(Assignments.forced(Set.of(nextAssignment), assignmentsTimestamp)) | ||
| .toQueue(); | ||
|
|
||
| if (!manualUpdate) { |
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.
Let think about this zhopniy scenario
A(10), B(10), C(6)
A, B left
C leader -> we have pending realance that include A or B [A, B, C, E(0)]
C accepts some data -> C(10')
A, B restarted, they wont clean up their data
A(10), B(10), C(10'), E(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.
If A and B are left by the reset revision, they won’t be put into pending. When they start and recover, they will be destroyed.
If A and B are not left by the reset revision, they will win the election and become leader instead of C.
HA reset overwrites ongoing rebalance caused by the distribution zone filter change. Solution: append existing pendings to assigment queue during reset.
https://issues.apache.org/jira/browse/IGNITE-24467