Skip to content

Conversation

@EnricoMi
Copy link
Contributor

What changes were proposed in this pull request?

Do not check for blocks that have already been found in data stream.

Why are the changes needed?

The method TestUtils.validateResult would pass check of a data stream returned by readClient.readShuffleBlockData() that contains duplicate blocks (let's say the first block in expectedData) while overall cardinality of blocks match expectation (let's say that first block is duplicated expectedData.size()-times). Such a situation should throw an assertion error.

Further, the inner loop can be left on match, which saves computation time.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Not tested.

Copy link
Member

@zuston zuston left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks @EnricoMi

@zuston zuston merged commit 6274da1 into apache:master Feb 1, 2024
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.

2 participants