Skip to content

Commit

Permalink
[FLINK-10364][tests] Fix instability in NonHAQueryableStateFsBackendI…
Browse files Browse the repository at this point in the history
…TCase#testMapState

This closes apache#6975.
  • Loading branch information
StefanRRichter committed Nov 5, 2018
1 parent 31e0098 commit b9351fc
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -836,9 +836,11 @@ public void processElement(Tuple2<Integer, Long> value, Context ctx, Collector<O
false,
executor);

Tuple2<Integer, Long> value = future.get(deadline.timeLeft().toMillis(), TimeUnit.MILLISECONDS).get(key);
assertEquals("Key mismatch", key, value.f0.intValue());
if (expected == value.f1) {
Tuple2<Integer, Long> value =
future.get(deadline.timeLeft().toMillis(), TimeUnit.MILLISECONDS).get(key);

if (value != null && value.f0 != null && expected == value.f1) {
assertEquals("Key mismatch", key, value.f0.intValue());
success = true;
} else {
// Retry
Expand Down

0 comments on commit b9351fc

Please sign in to comment.