Hi All,
As part of cleaning up the repository we tried to do the offline compaction, Please find below the steps we followed :
To see the full effect of the online compaction later, just remove the checkpoints and don't actually run the offline compaction.
- Stop AEM instance
- run the oak-run.jar to find any old checkpoints : we are using oak-run-1.0.8.jar
java -jar oak-run-1.0.8.jar checkpoints your-install-folder/crx-quickstart/repository/segmentstore
We are getting the below exception
Exception in thread "main" java.lang.IllegalStateException
at com.google.common.base.Preconditions.checkState(Preconditions.java:134)
at org.apache.jackrabbit.oak.plugins.segment.Segment.<init>(Segment.java:129)
at org.apache.jackrabbit.oak.plugins.segment.file.FileStore.readSegment(FileStore.java:626)
at org.apache.jackrabbit.oak.plugins.segment.SegmentTracker.getSegment(SegmentTracker.java:117)
at org.apache.jackrabbit.oak.plugins.segment.SegmentId.getSegment(SegmentId.java:97)
at org.apache.jackrabbit.oak.plugins.segment.Record.getSegment(Record.java:82)
at org.apache.jackrabbit.oak.plugins.segment.SegmentNodeState.getTemplate(SegmentNodeState.java:74)
at org.apache.jackrabbit.oak.plugins.segment.SegmentNodeState.getChildNode(SegmentNodeState.java:334)
at org.apache.jackrabbit.oak.run.Main.checkpoints(Main.java:383)
at org.apache.jackrabbit.oak.run.Main.main(Main.java:139)
Kindly suggest if we are missing something?
Thanks,
RK