fix(opensearch): make shadow write log level configurable (#35302)#35375
fix(opensearch): make shadow write log level configurable (#35302)#35375fabrizzio-dotCMS wants to merge 1 commit intomainfrom
Conversation
…e-and-forget tests (#35302) Introduces DOTCMS_SHADOW_WRITE_LOG_LEVEL (default WARN) so operators can raise shadow OS write failures to ERROR during QA or lower them to DEBUG during steady-state migration, without code changes. Adds PhaseRouterTest covering all four migration phases with the mismatched-index-name scenario. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Claude finished @fabrizzio-dotCMS's task in 1m 57s —— View job PR Review
1.
|
Summary
DOTCMS_SHADOW_WRITE_LOG_LEVELconfig property (defaultWARN) so operators can tune the visibility of OS shadow write failures in dual-write phases without code changesPhaseRouter×3,BulkProcessorListener×2,ContentletIndexAPIImpl×1) to the new centralisedIndexConfigHelper.logShadowWriteFailure()helperPhaseRouterTestwith 12 unit tests covering the mismatched-index-name scenario (ES hasworking_T0, OS hasworking_T1) across all four migration phasesUsage
Test plan
./mvnw test -pl :dotcms-core -Dtest=PhaseRouterTest— 12/12 pass./mvnw compile -pl :dotcms-core -DskipTests— compiles cleanDOTCMS_SHADOW_WRITE_LOG_LEVEL=ERROR, trigger a Phase 1 shadow write failure, confirm ERROR appears in logsDOTCMS_SHADOW_WRITE_LOG_LEVEL=DEBUG, confirm shadow failures are silent at WARN levelCloses #35302
🤖 Generated with Claude Code