Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 951 Bytes

README.md

File metadata and controls

13 lines (9 loc) · 951 Bytes

Traverse and Count All Nodes in an Apache Jackrabbit Oak Repository

The count nodes script for Oak repository will count the number of nodes. It traverses the whole repository including all hidden nodes under /oak:index finding any data corruptions along the way (e.g. SegmentNotFoundException in the case of Tar SegmentNodeStore, aka TarMK).

This is useful for fixing issues such as these:

  1. https://helpx.adobe.com/experience-manager/kb/offline-compaction-fails-with-SegmentNotFoundException-and-IllegalArgumentException.html
  2. https://helpx.adobe.com/experience-manager/kb/fix-inconsistencies-in-the-repository-when-segmentnotfound-issue.html
  3. https://helpx.adobe.com/experience-manager/kb/oak-blobstore-inconsistency-blobId.html

Instructions

A. Run with AEM / Sling / Oak process stopped and use oak-run-*.jar console tool

B. Run online via the Felix Groovy Script console