You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@texera.apache.org by "carloea2 (via GitHub)" <gi...@apache.org> on 2026/08/31 04:00:57 UTC
[I] Peeking a queue changes its next message [texera]
carloea2 opened a new issue, #8225:
URL: https://github.com/apache/texera/issues/8225
### Current behavior
`PriorityGroup.peek()` advances the shared round-robin cursor while skipping empty subqueues. A read-only peek can therefore change which message a later `get()` returns.
Before: peek skips an empty queue -> shared cursor advances -> later get returns a different queue
After: peek scans with a local cursor -> shared cursor stays unchanged -> later get preserves round-robin order
### Steps to reproduce
Create two same-priority subqueues, enqueue only in the second, and call `peek()`. Then enqueue in the first and call `get()`.
Observed on `70c21145887920528d7d5540e3fb790b43e8b759`:
```text
cursor_before_peek=0
peek=second
cursor_after_peek=1
next_after_peek=second
next_without_peek=first
```
### Expected behavior
Peeking should report the next available message without changing queue selection state or the order of a later get.
--
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@texera.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Peeking a queue changes its next message [texera]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #8225:
URL: https://github.com/apache/texera/issues/8225#issuecomment-5473523583
<!-- texera:template-compliance -->
👋 Thanks for opening this issue, @carloea2!
It looks like the issue description doesn't quite follow our template yet:
- This issue doesn't appear to use one of our templates (Bug, Feature, or Task). Please open it using a template so the required details are captured.
Filling out the template helps reviewers understand and triage your contribution faster. Please edit the description to complete it. This message will disappear automatically once the template is followed.
You can find the template prompts by editing the description, or see [CONTRIBUTING.md](https://github.com/apache/texera/blob/main/CONTRIBUTING.md) for the full contribution flow.
--
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@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Peeking a queue changes its next message [texera]
Posted by "carloea2 (via GitHub)" <gi...@apache.org>.
carloea2 commented on issue #8225:
URL: https://github.com/apache/texera/issues/8225#issuecomment-5548201956
/take
--
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@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org