Repository navigation
Ensure warmup validates WAL write before readiness UP - #354
Merged
Merged
Conversation
- Replace random method selection with round-robin (POST→PUT→DELETE→GET) so write operations are guaranteed on every warmup cycle - Parse mutation response body as Map and propagate IllegalStateException when result[].status == "ERROR", making v2 WAL failures visible - Add subscribe error consumer for explicit warmup failure logging - Add StartUpWithWarmUpAndInvalidWalProducerTest with InvalidWalConfig fixture (ProducerList with healthy + failing producer) to verify readiness stays DOWN when WAL producer is broken Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <[email protected]> Co-Authored-By: Happy <[email protected]>
eazyhozy
marked this pull request as ready for review
May 26, 2026 04:00
…rder HTTP method list in warm-up logic
em3s
removed their request for review
May 26, 2026 04:30
Contributor
|
Added |
Closed
eazyhozy
added a commit
that referenced
this pull request
May 26, 2026
Co-authored-by: Minseok Kim <[email protected]> (cherry picked from commit f178f8c)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fix warmup logic so that a broken WAL producer causes readiness to stay DOWN at boot time.
In production, if one WAL producer in
ProducerListis unreachable, the server currently boots successfully and readiness transitions to UP — but any subsequent DML request fails with 500 because WAL write is blocking. This fix detects the broken producer at bootstrap so the pod never becomes Ready in the first place.Two problems allowed a broken producer to slip through previously:
allMethods.random()could select GET, bypassing the WAL write path entirelyresult[].status = "ERROR"but this was not detectedCloses #
Related to #344
Changes
allMethods.random()with round-robinallMethods[i % allMethods.size](order: POST → PUT → DELETE → GET) to guarantee write ops run each cyclebodyToMono(String::class.java)→bodyToMono(Map::class.java)and add aflatMapchain that throwsIllegalStateExceptionwhen anyresult[].status == "ERROR"subscribeerror consumer to log💔 Warm-up FAILED — readiness stays DOWNStartUpWithWarmUpAndInvalidWalProducerTestwithInvalidWalConfigfixture(
ProducerListcontainingLoggerProducer+ failing producer) to verify 503 on broken WALHow to Test
./gradlew :server:test --tests \ "com.kakao.actionbase.server.StartUpWithWarmUpAndInvalidWalProducerTest"Or boot with an invalid WAL broker and confirm
/graph/health/readinessreturns 503.AI Assistance