-
Notifications
You must be signed in to change notification settings - Fork 3.4k
HBASE-25880 remove files from filesCompacting when clear compaction queue #3261
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 1 commit
70a832c
452ef7b
191f643
a928f67
d5334bd
d278f87
1358039
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1953,6 +1953,22 @@ private void addToCompactingFiles(Collection<HStoreFile> filesToAdd) { | |
| Collections.sort(filesCompacting, storeEngine.getStoreFileManager().getStoreFileComparator()); | ||
| } | ||
|
|
||
| /** | ||
| * Remove the files from compacting files. This usually happens when we clear compaction queues. | ||
| */ | ||
| public void removeFromCompactingFiles(Collection<HStoreFile> filesToRemove) { | ||
| synchronized (filesCompacting) { | ||
| filesCompacting.removeAll(filesToRemove); | ||
| Collections.sort(filesCompacting, storeEngine.getStoreFileManager().getStoreFileComparator()); | ||
| } | ||
frostruan marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| } | ||
|
|
||
| public List<HStoreFile> getFilesCompacting() { | ||
|
||
| synchronized (filesCompacting) { | ||
| return Lists.newArrayList(filesCompacting); | ||
| } | ||
| } | ||
|
|
||
| private void removeUnneededFiles() throws IOException { | ||
| if (!conf.getBoolean("hbase.store.delete.expired.storefile", true)) { | ||
| return; | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.