-
Notifications
You must be signed in to change notification settings - Fork 3.6k
[improvement](tablet scheduler) fix higher priority tablet add failed due to pending queue full #41076
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
run buildall |
run buildall |
run buildall |
fe/fe-core/src/main/java/org/apache/doris/clone/ColocateTableCheckerAndBalancer.java
Show resolved
Hide resolved
if (!force && (pendingTablets.size() >= Config.max_scheduling_tablets | ||
|| runningTablets.size() >= Config.max_scheduling_tablets)) { | ||
TabletSchedCtx lowestPriorityTablet = pendingTablets.peekLast(); | ||
if (lowestPriorityTablet == null || lowestPriorityTablet.compareTo(tablet) <= 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added
run buildall |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
PR approved by anyone and no changes requested. |
run p0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
PR approved by at least one committer and no changes requested. |
… due to pending queue full (apache#41076) When tablet checker search for unhealth tablets, it will search table one by one. If the pending queue is full, then the later search tablets couldn't add into the pending queue, even if they are higher priorty. So we use a minmax queue to holding the tablets. If a tablet is higher priority and the pending queue is full, it will envit the lowest priority tablet in the queue, then add this tablet into queue; other: 1. increase mow version incomplete task sched priority;
… due to pending queue full (#41076) When tablet checker search for unhealth tablets, it will search table one by one. If the pending queue is full, then the later search tablets couldn't add into the pending queue, even if they are higher priorty. So we use a minmax queue to holding the tablets. If a tablet is higher priority and the pending queue is full, it will envit the lowest priority tablet in the queue, then add this tablet into queue; other: 1. increase mow version incomplete task sched priority;
… due to pending queue full apache#41076 (apache#41268) cherry pick from apache#41076
When tablet checker search for unhealth tablets, it will search table one by one. If the pending queue is full, then the later search tablets couldn't add into the pending queue, even if they are higher priorty. So we use a minmax queue to holding the tablets. If a tablet is higher priority and the pending queue is full, it will envit the lowest priority tablet in the queue, then add this tablet into queue;
other: