Skip to content

MINOR: Move compression stream construction into CompressionType#2536

Closed
hachikuji wants to merge 2 commits intoapache:trunkfrom
hachikuji:minor-move-compression-io-construction
Closed

MINOR: Move compression stream construction into CompressionType#2536
hachikuji wants to merge 2 commits intoapache:trunkfrom
hachikuji:minor-move-compression-io-construction

Conversation

@hachikuji
Copy link
Copy Markdown
Contributor

No description provided.

@hachikuji hachikuji force-pushed the minor-move-compression-io-construction branch from 0310d57 to a115346 Compare February 10, 2017 18:52
@asfbot
Copy link
Copy Markdown

asfbot commented Feb 10, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.11/1633/
Test PASSed (JDK 8 and Scala 2.11).

@asfbot
Copy link
Copy Markdown

asfbot commented Feb 10, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.12/1630/
Test PASSed (JDK 8 and Scala 2.12).

@asfbot
Copy link
Copy Markdown

asfbot commented Feb 10, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk7-scala2.10/1630/
Test PASSed (JDK 7 and Scala 2.10).

Copy link
Copy Markdown
Member

@ijuma ijuma left a comment

Choose a reason for hiding this comment

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

Thanks for the PR. Seems like a good change, left one question.


public abstract DataOutputStream wrapForOutput(ByteBufferOutputStream buffer, byte messageVersion, int bufferSize);

public abstract DataInputStream wrapForInput(ByteBufferInputStream buffer, byte messageVersion);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should this return a DataInputStream or simply an InputStream? Seems like wrapping into a DataInputStream is not relevant for this class and can be done by the caller. Same for the output case.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Hmm.. That's fair. The annoying thing is that ByteBufferInputStream already implements DataInputStream, but maybe we could revert the change which provides that.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I see. I agree that making the inner class of ByteBufferInputStream top-level would be a little better. It would remove one level of indirection for the compressed case and remain the same for the uncompressed case.

@asfbot
Copy link
Copy Markdown

asfbot commented Feb 16, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk7-scala2.10/1713/
Test FAILed (JDK 7 and Scala 2.10).

@asfbot
Copy link
Copy Markdown

asfbot commented Feb 16, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.11/1716/
Test PASSed (JDK 8 and Scala 2.11).

@asfbot
Copy link
Copy Markdown

asfbot commented Feb 16, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.12/1713/
Test FAILed (JDK 8 and Scala 2.12).

Copy link
Copy Markdown
Member

@ijuma ijuma left a comment

Choose a reason for hiding this comment

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

Thanks for the updates, LGTM.

@asfgit asfgit closed this in 022d201 Feb 16, 2017
hachikuji added a commit to confluentinc/kafka that referenced this pull request Feb 23, 2017
Author: Jason Gustafson <jason@confluent.io>

Reviewers: Ismael Juma <ismael@juma.me.uk>

Closes apache#2536 from hachikuji/minor-move-compression-io-construction
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