Skip to content

Commit

Permalink
HBASE-21959 - CompactionTool should close the store it uses for compa…
Browse files Browse the repository at this point in the history
…cting files, in order to properly archive compacted files.

Reapply without unit test

Change-Id: If852529e79274a77eb08cac13936f02776232608
Signed-off-by: Xu Cang <xucang@apache.org>
Amending-Author: Andrew Purtell <apurtell@apache.org>
  • Loading branch information
wchevreuil authored and apurtell committed Apr 18, 2019
1 parent 46e0e88 commit 539de1c
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,8 @@ private void compactStoreFiles(final Path tableDir, final HTableDescriptor htd,
}
}
} while (store.needsCompaction() && !compactOnce);
//We need to close the store properly, to make sure it will archive compacted files
store.close();
}

/**
Expand Down

0 comments on commit 539de1c

Please sign in to comment.