5 Replies Latest reply on Dec 8, 2015 6:36 PM by Gokul2011

    problem cleaning segmentstore

    manisha_joshi

      Hi,

      I am trying to clean the segmentstore folder from the author instance in aem 6.Getting this exception.:

      Apache Jackrabbit Oak 1.0.8
      Checkpoints D:\hmonline\servers\cq-author\crx-quickstart\repository\segmentstore

      Exception in thread "main" java.lang.IllegalStateException
              at com.google.common.base.Preconditions.checkState(Preconditions.java:13
      4)
              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(S
      egmentTracker.java:117)
              at org.apache.jackrabbit.oak.plugins.segment.SegmentId.getSegment(Segmen
      tId.java:97)
       at org.apache.jackrabbit.oak.plugins.segment.SegmentNodeState.getTemplat
      e(SegmentNodeState.java:74)
              at org.apache.jackrabbit.oak.plugins.segment.SegmentNodeState.getChildNo
      de(SegmentNodeState.java:334)
              at org.apache.jackrabbit.oak.plugins.memory.MemoryNodeBuilder.<init>(Mem
      oryNodeBuilder.java:134)
              at org.apache.jackrabbit.oak.plugins.memory.MemoryNodeBuilder.createChil
      dBuilder(MemoryNodeBuilder.java:192)
              at org.apache.jackrabbit.oak.plugins.memory.MemoryNodeBuilder.getChildNo
      de(MemoryNodeBuilder.java:316)
              at org.apache.jackrabbit.oak.run.Main.checkpoints(Main.java:400)
              at org.apache.jackrabbit.oak.run.Main.main(Main.java:139)

      Please provide some solution

      • 0. Re: problem cleaning segmentstore
        Gokul2011 Level 1

        1.upgrade OAk to latest before running compaction tool.

        2.Also make sure if you have datastore separated from Segment store.