kafka icon indicating copy to clipboard operation
kafka copied to clipboard

KAFKA-15556: Remove NetworkClientDelegate methods isUnavailable, maybeThrowAuthFailure, and tryConnect

Open Phuc-Hong-Tran opened this issue 2 years ago • 14 comments

Change:

*Refactored AbstractFetch so only Fetcher will check for node status when creating fetch requests.

Committer Checklist (excluded from commit message)

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

Phuc-Hong-Tran avatar Dec 15 '23 03:12 Phuc-Hong-Tran

@philipnee, I closed the other PR since closing and opening it again doesn't trigger the CI to start. Here is the context for this PR: https://github.com/apache/kafka/pull/14406#discussion_r1338972414

Phuc-Hong-Tran avatar Dec 15 '23 03:12 Phuc-Hong-Tran

@philipnee, all builds succeed, test failures looks unrelated. PTAL, thanks.

Phuc-Hong-Tran avatar Dec 15 '23 18:12 Phuc-Hong-Tran

@philipnee @kirktrue, Please take a look if you guys have some free time. Thanks in advance.

Phuc-Hong-Tran avatar Dec 28 '23 04:12 Phuc-Hong-Tran

@philipnee, Thanks for the comments. When you said I should rethink about the approach, are you suggesting that I should start over from the idea phase?

Phuc-Hong-Tran avatar Jan 03 '24 14:01 Phuc-Hong-Tran

hi @Phuc-Hong-Tran - yes, the abstractFetch implementation is based on the LegacyKafkaConsumer and therefore requires connection probing. We don't need that in the AsyncKafkaConsumer as it is being done right before sending out the requests.

philipnee avatar Jan 03 '24 19:01 philipnee

I understand, will get another PR out ASAP.

Phuc-Hong-Tran avatar Jan 04 '24 00:01 Phuc-Hong-Tran

@philipnee, PTAL, thanks in advance.

Phuc-Hong-Tran avatar Jan 04 '24 14:01 Phuc-Hong-Tran

@philipnee, is there anything else that I should change?

Phuc-Hong-Tran avatar Jan 05 '24 20:01 Phuc-Hong-Tran

hi @Phuc-Hong-Tran - thanks for the PR. Could you also clean up the isUnavailable and maybeThrowAuthFailure methods in the networkClientDelegate. I believe they aren't being used anywhere.

philipnee avatar Feb 08 '24 18:02 philipnee

@philipnee Will do

Phuc-Hong-Tran avatar Feb 09 '24 13:02 Phuc-Hong-Tran

@philipnee All done

Phuc-Hong-Tran avatar Feb 09 '24 13:02 Phuc-Hong-Tran

@Phuc-Hong-Tran—is this PR ready for review?

kirktrue avatar Mar 26 '24 18:03 kirktrue

@kirktrue, it's ready for review

Phuc-Hong-Tran avatar Mar 26 '24 21:03 Phuc-Hong-Tran

This PR is being marked as stale since it has not had any activity in 90 days. If you would like to keep this PR alive, please ask a committer for review. If the PR has merge conflicts, please update it with the latest from trunk (or appropriate release branch)

If this PR is no longer valid or desired, please feel free to close it. If no activity occurs in the next 30 days, it will be automatically closed.

github-actions[bot] avatar Jun 25 '24 03:06 github-actions[bot]

This PR is being marked as stale since it has not had any activity in 90 days. If you would like to keep this PR alive, please leave a comment asking for a review. If the PR has merge conflicts, update it with the latest from the base branch.

If you are having difficulty finding a reviewer, please reach out on the [mailing list](https://kafka.apache.org/contact).

If this PR is no longer valid or desired, please feel free to close it. If no activity occurs in the next 30 days, it will be automatically closed.

github-actions[bot] avatar Apr 05 '25 03:04 github-actions[bot]

This PR has been closed since it has not had any activity in 120 days. If you feel like this was a mistake, or you would like to continue working on it, please feel free to re-open the PR and ask for a review.

github-actions[bot] avatar May 05 '25 03:05 github-actions[bot]