[ 
https://issues.apache.org/jira/browse/HBASE-18910?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrew Purtell reopened HBASE-18910:
------------------------------------

This change breaks RegionObserver implementors because it adds two methods to 
the interface:

{code}
index 8c5c15ab19..0bea61457c 100644
--- 
a/hbase-server/src/main/java/org/apache/hadoop/hbase/coprocessor/RegionObserver.java
+++ 
b/hbase-server/src/main/java/org/apache/hadoop/hbase/coprocessor/RegionObserver.java
@@ -1187,6 +1187,29 @@ public interface RegionObserver extends Coprocessor {
     List<Pair<byte[], String>> familyPaths) throws IOException;
 
   /**
+   * Called before moving bulk loaded hfile to region directory.
+   *
+   * @param ctx
+   * @param family column family
+   * @param pairs List of pairs of { HFile location in staging dir, HFile path 
in region dir }
+   * Each pair are for the same hfile.
+   * @throws IOException
+   */
+  void preCommitStoreFile(final ObserverContext<RegionCoprocessorEnvironment> 
ctx,
+      final byte[] family, final List<Pair<Path, Path>> pairs) throws 
IOException;
+
+  /**
+   * Called after moving bulk loaded hfile to region directory.
+   *
+   * @param ctx
+   * @param family column family
+   * @param srcPath Path to file before the move
+   * @param dstPath Path to file after the move
+   */
+  void postCommitStoreFile(final ObserverContext<RegionCoprocessorEnvironment> 
ctx,
+      final byte[] family, Path srcPath, Path dstPath) throws IOException;
+
+  /**
    * Called after bulkLoadHFile.
    *
    * @param ctx

{code}

This isn't allowed in a patch release, right?

[~mantonov]

> Backport HBASE-17292 "Add observer notification before bulk loaded hfile is 
> moved to region directory" to 1.3
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: HBASE-18910
>                 URL: https://issues.apache.org/jira/browse/HBASE-18910
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Guangxu Cheng
>            Assignee: Guangxu Cheng
>             Fix For: 1.3.2
>
>         Attachments: HBASE-18910.branch-1.3.v1.patch
>
>
> HBASE-18900 will backport HBASE-17290 to branch-1.3.But  HBASE-17290 is 
> dependent on HBASE-17292.so this issue will backport HBASE-17292 to 
> branch-1.3.



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

Reply via email to