AEM author segment store corruption during compaction job execution
Segment store corruption occurs in the AEM as a Cloud Service author environment after running a compaction job, which disrupts normal operation and requires configuration correction. To resolve the issue, increase compaction service ranking and restart instance properly.
Description description
Environment
Adobe Experience Manager as a Cloud Service (all versions)
Issue/Symptoms
- Each time the compaction job is run on the QA author environment, the segment store becomes corrupted.
- The author instance is rendered unavailable, causing delays in critical deployments to production.
- No specific error codes or stack traces were provided, but the symptom is consistent segment store corruption after compaction.
Root cause
Segment store corruption during compaction can occur if multiple services with the same ranking interfere with each other, leading to improper execution order or conflicts during the compaction process.
Resolution resolution
Follow the steps below to address the issue:
- Review the current service ranking configuration for compaction-related services in the AEM environment.
- Increase the service ranking for the relevant compaction service to ensure it takes precedence over other services with the same ranking (e.g., if both are set to
0, increase the desired service to a higher value). - Restart the affected AEM author environment to apply the changes.
- Monitor the next compaction job to verify that the segment store is no longer corrupted.
recommendation-more-help
experience-cloud-kcs-help-kbarticles