-
Notifications
You must be signed in to change notification settings - Fork 13.8k
[FLINK-22494][ha] Introduce PossibleInconsistentStateException #15832
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
Closed
Closed
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
79b55b1
[hotfix][runtime] Fixes JavaDoc for RetrievableStateStorageHelper
XComp aaea5bd
[hotfix][runtime] Cleans up unnecessary annotations
XComp c903d54
[FLINK-22494][kubernetes] Introduces PossibleInconsistentStateException
XComp 102a09d
[FLINK-22494][ha] Refactors TestingLongStateHandleHelper to operate o…
XComp c74c671
[FLINK-22494][ha] Introduces PossibleInconsistentState to StateHandle…
XComp 6b2f070
[FLINK-22494][runtime] Refactors CheckpointsCleaner to handle also di…
XComp 4c7f59b
[FLINK-22494][runtime] Adds PossibleInconsistentStateException handli…
XComp File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -68,8 +68,8 @@ public void testMultipleKubernetesStateHandleStores() throws Exception { | |
| new TestingLeaderCallbackHandler[leaderNum]; | ||
|
|
||
| @SuppressWarnings("unchecked") | ||
| final KubernetesStateHandleStore<Long>[] stateHandleStores = | ||
| new KubernetesStateHandleStore[leaderNum]; | ||
| final KubernetesStateHandleStore<TestingLongStateHandleHelper.LongStateHandle>[] | ||
|
Contributor
Author
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. The Kubernetes-related ITCases are currently not running. I created FLINK-20564 to cover this. |
||
| stateHandleStores = new KubernetesStateHandleStore[leaderNum]; | ||
|
|
||
| try { | ||
| for (int i = 0; i < leaderNum; i++) { | ||
|
|
@@ -103,17 +103,19 @@ public void testMultipleKubernetesStateHandleStores() throws Exception { | |
| if (leaderCallbackHandlers[i].getLockIdentity().equals(lockIdentity)) { | ||
| expectedState = (long) i; | ||
| } | ||
| stateHandleStores[i].addAndLock(KEY, (long) i); | ||
| stateHandleStores[i].addAndLock( | ||
| KEY, new TestingLongStateHandleHelper.LongStateHandle(i)); | ||
| } | ||
|
|
||
| // Only the leader could add successfully | ||
| assertThat(expectedState, is(notNullValue())); | ||
| assertThat(stateHandleStores[0].getAllAndLock().size(), is(1)); | ||
| assertThat( | ||
| stateHandleStores[0].getAllAndLock().get(0).f0.retrieveState(), | ||
| stateHandleStores[0].getAllAndLock().get(0).f0.retrieveState().getValue(), | ||
| is(expectedState)); | ||
| assertThat(stateHandleStores[0].getAllAndLock().get(0).f1, is(KEY)); | ||
| } finally { | ||
| TestingLongStateHandleHelper.clearGlobalState(); | ||
| // Cleanup the resources | ||
| for (int i = 0; i < leaderNum; i++) { | ||
| if (leaderElectors[i] != null) { | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.