Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.8.25
-
None
Description
After upgrading to Oak 1.8.25, an IllegalArgumentException is thrown when starting in standby mode.
21.01.2022 18:07:25.073 *ERROR* [FelixStartLevel] org.apache.jackrabbit.oak-segment-tar bundle org.apache.jackrabbit.oak-segment-tar:1.8.25 (107)[org.apache.jackrabbit.oak.segment.standby.store.StandbyStoreService(242)] : The activate method has thrown an exception (java.lang.IllegalArgumentException: Unexpected mode property, got 'standby') java.lang.IllegalArgumentException: Unexpected mode property, got 'standby' at org.apache.jackrabbit.oak.segment.standby.store.StandbyStoreService.activate(StandbyStoreService.java:157) [org.apache.jackrabbit.oak-segment-tar:1.8.25]
The issue has been introduced in OAK-9589
https://github.com/apache/jackrabbit-oak/commit/c884fa8216ce69c53304514c8b7e74be7ad4bf4e#diff-45f1fb13aff830b1c631d6063d89925201b9f4f2d47b1b5318d991d2b483f8f1R152
The code at line 152 should be:
if (MODE_STANDBY.equals(mode)) {