Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
SegmentNodeStoreService checks to see if the segment store is primary before registering the BlobGCMbean.
With SegmentNodeStoreFactory the Configuration#isPrimarySegmentStore is always set to false. The intention is to not register the BlobGC when the the role is secondary in which case the condition should be changed to
ckrabbit/oak/segment/SegmentNodeStoreRegistrar.java IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/SegmentNodeStoreRegistrar.java (revision 9f1e8bdc6c91ba750ac1eea540fe59ac89ef9114) +++ oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/SegmentNodeStoreRegistrar.java (date 1535703785000) @@ -397,7 +397,7 @@ } } - if (cfg.isPrimarySegmentStore() && cfg.getBlobStore() instanceof GarbageCollectableBlobStore) { + if (!cfg.isSecondarySegmentStore() && cfg.getBlobStore() instanceof GarbageCollectableBlobStore) { BlobGarbageCollector gc = new MarkSweepGarbageCollector( new SegmentBlobReferenceRetriever(store), (GarbageCollectableBlobStore) cfg.getBlobStore(),