fix(retry): B24 扩围四条日志补 SERVICE_UNREACHABLE 巡检锚点
ops 护栏格「每条 [brand-check] 日志必须归类」判红:扩围四条新措辞既没进 「品牌检测链路」签名也不在承认清单。这一形状本就是链路不可用的一种, 补 ASCII 锚点 SERVICE_UNREACHABLE 让它们自动进既有格——巡检与承认清单 都不用动(_prod_watch.py 有并行会话在飞,不碰)。
This commit is contained in:
+4
-4
@@ -337,7 +337,7 @@ public class BrandCheckClient {
|
||||
// B24 扩围(2026-10-26 拍板):上一批已确认「连上了但不回包」或「解密链路成片失败」,
|
||||
// 本批同样一个请求都不发。行级结论不变(每品牌仍判查询失败),只是归因从空 reason/
|
||||
// 逐行白等 45~65 秒,换成一条可运维的服务级降级文案;到期后下一批的真实请求兼作探针。
|
||||
log.warn("[brand-check] NO_ANSWER_COOLDOWN 客户端级冷却中(不回包/解密成片),整批不打上游"
|
||||
log.warn("[brand-check] SERVICE_UNREACHABLE NO_ANSWER_COOLDOWN 客户端级冷却中(不回包/解密成片),整批不打上游"
|
||||
+ " brands={} window={}ms", brands.size(), cooldownMillis);
|
||||
for (String brand : brands) {
|
||||
outcomes.put(brand, new BrandCheckOutcome(List.of(), List.of(brand), REASON_SERVICE_DEGRADED));
|
||||
@@ -399,7 +399,7 @@ public class BrandCheckClient {
|
||||
} else {
|
||||
for (int i = 0; i < decryptFailures.get(); i++) {
|
||||
if (unreachableCooldown.recordNoAnswerFailure(properties.getBaseUrl(), cooldownMillis)) {
|
||||
log.warn("[brand-check] NO_ANSWER_COOLDOWN 批内解密失败 {} 枚且零干净结论,"
|
||||
log.warn("[brand-check] SERVICE_UNREACHABLE NO_ANSWER_COOLDOWN 批内解密失败 {} 枚且零干净结论,"
|
||||
+ "进入客户端级冷却 {}ms host={}",
|
||||
decryptFailures.get(), cooldownMillis, properties.getBaseUrl());
|
||||
}
|
||||
@@ -483,7 +483,7 @@ public class BrandCheckClient {
|
||||
} else if (isPeerClosedWithoutResponse(ex)) {
|
||||
// 连上了、对端却在给出响应前把连接收了(B26 主形 header parser received no
|
||||
// bytes):重试救不回这一形状,按 no-answer 道即时记证;本品牌照旧重试收尾。
|
||||
log.warn("[brand-check] NO_ANSWER 对端在给出响应前关闭连接 brand={} attempt={}/{} err={}",
|
||||
log.warn("[brand-check] SERVICE_UNREACHABLE NO_ANSWER 对端在给出响应前关闭连接 brand={} attempt={}/{} err={}",
|
||||
brand, attempt, attempts, ex.getMessage());
|
||||
recordNoAnswerFailure();
|
||||
} else {
|
||||
@@ -702,7 +702,7 @@ public class BrandCheckClient {
|
||||
private void recordNoAnswerFailure() {
|
||||
long cooldownMillis = Math.max(0, properties.getUnreachableCooldownMillis());
|
||||
if (unreachableCooldown.recordNoAnswerFailure(properties.getBaseUrl(), cooldownMillis)) {
|
||||
log.warn("[brand-check] NO_ANSWER_COOLDOWN 不回包证据累计到阈值,进入客户端级冷却 {}ms host={}",
|
||||
log.warn("[brand-check] SERVICE_UNREACHABLE NO_ANSWER_COOLDOWN 不回包证据累计到阈值,进入客户端级冷却 {}ms host={}",
|
||||
cooldownMillis, properties.getBaseUrl());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user