HBASE-21959 - CompactionTool should close the store it uses for compacting 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>
This commit is contained in:
Wellington Chevreuil 2019-04-17 18:54:34 -07:00 committed by Andrew Purtell
parent 46e0e88056
commit 539de1cae9
No known key found for this signature in database
GPG Key ID: 8597754DD5365CCD
1 changed files with 2 additions and 0 deletions

View File

@ -171,6 +171,8 @@ public class CompactionTool extends Configured implements Tool {
}
}
} while (store.needsCompaction() && !compactOnce);
//We need to close the store properly, to make sure it will archive compacted files
store.close();
}
/**