Github user poornachandra commented on a diff in the pull request:

    https://github.com/apache/incubator-tephra/pull/34#discussion_r100648684
  
    --- Diff: 
tephra-hbase-compat-1.1-base/src/main/java/org/apache/tephra/hbase/txprune/DataJanitorState.java
 ---
    @@ -366,6 +371,56 @@ public void 
deleteInactiveTransactionBoundsOnOrBeforeTime(long time) throws IOEx
         }
       }
     
    +  // --------------------------------------------------------
    +  // ------- Methods for empty regions at a given time -------
    +  // --------------------------------------------------------
    +  // Key: 0x4<time><region-id>
    +  // Col 'e': <empty byte array>
    +  // --------------------------------------------------------
    +
    +  /**
    +   * Save the given region as empty as of the given time.
    +   *
    +   * @param time time in milliseconds
    +   * @param regionId region id
    +   */
    +  public void saveEmptyRegionForTime(long time, byte[] regionId) throws 
IOException {
    +    byte[] timeBytes = Bytes.toBytes(time);
    +    try (Table stateTable = stateTableSupplier.get()) {
    +      Put put = new Put(makeEmptyRegionTimeKey(timeBytes, regionId));
    +      put.addColumn(FAMILY, EMPTY_REGION_TIME_COL, EMPTY_BYTE_ARRAY);
    --- End diff --
    
    Sure - will replace empty byte with '1'


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to