[GitHub] flink pull request #5417: [FLINK-8565][tests] Ensure locationBytes.length > ...

2018-02-06 Thread asfgit
Github user asfgit closed the pull request at:

https://github.com/apache/flink/pull/5417


---


[GitHub] flink pull request #5417: [FLINK-8565][tests] Ensure locationBytes.length > ...

2018-02-06 Thread zentol
GitHub user zentol opened a pull request:

https://github.com/apache/flink/pull/5417

[FLINK-8565][tests] Ensure locationBytes.length > 0 in CheckpointOptionsTest

This PR fixes a test instability in `CheckpointOptionsTest#testSavepoint`. 
The tests generated a byte array of a random size, which may also be 0. This 
caused an `IllegalArgumentException` when being passed to the 
`CheckpointStorageLocationReference` constructor.

We now add 1 to the randomly picked size, and compensate this addition by 
reducing the upper bound by 1.

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/zentol/flink 8565

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/flink/pull/5417.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #5417


commit 6e22d496f0a92c93660f20e137e59cd30087e199
Author: zentol 
Date:   2018-02-06T13:07:23Z

[FLINK-8565][tests] Ensure locationBytes.length > 0




---