[
https://issues.apache.org/jira/browse/HBASE-26544?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17924477#comment-17924477
]
Nick Dimiduk commented on HBASE-26544:
--------------------------------------
These apis were built assuming a human operator in the loop, copy-pasting
output from one hbck2 command to an invocation of the next. I agree that we
should open up these pathways for programatic access.
> Add Admin or HBaseHbck method waiting for a procedure by pid
> ------------------------------------------------------------
>
> Key: HBASE-26544
> URL: https://issues.apache.org/jira/browse/HBASE-26544
> Project: HBase
> Issue Type: Improvement
> Reporter: Bryan Beaudreault
> Priority: Minor
>
> HBaseHbck methods like unassigns and assigns return a list of pids. It's hard
> to do anything with these pids because the GetProcedureResultRequest used by
> HBaseAdmin is not publicly accessible. It would be very helpful to expose theĀ
> waitProcedureResult method used by ProcedureFuture in HBaseAdmin, or
> something else like that.
> The use-case I have in mind is for a stuck region, where you might want to
> use HBaseHbck.unassigns followed by assigns. But you should not do assigns
> until the unassigns has finished, so we need a way to wait for the returned
> pids.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)