Russole commented on PR #23842:
URL: https://github.com/apache/kafka/pull/23842#issuecomment-6469641658
> Thanks. Made a pass.
>
> Few more things we could address, but it's not a must:
>
> ```
> (1) The Headers overloads of queryMetadataForKey are missing from the
list. They were added in 4.4 by KIP-1321 (cba250ead1). Their Javadoc warns that
without them, a partitioner or serializer that reads headers can return the
wrong host. This
> page already covers headers at length, and the PR's goal is to document
the current API, so one more sentence would fit.
>
> (2) The new "Attention" sentence could be more exact.
"queryMetadataForKey() cannot provide a usable host" is accurate, but you can
say what actually happens. StreamsMetadataState only builds metadata for hosts
that set application.server, so
> the active-host lookup never finds the owning instance. activeHost()
then returns HostInfo.unavailable() ("unavailable", port -1), and a standby on
that instance is simply absent from standbyHosts(). Saying so tells the reader
what to check
> for.
>
> (3) The two queryMetadataForKey bullets still say "find the one
application instance that holds the data". The new lead-in sentence says the
method returns the active and standby instances, so the bullets now contradict
it. Something like "find
> the active and standby instances for the key" would match.
> ```
Thanks, applied the suggestion.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]