You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by aljoscha <gi...@git.apache.org> on 2016/11/04 13:54:33 UTC
[GitHub] flink pull request #2746: [FLINK-5019] Proper isRestored result for tasks th...
Github user aljoscha commented on a diff in the pull request:
https://github.com/apache/flink/pull/2746#discussion_r86549195
--- Diff: flink-tests/src/test/java/org/apache/flink/test/checkpointing/SavepointITCase.java ---
@@ -339,9 +339,12 @@ protected void run() {
SubtaskState subtaskState = taskState.getState(tdd.getIndexInSubtaskGroup());
assertNotNull(subtaskState);
- errMsg = "Initial operator state mismatch.";
- assertEquals(errMsg, subtaskState.getLegacyOperatorState(),
- tdd.getTaskStateHandles().getLegacyOperatorState());
+
+ if (subtaskState.hasState()) {
--- End diff --
I think this check can actually be replaced by `subtaskState.getLegacyOperatorState()` and if you do that there is no place in the code that calls `SubtaskState.hasState()`, making it obsolete.
Please correct me if I'm wrong. \U0001f605
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---