You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Wuzhengyu97 (via GitHub)" <gi...@apache.org> on 2023/09/20 13:37:00 UTC

[GitHub] [kafka] Wuzhengyu97 opened a new pull request, #14411: MINOR: Used Admin instead of AdminClient to create Admin

Wuzhengyu97 opened a new pull request, #14411:
URL: https://github.com/apache/kafka/pull/14411

   Used Admin instead of AdminClient to create Admin
   ### Committer Checklist (excluded from commit message)
   - [ ] Verify design and implementation 
   - [ ] Verify test coverage and CI build status
   - [ ] Verify documentation (including upgrade notes)
   


-- 
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: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [kafka] dengziming commented on a diff in pull request #14411: MINOR: Used Admin instead of AdminClient to create Admin

Posted by "dengziming (via GitHub)" <gi...@apache.org>.
dengziming commented on code in PR #14411:
URL: https://github.com/apache/kafka/pull/14411#discussion_r1331706291


##########
storage/src/main/java/org/apache/kafka/server/log/remote/metadata/storage/TopicBasedRemoteLogMetadataManager.java:
##########
@@ -378,7 +377,7 @@ private void initializeResources() {
         long startTimeMs = time.milliseconds();
         Admin adminClient = null;
         try {
-            adminClient = AdminClient.create(rlmmConfig.commonProperties());
+            adminClient = Admin.create(rlmmConfig.commonProperties());

Review Comment:
   Thank you for this, can you also change the use of `AdminClient.create(Properties props)` .



-- 
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: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [kafka] dengziming merged pull request #14411: MINOR: Used Admin instead of AdminClient to create Admin

Posted by "dengziming (via GitHub)" <gi...@apache.org>.
dengziming merged PR #14411:
URL: https://github.com/apache/kafka/pull/14411


-- 
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: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [kafka] Wuzhengyu97 commented on a diff in pull request #14411: MINOR: Used Admin instead of AdminClient to create Admin

Posted by "Wuzhengyu97 (via GitHub)" <gi...@apache.org>.
Wuzhengyu97 commented on code in PR #14411:
URL: https://github.com/apache/kafka/pull/14411#discussion_r1331767791


##########
storage/src/main/java/org/apache/kafka/server/log/remote/metadata/storage/TopicBasedRemoteLogMetadataManager.java:
##########
@@ -378,7 +377,7 @@ private void initializeResources() {
         long startTimeMs = time.milliseconds();
         Admin adminClient = null;
         try {
-            adminClient = AdminClient.create(rlmmConfig.commonProperties());
+            adminClient = Admin.create(rlmmConfig.commonProperties());

Review Comment:
   Thanks for the heads up, I've made changes to all the code that uses `AdminClient.create(Properties props) `



-- 
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: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org