Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KAFKA-15123: Add tests for ChunkedBytesStream #13941

Merged
merged 3 commits into from Jul 15, 2023

Conversation

riedelmax
Copy link
Contributor

Committer Checklist (excluded from commit message)

  • Verify design and implementation
  • Verify test coverage and CI build status
  • Verify documentation (including upgrade notes)

@divijvaidya divijvaidya added the tests Test fixes (including flaky tests) label Jul 3, 2023
inputBuf.position(inputBuf.capacity());
inputBuf.flip();

try (InputStream is = new ChunkedBytesStream(new ByteBufferInputStream(inputBuf.duplicate()), supplier, 10, true)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

we want to test this for both cases when skip is pushed down vs not, i.e. last argument is true and when last argument is false.

Copy link
Contributor

Choose a reason for hiding this comment

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

you can use @ParameterizedTest for true/false here instead of duplicating code.

@riedelmax
Copy link
Contributor Author

@divijvaidya Please have a look at my changes resolving your comments :)

Also, there are test failures on the CI and also some test failures in my local environemnt. However, I can absolutely not see any connection to my changes. What can I do to resolve this?

Do I have to rebase to upstream/trunk and force-push before this can be merged?

@divijvaidya
Copy link
Contributor

Hey @riedelmax
https://github.com/apache/kafka/pull/13941/files#r1258587583 comment is not resolved yet.

@riedelmax
Copy link
Contributor Author

Ups.. overlooked that. Thanks for pointing it out. I will fix it

@divijvaidya
Copy link
Contributor

CI tests have ChunkedBytesStream test as successful - https://ci-builds.apache.org/job/Kafka/job/kafka-pr/job/PR-13941/3/testReport/org.apache.kafka.common.utils/ChunkedBytesStreamTest/

Merging this one.

Copy link
Contributor

@divijvaidya divijvaidya 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 and congratulations for your first contribution to the Apache Kafka @riedelmax ! Looking forward to more contributions from you.

@divijvaidya divijvaidya merged commit 15418db into apache:trunk Jul 15, 2023
1 check failed
@riedelmax
Copy link
Contributor Author

Hey @divijvaidya
Thank you for your support :)

Cerchie pushed a commit to Cerchie/kafka that referenced this pull request Jul 25, 2023
Reviewers: Divij Vaidya <diviv@amazon.com>
@riedelmax riedelmax deleted the kafka-15123 branch September 8, 2023 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Test fixes (including flaky tests)
Projects
None yet
2 participants