BukrosSzabolcs commented on a change in pull request #3786:
URL: https://github.com/apache/hbase/pull/3786#discussion_r736406688



##########
File path: 
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/compactions/Compactor.java
##########
@@ -537,4 +547,17 @@ protected InternalScanner createScanner(HStore store, 
ScanInfo scanInfo,
     return new StoreScanner(store, scanInfo, scanners, smallestReadPoint, 
earliestPutTs,
         dropDeletesFromRow, dropDeletesToRow);
   }
+
+  public List<Path> getCompactionTargets(){
+    if (writer == null){

Review comment:
       > Or do you plan to move the nulling of write to a resetWriter method?
   
   I'm planing to remove the `writer = null ` lines from `commitWriter` 
methods, it was not very pretty to begin with and create a `resetWriter` in 
`Compactor` we could expose through `StoreEngine` and call in 
`HStore.doCompaction`.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to