hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-17292) Add observer notification before bulk loaded hfile is moved to region directory
Date Wed, 11 Oct 2017 00:40:01 GMT

    [ https://issues.apache.org/jira/browse/HBASE-17292?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16199626#comment-16199626
] 

Hudson commented on HBASE-17292:
--------------------------------

FAILURE: Integrated in Jenkins build HBase-1.3-JDK7 #302 (See [https://builds.apache.org/job/HBase-1.3-JDK7/302/])
HBASE-18910 Backport HBASE-17292 - revert due to incompatibility (tedyu: rev eb475f00af711455b4c31d47f06317529db62232)
* (edit) hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HStore.java
* (edit) hbase-server/src/main/java/org/apache/hadoop/hbase/coprocessor/BaseRegionObserver.java
* (edit) hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
* (edit) hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/RSRpcServices.java
* (edit) hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/Store.java
* (edit) hbase-server/src/main/java/org/apache/hadoop/hbase/coprocessor/RegionObserver.java
* (edit) hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionFileSystem.java
* (edit) hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/RegionCoprocessorHost.java


> Add observer notification before bulk loaded hfile is moved to region directory
> -------------------------------------------------------------------------------
>
>                 Key: HBASE-17292
>                 URL: https://issues.apache.org/jira/browse/HBASE-17292
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: Ted Yu
>            Assignee: Ted Yu
>             Fix For: 2.0.0, 1.4.0
>
>         Attachments: 17292.addendum, 17292.branch-1.v1.txt, 17292.v1.txt, 17292.v2.txt,
17292.v3.txt
>
>
> Currently the postBulkLoadHFile() hook notifies the locations of bulk loaded hfiles.
> However, if bulk load fails after hfile is moved to region directory but before postBulkLoadHFile()
hook is called, there is no way for pluggable components (replication - see HBASE-17290, backup
/ restore) to know which hfile(s) have been moved to region directory.
> Even if postBulkLoadHFile() is called in finally block, the write (to backup table or
zookeeper) issued from postBulkLoadHFile() may fail, ending up with same situation.
> This issue adds a preCommitStoreFile() hook which notifies path of to be committed hfile
before bulk loaded hfile is moved to region directory.
> With preCommitStoreFile() hook, write (to backup table or zookeeper) can be issued before
the movement of hfile.
> If write fails, IOException would make bulk load fail, not leaving hfile in region directory.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message