-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid opening compactor metadata tables on every shouldTrigger call (#…
…3600) When shouldTrigger initializes DistributedCheckpointerHelper on every call, it opens all the compactor metadata tables leading to excessive openTable logs. Hence, reuse distributedCheckpointerHelper from CompactorService
- Loading branch information
1 parent
c791382
commit d3c93e6
Showing
7 changed files
with
29 additions
and
27 deletions.
There are no files selected for viewing
3 changes: 2 additions & 1 deletion
3
infrastructure/src/main/java/org/corfudb/infrastructure/CompactionTriggerPolicy.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
package org.corfudb.infrastructure; | ||
|
||
import org.corfudb.runtime.DistributedCheckpointerHelper; | ||
import org.corfudb.runtime.collections.CorfuStore; | ||
|
||
public interface CompactionTriggerPolicy { | ||
boolean shouldTrigger(long interval, CorfuStore corfuStore) throws Exception; | ||
boolean shouldTrigger(long interval, CorfuStore corfuStore, DistributedCheckpointerHelper distributedCheckpointerHelper) throws Exception; | ||
|
||
void markCompactionCycleStart(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters