Skip to content

Commit 0797690

Browse files
LEGLINK-186: Add the Java retry ladder to environment app-config
Adds the Kafka retry configuration consumed by MeasureEval and Validation to app-config.dev/qa/qa2/test.json (label null so both Java services read it): consumer-retry-duration PT20S/PT60S/PT120S (4 attempts, matching the .NET services' ConsumerSettings:ConsumerRetryDuration in the same files) and disable-retry-consumer=false. Removes the stale /spring/kafka/retry/maxAttempts and /retry-backoff-ms keys - leftovers from an earlier retry design that the current code never reads. The blob fail-fast knobs (resource-cache.blob-storage.* and internal-blob-storage.* max-tries/try-timeout-seconds) are deliberately not added: the code defaults (2 tries / 10s) are the intended values in every environment. Claude-Session: https://claude.ai/code/session_01KN565tFAuJUAEkK2DdRF1e
1 parent a6c7e0d commit 0797690

4 files changed

Lines changed: 112 additions & 32 deletions

File tree

Config/app-config.dev.json

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -241,19 +241,39 @@
241241
"tags": {}
242242
},
243243
{
244-
"key": "/spring/kafka/retry/maxAttempts",
245-
"value": "5",
246-
"label": "MeasureEval",
244+
"key": "/spring/kafka/retry/consumer-retry-duration/0",
245+
"value": "PT20S",
246+
"label": null,
247247
"content_type": "",
248-
"tags": {}
248+
"tags": {
249+
"link:consumers": "MeasureEval,Validation"
250+
}
249251
},
250252
{
251-
"key": "/spring/kafka/retry/retry-backoff-ms",
252-
"value": "3000",
253-
"label": "MeasureEval",
253+
"key": "/spring/kafka/retry/consumer-retry-duration/1",
254+
"value": "PT60S",
255+
"label": null,
254256
"content_type": "",
255257
"tags": {
256-
"link:consumers": "MeasureEval"
258+
"link:consumers": "MeasureEval,Validation"
259+
}
260+
},
261+
{
262+
"key": "/spring/kafka/retry/consumer-retry-duration/2",
263+
"value": "PT120S",
264+
"label": null,
265+
"content_type": "",
266+
"tags": {
267+
"link:consumers": "MeasureEval,Validation"
268+
}
269+
},
270+
{
271+
"key": "/spring/kafka/retry/disable-retry-consumer",
272+
"value": "false",
273+
"label": null,
274+
"content_type": "",
275+
"tags": {
276+
"link:consumers": "MeasureEval,Validation"
257277
}
258278
},
259279
{

Config/app-config.qa.json

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -241,19 +241,39 @@
241241
"tags": {}
242242
},
243243
{
244-
"key": "/spring/kafka/retry/maxAttempts",
245-
"value": "5",
246-
"label": "MeasureEval",
244+
"key": "/spring/kafka/retry/consumer-retry-duration/0",
245+
"value": "PT20S",
246+
"label": null,
247247
"content_type": "",
248-
"tags": {}
248+
"tags": {
249+
"link:consumers": "MeasureEval,Validation"
250+
}
249251
},
250252
{
251-
"key": "/spring/kafka/retry/retry-backoff-ms",
252-
"value": "3000",
253-
"label": "MeasureEval",
253+
"key": "/spring/kafka/retry/consumer-retry-duration/1",
254+
"value": "PT60S",
255+
"label": null,
254256
"content_type": "",
255257
"tags": {
256-
"link:consumers": "MeasureEval"
258+
"link:consumers": "MeasureEval,Validation"
259+
}
260+
},
261+
{
262+
"key": "/spring/kafka/retry/consumer-retry-duration/2",
263+
"value": "PT120S",
264+
"label": null,
265+
"content_type": "",
266+
"tags": {
267+
"link:consumers": "MeasureEval,Validation"
268+
}
269+
},
270+
{
271+
"key": "/spring/kafka/retry/disable-retry-consumer",
272+
"value": "false",
273+
"label": null,
274+
"content_type": "",
275+
"tags": {
276+
"link:consumers": "MeasureEval,Validation"
257277
}
258278
},
259279
{

Config/app-config.qa2.json

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -241,19 +241,39 @@
241241
"tags": {}
242242
},
243243
{
244-
"key": "/spring/kafka/retry/maxAttempts",
245-
"value": "5",
246-
"label": "MeasureEval",
244+
"key": "/spring/kafka/retry/consumer-retry-duration/0",
245+
"value": "PT20S",
246+
"label": null,
247247
"content_type": "",
248-
"tags": {}
248+
"tags": {
249+
"link:consumers": "MeasureEval,Validation"
250+
}
249251
},
250252
{
251-
"key": "/spring/kafka/retry/retry-backoff-ms",
252-
"value": "3000",
253-
"label": "MeasureEval",
253+
"key": "/spring/kafka/retry/consumer-retry-duration/1",
254+
"value": "PT60S",
255+
"label": null,
254256
"content_type": "",
255257
"tags": {
256-
"link:consumers": "MeasureEval"
258+
"link:consumers": "MeasureEval,Validation"
259+
}
260+
},
261+
{
262+
"key": "/spring/kafka/retry/consumer-retry-duration/2",
263+
"value": "PT120S",
264+
"label": null,
265+
"content_type": "",
266+
"tags": {
267+
"link:consumers": "MeasureEval,Validation"
268+
}
269+
},
270+
{
271+
"key": "/spring/kafka/retry/disable-retry-consumer",
272+
"value": "false",
273+
"label": null,
274+
"content_type": "",
275+
"tags": {
276+
"link:consumers": "MeasureEval,Validation"
257277
}
258278
},
259279
{

Config/app-config.test.json

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -241,19 +241,39 @@
241241
"tags": {}
242242
},
243243
{
244-
"key": "/spring/kafka/retry/maxAttempts",
245-
"value": "5",
246-
"label": "MeasureEval",
244+
"key": "/spring/kafka/retry/consumer-retry-duration/0",
245+
"value": "PT20S",
246+
"label": null,
247247
"content_type": "",
248-
"tags": {}
248+
"tags": {
249+
"link:consumers": "MeasureEval,Validation"
250+
}
249251
},
250252
{
251-
"key": "/spring/kafka/retry/retry-backoff-ms",
252-
"value": "3000",
253-
"label": "MeasureEval",
253+
"key": "/spring/kafka/retry/consumer-retry-duration/1",
254+
"value": "PT60S",
255+
"label": null,
254256
"content_type": "",
255257
"tags": {
256-
"link:consumers": "MeasureEval"
258+
"link:consumers": "MeasureEval,Validation"
259+
}
260+
},
261+
{
262+
"key": "/spring/kafka/retry/consumer-retry-duration/2",
263+
"value": "PT120S",
264+
"label": null,
265+
"content_type": "",
266+
"tags": {
267+
"link:consumers": "MeasureEval,Validation"
268+
}
269+
},
270+
{
271+
"key": "/spring/kafka/retry/disable-retry-consumer",
272+
"value": "false",
273+
"label": null,
274+
"content_type": "",
275+
"tags": {
276+
"link:consumers": "MeasureEval,Validation"
257277
}
258278
},
259279
{

0 commit comments

Comments
 (0)