Skip to content

MINOR: Use FetchRequest v8 and ListOffsetRequest v3 in ReplicaFetcherThread#5342

Merged
ijuma merged 3 commits into
apache:trunkfrom
ijuma:use-fetch-v8-in-replica-fetcher
Jul 6, 2018
Merged

MINOR: Use FetchRequest v8 and ListOffsetRequest v3 in ReplicaFetcherThread#5342
ijuma merged 3 commits into
apache:trunkfrom
ijuma:use-fetch-v8-in-replica-fetcher

Conversation

@ijuma

@ijuma ijuma commented Jul 6, 2018

Copy link
Copy Markdown
Member

If inter.broker.protocol.version is 2.0-IV1 or newer. Also fixed ListOffsetRequest
so that v2 is used, if applicable.

Added a unit test that verifies that we use the latest version of the various
requests by default. Included a few minor tweaks to make testing easier.

Committer Checklist (excluded from commit message)

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

If inter.broker.protocol.version is 2.0-IV1 or newer.
@ijuma ijuma changed the title MINOR: Use FetchRequest v8 in ReplicaFetcherThread MINOR: Use FetchRequest v8 and ListOffsetRequest v3 in ReplicaFetcherThread Jul 6, 2018
@ijuma
ijuma requested review from hachikuji and rajinisivaram July 6, 2018 14:36
@ijuma
ijuma force-pushed the use-fetch-v8-in-replica-fetcher branch from 7983e67 to 49cfa6c Compare July 6, 2018 14:41
object UnboundedQuota extends ReplicaQuota {
override def isThrottled(topicPartition: TopicPartition): Boolean = false
override def isQuotaExceeded(): Boolean = false
override def isQuotaExceeded: Boolean = false

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.

Looks like the build failed because the usages of isQuotaExceeded() weren't updated?

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.

Oops, not sure how that happened. Will fix.

@rajinisivaram rajinisivaram left a comment

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.

@ijuma Thanks for the PR, LGTM

@ijuma

ijuma commented Jul 6, 2018

Copy link
Copy Markdown
Member Author

Merging to trunk and 2.0.

@ijuma
ijuma merged commit f54ba7c into apache:trunk Jul 6, 2018
@ijuma
ijuma deleted the use-fetch-v8-in-replica-fetcher branch July 6, 2018 21:35
ijuma added a commit that referenced this pull request Jul 6, 2018
…Thread (#5342)

If inter.broker.protocol.version is 2.0-IV1 or newer. Also fixed ListOffsetRequest
so that v2 is used, if applicable.

Added a unit test which verifies that we use the latest version of the various
requests by default. Included a few minor tweaks to make testing easier.

Reviewers: Rajini Sivaram <rajinisivaram@googlemail.com>
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