TarMK Cold Standby synchronization fails with Netty resource leak errors in AEM 6.5
TarMK Cold Standby synchronizes content from a Primary Author to a Standby Author in Adobe Experience Manager (AEM) 6.5. Synchronization can fail because of network problems, large blob transfers that exceed timeout thresholds, or defects in older AEM Service Packs. The Standby logs contain synchronization errors, while the Primary logs contain Netty resource leak errors. To fix this, monitor the errors, rebuild the Standby if the errors persist, update AEM, review the Cold Standby timeout configuration, and continue monitoring synchronization.
Description description
Environment
- Adobe Experience Manager 6.5
- AEM 6.5 Service Pack 13 and earlier
- Primary Author and Standby Author
Issue/Symptoms
-
The Standby Author log
tarmk-coldstandby.logcontains the following error:code language-none Failed synchronizing state -
The Primary Author log
error.logcontains a NettyResourceLeakDetectorerror similar to:code language-none LEAK: ByteBuf.release() was not called before it's garbage-collected -
Synchronization failures coincide with large blob transfers and timeouts.
Cause
Network problems, large blob transfers that exceed timeout thresholds, or defects in older AEM Service Packs can cause Cold Standby synchronization failures. The Netty resource leak error is a known issue that is resolved in later AEM 6.5 Service Packs.
Resolution resolution
Follow the steps below to resolve the issue:
-
Monitor
tarmk-coldstandby.logfor recurring Failed synchronizing state errors. If the errors occur only occasionally and stop after a short time, continue monitoring them without further action. -
If the synchronization errors persist, rebuild the Standby Author:
- Stop the Standby Author instance.
- Copy the repository data, including the
segmentstoreand thedatastore, if applicable, from the Primary Author to the Standby Author. - Start the Standby Author instance.
- Allow the synchronization process to complete.
-
Upgrade AEM to at least Service Pack 17. Preferably, update to Service Pack 21 or later to obtain available bug fixes, including the fix for the Netty resource leak issue.
-
If the synchronization failures are associated with large blob transfers and timeouts, review the
standby.readtimeoutproperty in the OSGi configuration fororg.apache.jackrabbit.oak.segment.standby.store.StandbyStoreService. -
If large blob transfers are common, increase the
standby.readtimeoutvalue. -
After applying the changes, monitor
tarmk-coldstandby.loganderror.logfor recurring synchronization or Netty resource leak errors. -
If the issue persists, collect the relevant logs and contact Adobe Support for further assistance.