You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/07/04 15:40:27 UTC

[GitHub] [pulsar] andrasbeni opened a new pull request, #16377: [refactor][java-client] Reduce code duplication in admin client

andrasbeni opened a new pull request, #16377:
URL: https://github.com/apache/pulsar/pull/16377

   ###Motivation
   
   The admin client uses GET requests frequently. Most of these code places share
   a simple InvocationCallback that completes a CompletableFuture with the response.
   By moving all this into a common place, the code will be cleaner, and GET requests
   will look more like other requests.
   
   ###Modifications
   
   Move the functionality implemented in InvocationCallbacks to a common place.
   Hide creation of CompletableFuture to be consistent with other HTTP method
   implementations (e.g. asyncPutRequest).
   
   - [ ] Make sure that the change passes the CI checks.
   
   This change is a trivial rework without any test coverage.
   
     - Dependencies (does it add or upgrade a dependency): (no)
     - The public API: (no)
     - The schema: (no)
     - The default values of configurations: (no)
     - The wire protocol: (no)
     - The rest endpoints: (no)
     - The admin cli options: (no)
     - Anything that affects deployment: (no)
   
   Need to update docs?
   
   - [X] `doc-not-needed`
   This is pure refactoring, no behavior is changed.
   
   


-- 
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: commits-unsubscribe@pulsar.apache.org

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


[GitHub] [pulsar] andrasbeni commented on pull request #16377: [refactor][java-client] Reduce code duplication in admin client

Posted by GitBox <gi...@apache.org>.
andrasbeni commented on PR #16377:
URL: https://github.com/apache/pulsar/pull/16377#issuecomment-1179737581

   /pulsarbot rerun-failure-checks
   
   


-- 
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: commits-unsubscribe@pulsar.apache.org

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


[GitHub] [pulsar] lhotari commented on pull request #16377: [refactor][java-client] Reduce code duplication in admin client

Posted by GitBox <gi...@apache.org>.
lhotari commented on PR #16377:
URL: https://github.com/apache/pulsar/pull/16377#issuecomment-1211177608

   Nice cleanup! Good work @andrasbeni 


-- 
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: commits-unsubscribe@pulsar.apache.org

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


[GitHub] [pulsar] codelipenghui merged pull request #16377: [refactor][java-client] Reduce code duplication in admin client

Posted by GitBox <gi...@apache.org>.
codelipenghui merged PR #16377:
URL: https://github.com/apache/pulsar/pull/16377


-- 
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: commits-unsubscribe@pulsar.apache.org

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


[GitHub] [pulsar] andrasbeni commented on pull request #16377: [refactor][java-client] Reduce code duplication in admin client

Posted by GitBox <gi...@apache.org>.
andrasbeni commented on PR #16377:
URL: https://github.com/apache/pulsar/pull/16377#issuecomment-1176168279

   /pulsarbot rerun-failure-checks


-- 
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: commits-unsubscribe@pulsar.apache.org

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