Ma77Ball opened a new issue, #9583: URL: https://github.com/apache/texera/issues/9583
### What happened? The engine's internal multi-queue serves messages by priority (control before data), but priority is honored only when sub-queues happen to be registered in increasing-priority order. If a data sub-queue (lower priority) is registered before a control sub-queue (higher priority), control messages are served after data. ### How to reproduce? Register sub-queues on a LinkedBlockingMultiQueue in decreasing-priority order (for example data at priority 1 before control at priority 0), enqueue one item on each, and observe that the lower-priority item is returned first. In code, add_sub_queue computes the correct insertion index i but appends the new priority group to the end instead of inserting it at i, so priority_groups is not kept sorted; get_next and peek iterate it in list order. ### Version/Branch main -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
