Skip to content

[BEAM-4798] Fix IndexOutOfBoundsException in Flink runner#6177

Merged
tweise merged 2 commits intoapache:masterfrom
aljoscha:finish-pr-5996-fix-source-splits
Aug 10, 2018
Merged

[BEAM-4798] Fix IndexOutOfBoundsException in Flink runner#6177
tweise merged 2 commits intoapache:masterfrom
aljoscha:finish-pr-5996-fix-source-splits

Conversation

@aljoscha
Copy link
Contributor

@aljoscha aljoscha commented Aug 8, 2018

This is an addition on top of #5996 that fixes the test so that it would have caught the bug that @aromanenko-dev fixed in #5996.

CC @aromanenko-dev

@tweise Maybe this is relevant to your work on portability but I don't think so. Neverthelesse, doesn't hurt to take a look. 😅

Post-Commit Tests Status (on master branch)

Lang SDK Apex Dataflow Flink Gearpump Samza Spark
Go Build Status --- --- --- --- --- ---
Java Build Status Build Status Build Status Build Status Build Status Build Status Build Status
Python Build Status --- Build Status
Build Status
--- --- --- ---

@aljoscha aljoscha requested a review from tweise August 8, 2018 12:56
@aljoscha aljoscha force-pushed the finish-pr-5996-fix-source-splits branch from 3dc7cb9 to fbf7dcd Compare August 8, 2018 12:57
@aljoscha
Copy link
Contributor Author

aljoscha commented Aug 8, 2018

Run Flink ValidatesRunner

@aljoscha
Copy link
Contributor Author

aljoscha commented Aug 8, 2018

retest this please

Copy link
Contributor

@aromanenko-dev aromanenko-dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for fixing this test, I just added one minor note.

actualNumSplits = desiredNumSplits;
} else {
actualNumSplits = fixedNumSplits;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe, this can be one line, like int actualNumSplits = (fixedNumSplits == -1) ? desiredNumSplits : fixedNumSplits

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, fixing

@aljoscha aljoscha force-pushed the finish-pr-5996-fix-source-splits branch from c8c55a8 to b1fa8d1 Compare August 9, 2018 08:39
@aljoscha
Copy link
Contributor Author

aljoscha commented Aug 9, 2018

retest this please

@aljoscha aljoscha force-pushed the finish-pr-5996-fix-source-splits branch from 1344d8a to 24d5bbe Compare August 9, 2018 14:26
@aljoscha
Copy link
Contributor Author

aljoscha commented Aug 9, 2018

retest this please

aromanenko-dev and others added 2 commits August 10, 2018 06:18
Before, the test did not try running the source with different simulated
subtask indices, i.e. we were not exercising many of the code paths.

This also fixes a bunch of concurrency issues in the source and test
that came up while extending it for simulating running at different
subtask indices.
@aljoscha aljoscha force-pushed the finish-pr-5996-fix-source-splits branch from 24d5bbe to 45a3efc Compare August 10, 2018 04:18
@aljoscha
Copy link
Contributor Author

Run Flink ValidatesRunner

@aromanenko-dev
Copy link
Contributor

Thank you @aljoscha for fixing the tests issue, LGTM

@aljoscha
Copy link
Contributor Author

@tweise Could you maybe have a look?

@tweise tweise merged commit a783cd6 into apache:master Aug 10, 2018
@aljoscha
Copy link
Contributor Author

thanks @tweise !

And thanks @aromanenko-dev for discovering and fixing it!

@aljoscha aljoscha deleted the finish-pr-5996-fix-source-splits branch August 10, 2018 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants