mrhhsg opened a new pull request, #67846:
URL: https://github.com/apache/doris/pull/67846
### What problem does this PR solve?
Cherry-picked from #67845
Issue Number: None
Related PR: #67845
Problem Summary:
Backport of #67845 to branch-4.1. The code of
`WorkloadGroupMgr::handle_single_query_()` is identical on branch-4.1, the
commit applies cleanly.
When a query is paused because of `PROCESS_MEMORY_EXCEEDED` and it has no
revocable memory, the query was cancelled about 50-100ms later if the process
was still above the soft memory limit, even when cancelling it did not relieve
the process memory pressure. This PR keeps such queries paused until they have
waited `spill_in_paused_queue_timeout_ms`, re-checking the soft memory limit
every round so they resume once other queries release memory.
### Release note
Queries paused under process memory pressure without revocable memory now
wait up to `spill_in_paused_queue_timeout_ms` for memory to be released before
being cancelled.
### Check List (For Author)
- Test
- [x] Unit Test
- Behavior changed:
- [x] Yes. Same as #67845.
- Does this need documentation?
- [x] No.
https://claude.ai/code/session_014c64WZPFui9AyvVMiseceY
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]