You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shenyu.apache.org by "Aias00 (via GitHub)" <gi...@apache.org> on 2026/08/02 12:12:21 UTC

[I] [BUG] Sync-data-center: no queues, no batching, no dedup on the gateway side [shenyu]

Aias00 opened a new issue, #6587:
URL: https://github.com/apache/shenyu/issues/6587

   ## Description
   There are no queues and no batching anywhere in the gateway-side sync path. A `MYSELF`/`REFRESH` payload containing the entire namespace deserializes and re-caches every entry inline on the `onMessage` thread. No event dedup: `AbstractDataHandler.handle` always re-applies (`doUpdate`/`doRefresh`) regardless of whether the data actually changed — admin churn translates 1:1 into gateway CPU. A slow plugin handler stalls all subsequent config updates for that gateway.
   
   ## Location
   ```
   shenyu-sync-data-websocket/.../client/ShenyuWebsocketClient.java:189-207,267-274
   WebsocketDataHandler.java:67 -> AbstractDataHandler.java:62-85
   AbstractNodeDataSyncService.java:212-253
   ```
   
   ## Impact
   A single slow handler or a large burst saturates the one listener thread and silently delays all later config propagation; admin churn amplifies 1:1 into gateway CPU.
   
   ## Suggested fix
   Add a bounded work queue + parallelism for config application; dedup by version/md5 before re-applying.
   
   ## Related existing issue(s)
   #6461 (websocket reconnect) and #6523 (repeated successful polls) are specific defects; this is the structural lack of gateway-side queueing/dedup that amplifies them.
   
   _Identified during the 2026-08-02 audit; full list in [`docs/issue-candidates-2026-08-02.md`](docs/issue-candidates-2026-08-02.md)._


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shenyu.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [BUG] Sync-data-center: no queues, no batching, no dedup on the gateway side [shenyu]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #6587:
URL: https://github.com/apache/shenyu/issues/6587#issuecomment-5157760885

   👋 Hello @Aias00
   
   A new issue has been opened by @Aias00:
   - **Title**: [BUG] Sync-data-center: no queues, no batching, no dedup on the gateway side
   - **Link**: https://github.com/apache/shenyu/issues/6587
   
   Please review when you have time. Thank you! 🙏


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shenyu.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [BUG] Sync-data-center: no queues, no batching, no dedup on the gateway side [shenyu]

Posted by "wy471x (via GitHub)" <gi...@apache.org>.
wy471x commented on issue #6587:
URL: https://github.com/apache/shenyu/issues/6587#issuecomment-5975580475

   /assign


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shenyu.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [BUG] Sync-data-center: no queues, no batching, no dedup on the gateway side [shenyu]

Posted by "Aias00 (via GitHub)" <gi...@apache.org>.
Aias00 closed issue #6587: [BUG] Sync-data-center: no queues, no batching, no dedup on the gateway side
URL: https://github.com/apache/shenyu/issues/6587


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shenyu.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org