Uh oh!
There was an error while loading. Please reload this page.
HBASE-27902 Utility to invoke coproc on multiple servers using AsyncAdmin - #5295
Conversation
Apache-HBase
commented
Jun 15, 2023
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Jun 15, 2023
💔 -1 overall
This message was automatically generated. |
Apache-HBase
commented
Jun 15, 2023
🎊 +1 overall
This message was automatically generated. |
virajjasani
commented
Jun 15, 2023
Thanks @jinggou checkstyle and spotless need fixes |
Apache-HBase
commented
Jun 16, 2023
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Jun 16, 2023
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Jun 16, 2023
🎊 +1 overall
This message was automatically generated. |
Apache9
left a comment
There was a problem hiding this comment.
I still do not think we need to add this method in the Admin interface, it is very easy to implement by our users. And even if we really want to add this support, a default method at the AsyncAdmin interface is enough? It can be done through public methods in AsyncAdmin interface...
virajjasani
commented
Jun 16, 2023
Thanks Duo, i understand your point but using FutureUtil utilities by client applications is not recommended given it is IA#Private.
fair enough, let me check this, thank you! |
Apache-HBase
commented
Jun 16, 2023
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Jun 16, 2023
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Jun 16, 2023
🎊 +1 overall
This message was automatically generated. |
Apache9
commented
Jun 17, 2023
What about introducing an IA.Public class called AsyncAdminClientUtils, and put this method there? |
virajjasani
commented
Jun 17, 2023
sorry, i didn't get it, which method? btw @jinggou brought the implementation to the default method in AsyncAdmin, this should also be good? WDYT? |
Apache9
commented
Jun 17, 2023
Just like this |
oh i see, but even same is fine with AsyncAdmin also since it is already IA#Public? but otherwise for this particular method, we are good with default implementation on AsyncAdmin as well right? we don't need AsyncAdminClientUtils because AsyncAdmin is already IA#Public, correct?
this is the current state of this PR and master branch PR #5266 |
Apache9
commented
Jun 17, 2023
AsyncAdmin is a more critical API, so do not want to add unnecessary methods to it. As I said at the very beginning, this could be done by combining with several methods in AsyncAdmin, which means it is redundant. But it is fine to introduce a helper class to put this method, to make our users write less code. That's my point. |
virajjasani
commented
Jun 19, 2023
Alright, as long as we have IA#Public API for this, it is fine, no problem with having new class: AsyncAdminClientUtils as IA.Public |
…iceOnAllRegionServers method
Apache-HBase
commented
Jun 20, 2023
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Jun 20, 2023
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Jun 20, 2023
🎊 +1 overall
This message was automatically generated. |
| adminMethodNames.remove("getConfiguration"); | ||
| adminMethodNames.removeAll(getMethodNames(Abortable.class)); | ||
| adminMethodNames.removeAll(getMethodNames(Closeable.class)); | ||
| asyncAdminMethodNames.remove("coprocessorServiceOnAllRegionServers"); |
There was a problem hiding this comment.
same as master branch PR, we might not need this change anymore
| adminMethodNames.remove("getConfiguration"); | ||
| adminMethodNames.removeAll(getMethodNames(Abortable.class)); | ||
| adminMethodNames.removeAll(getMethodNames(Closeable.class)); | ||
| asyncAdminMethodNames.remove("coprocessorServiceOnAllRegionServers"); |
Apache-HBase
commented
Jun 20, 2023
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Jun 20, 2023
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Jun 20, 2023
🎊 +1 overall
This message was automatically generated. |
…dmin (#5295) Signed-off-by: Duo Zhang <zhangduo@apache.org> Signed-off-by: Viraj Jasani <vjasani@apache.org>
…dmin (#5295) Signed-off-by: Duo Zhang <zhangduo@apache.org> Signed-off-by: Viraj Jasani <vjasani@apache.org>
…dmin (apache#5295) Signed-off-by: Duo Zhang <zhangduo@apache.org> Signed-off-by: Viraj Jasani <vjasani@apache.org> (cherry picked from commit 8c50433) Change-Id: I92c830ac6f4f5726561b66d5ec2bee86332df5df
No description provided.