You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] HTTP long-polling gateways can be marked offline during a healthy poll #7693
Admin considers an instance offline after 20 seconds without a report. HTTP synchronization reports instance presence at the start of HttpLongPollingDataChangedListener.doLongPolling, then may hold the request for 60 seconds (HttpConstants.SERVER_MAX_HOLD_TIMEOUT). The independent HeartbeatListenerConfiguration is disabled when HTTP sync is configured. With no configuration changes, a healthy long-polling gateway can therefore exceed the instance timeout before the next report. Full deployment reproduction is still required.
Additional evidence: shenyu-admin/.../listener/http/HttpLongPollingDataChangedListener.java:141-171, shenyu-common/.../constant/HttpConstants.java:37, and the heartbeat starter condition.
Acceptance criteria
Deterministically reproduce a healthy unchanged poll crossing the 20-second timeout.
Align reporting cadence and liveness timeout, or track active polls with an explicit bounded expiry; a stuck request must not imply unlimited health.
Test unchanged/config-changed polls, disconnected clients, stalled peers and recovery.
Document failure-detection delay and preserve WebSocket/independent-heartbeat behavior.
Do not solve this by disabling offline detection or adding duplicate reporting loops without ownership.
Source evidence
Reviewed source. Baseline: b4e115367fd57adc8aba332d655b1009932ba394. Report based on source inspection; no runtime reproduction was executed during issue preparation.
Hello, I have resolved this issue. HttpLongPollingDataChangedListener now schedules periodic liveness refreshes on its managed executor during held requests, along with AsyncListener disconnect cleanup to prevent false offline timeouts. I am opening a PR shortly.
Activity
DrDread746 commentedon Oct 17, 2026
/assign
DrDread746 commentedon Oct 17, 2026
Hello, I have resolved this issue. HttpLongPollingDataChangedListener now schedules periodic liveness refreshes on its managed executor during held requests, along with AsyncListener disconnect cleanup to prevent false offline timeouts. I am opening a PR shortly.
[ISSUE apache#7693] Fix false offline timeout during HTTP long-pollin…
[ISSUE apache#7693] Address review feedback: fix clientsMap leak, iso…
[ISSUE apache#7693] Fix false offline timeout during HTTP long-pollin…
[ISSUE apache#7693] Address review feedback: fix clientsMap leak, iso…
[ISSUE apache#7693] Address review feedback and resolve rebase conflicts
[ISSUE apache#7693] Fix false offline timeout during HTTP long-pollin…
[ISSUE apache#7693] Address review feedback: fix clientsMap leak, iso…
[ISSUE apache#7693] Address review feedback and resolve rebase conflicts
[ISSUE #7693] Fix false offline timeout during HTTP long-polling holds (