[
https://issues.apache.org/jira/browse/HBASE-19417?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16279339#comment-16279339
]
Ted Yu commented on HBASE-19417:
--------------------------------
bq. You can change postBulkLoadHFile() to get rid of hasLoaded variable
The variable is used by BackupObserver.
bq. since map variable conveys that information
loaded variable is used afterwards:
{code}
builder.setLoaded(loaded);
{code}
My thinking was:
1. coprocessor hook doesn't need to use boolean expression to infer whether
bulk load has happened
2. the loaded variable is readily available
3. postBulkLoadHFile in branch-1.4 has loaded variable as well
what do you think ?
bq. Remove loaded variable in RSRpcServices#bulkLoadHFile
Answered above.
Will address the last point depending on your feedback.
> Remove boolean return value from postBulkLoadHFile hook
> -------------------------------------------------------
>
> Key: HBASE-19417
> URL: https://issues.apache.org/jira/browse/HBASE-19417
> Project: HBase
> Issue Type: Bug
> Reporter: Appy
> Assignee: Ted Yu
> Attachments: 19417.v1.txt, 19417.v2.txt, 19417.v3.txt, 19417.v4.txt,
> 19417.v5.txt, 19417.v6.txt, 19417.v7.txt
>
>
> See the discussion at the tail of HBASE-17123 where Appy pointed out that the
> override of loaded should be placed inside else block:
> {code}
> } else {
> // secure bulk load
> map = regionServer.secureBulkLoadManager.secureBulkLoadHFiles(region,
> request);
> }
> BulkLoadHFileResponse.Builder builder =
> BulkLoadHFileResponse.newBuilder();
> if (map != null) {
> loaded = true;
> }
> {code}
> This issue is to address the review comment.
> After several review iterations, here are the changes:
> * Return value of boolean for postBulkLoadHFile() hook are changed to void.
> * Coprocessor hooks (pre and post) are added for the scenario where bulk load
> manager is used.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)