Skip to content

KAFKA-2576; ConsumerPerformance hangs when SSL enabled for Multi-Partition Topic#236

Closed
ijuma wants to merge 1 commit into
apache:trunkfrom
ijuma:kafka-2576-ssl-multi-partition-topic-hang
Closed

KAFKA-2576; ConsumerPerformance hangs when SSL enabled for Multi-Partition Topic#236
ijuma wants to merge 1 commit into
apache:trunkfrom
ijuma:kafka-2576-ssl-multi-partition-topic-hang

Conversation

@ijuma

@ijuma ijuma commented Sep 23, 2015

Copy link
Copy Markdown
Member

We now write to the channel with an empty buffer when
there are pending bytes remaining and all data has been
sent.

We now write to the channel with an empty buffer when
there are pending bytes remaining and all data has been
sent.
@asfbot

asfbot commented Sep 23, 2015

Copy link
Copy Markdown

kafka-trunk-git-pr #501 FAILURE
Looks like there's a problem with this pull request

@harshach

Copy link
Copy Markdown

+1

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

NP: could this just be
if (buffer.hasRemaining)
written += channel.write(buffer)
else{...

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

No, because the buffer is mutated.

@benstopford

Copy link
Copy Markdown
Contributor

Tested this on an EC2 cluster and it looks good 👍

@ijuma

ijuma commented Sep 23, 2015

Copy link
Copy Markdown
Member Author

Thanks for testing Ben.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It seems that we can just reference ErrorMapping.EmptyByteBuffer?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

We could do that. A few concerns: it's a bit strange that the empty buffer lives in ErrorMapping, it doesn't seem to be used anywhere at the moment and ByteBuffer has a number of mutation methods (although most of them don't do anything for an empty buffer). If you think it's worth having a shared empty buffer, maybe we could put it in ApiUtils as a private[api] value?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ok. Then what you had is fine. Did the unit tests pass?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes, they passed when I ran them locally.

@asfgit asfgit closed this in 54dd6e3 Sep 24, 2015
@ijuma ijuma deleted the kafka-2576-ssl-multi-partition-topic-hang branch March 1, 2016 22:50
wyuka added a commit to wyuka/kafka that referenced this pull request Jan 8, 2022
…mentation (apache#236)

TICKET = LIKAFKA-21968
LI_DESCRIPTION = The observer interface lets us provide an implementation that provides the usage accounting data unit for the C2S V3 service.

EXIT_CRITERIA = MANUAL [""]

Co-authored-by: Lincong Li <lcli@linkedin.com>
wyuka added a commit to wyuka/kafka that referenced this pull request Mar 4, 2022
…mentation (apache#236)

TICKET = LIKAFKA-21968
LI_DESCRIPTION = The observer interface lets us provide an implementation that provides the usage accounting data unit for the C2S V3 service.

EXIT_CRITERIA = MANUAL [""]

Co-authored-by: Lincong Li <lcli@linkedin.com>
wyuka added a commit to wyuka/kafka that referenced this pull request Mar 28, 2022
…mentation (apache#236)

TICKET = LIKAFKA-21968
LI_DESCRIPTION = The observer interface lets us provide an implementation that provides the usage accounting data unit for the C2S V3 service.

EXIT_CRITERIA = MANUAL [""]

Co-authored-by: Lincong Li <lcli@linkedin.com>
wyuka added a commit to wyuka/kafka that referenced this pull request Jun 16, 2022
…mentation (apache#236)

TICKET = LIKAFKA-21968
LI_DESCRIPTION = The observer interface lets us provide an implementation that provides the usage accounting data unit for the C2S V3 service.

EXIT_CRITERIA = MANUAL [""]

Co-authored-by: Lincong Li <lcli@linkedin.com>
udaynpusa pushed a commit to mapr/kafka that referenced this pull request Jan 30, 2024
* KAFKA-855 could not get TopicInfo, err 13

* correctly added hadoop-common to tests

* moved new dependency configuration to testCompile section
davide-armand pushed a commit to aiven/kafka that referenced this pull request Dec 1, 2025
The main goal is to keep the Inkless topic creation as close as possible to the classic topic creation.
jeqo pushed a commit to aiven/kafka that referenced this pull request Jan 16, 2026
The main goal is to keep the Inkless topic creation as close as possible to the classic topic creation.
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.

5 participants