From a0d8732c1d698b25850c0949f7b8967333d67d21 Mon Sep 17 00:00:00 2001
From: Junjie <fallin.jie@qq.com>
Date: 星期六, 21 三月 2026 22:22:51 +0800
Subject: [PATCH] #
---
src/main/java/com/zy/core/trace/StationTaskTraceRegistry.java | 23 ++---------------------
1 files changed, 2 insertions(+), 21 deletions(-)
diff --git a/src/main/java/com/zy/core/trace/StationTaskTraceRegistry.java b/src/main/java/com/zy/core/trace/StationTaskTraceRegistry.java
index d76b8f3..98768c3 100644
--- a/src/main/java/com/zy/core/trace/StationTaskTraceRegistry.java
+++ b/src/main/java/com/zy/core/trace/StationTaskTraceRegistry.java
@@ -619,9 +619,6 @@
}
this.status = terminalStatus;
this.blockedStationId = blockedStationId;
- if (shouldClearPathOnTerminal(terminalStatus)) {
- clearPathState();
- }
this.updatedAt = System.currentTimeMillis();
this.terminalExpireAt = this.updatedAt + TERMINAL_KEEP_MS;
@@ -640,7 +637,7 @@
Map<String, Object> details) {
boolean active = Boolean.TRUE.equals(loopAlertActive)
&& loopAlertCount != null
- && loopAlertCount > 1
+ && loopAlertCount > 2
&& loopAlertText != null
&& !loopAlertText.trim().isEmpty();
String nextType = active ? loopAlertType : null;
@@ -669,22 +666,6 @@
nextDetails.put("loopAlertText", this.loopAlertText);
nextDetails.put("loopAlertCount", this.loopAlertCount);
appendEvent("LOOP_REPEAT_ALERT", this.loopAlertText, nextDetails);
- }
-
- private void clearPathState() {
- this.fullPathStationIds = new ArrayList<>();
- this.issuedStationIds = new ArrayList<>();
- this.passedStationIds = new ArrayList<>();
- this.pendingStationIds = new ArrayList<>();
- this.latestIssuedSegmentPath = new ArrayList<>();
- this.segmentList = new ArrayList<>();
- this.issuedSegmentCount = 0;
- this.totalSegmentCount = 0;
- }
-
- private boolean shouldClearPathOnTerminal(String terminalStatus) {
- return STATUS_BLOCKED.equals(terminalStatus)
- || STATUS_CANCELLED.equals(terminalStatus);
}
private synchronized boolean shouldRemove(long now) {
@@ -829,7 +810,7 @@
}
private void appendLoopHintDetails(Map<String, Object> details) {
- if (details == null || !Boolean.TRUE.equals(this.loopAlertActive) || this.loopAlertCount == null || this.loopAlertCount <= 1) {
+ if (details == null || !Boolean.TRUE.equals(this.loopAlertActive) || this.loopAlertCount == null || this.loopAlertCount <= 2) {
return;
}
details.put("loopAlertActive", Boolean.TRUE);
--
Gitblit v1.9.1