feat(acm2): 闭合 G-KAFKA-D3 / G-IGNORE / G-EVENT-RETENTION 三个缺口
- G-KAFKA-D3:max-in-flight 默认收敛到 1,KafkaD3Check 启动自检钉住三项联合满足 D3 - G-IGNORE:IgnoreRules 在身份绑定后精确匹配 TYPE 字段,命中写 SKIPPED + 回填意图 - G-EVENT-RETENTION:V10 迁移加 SENT_AT 列,投递原子写,EventCleanupJob 有界清理过期 SENT 行
This commit is contained in:
@@ -82,6 +82,13 @@ class PipelineProps {
|
||||
*/
|
||||
var autostart: Boolean = false
|
||||
|
||||
/**
|
||||
* MSG_EVENT 已确认投递行(`STATE='SENT'`)的保留期。
|
||||
* 清理作业删除 `SENT_AT < now - eventRetention` 的行;
|
||||
* 取值应大于最长可能的投递重试周期,避免误删刚发出的事件。
|
||||
*/
|
||||
var eventRetention: Duration = Duration.ofDays(7)
|
||||
|
||||
/** N28:attempt ≤ 0(如 FAILED 未递增 attempts 的行)不得抛异常,取下界=首档退避。 */
|
||||
fun backoffFor(attempt: Int): Long {
|
||||
val index = (attempt - 1).coerceAtLeast(0)
|
||||
|
||||
Reference in New Issue
Block a user