Skip to content

Conversation

yujun777
Copy link
Contributor

@yujun777 yujun777 commented Sep 20, 2024

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;

@doris-robot
Copy link

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR

Since 2024-03-18, the Document has been moved to doris-website.
See Doris Document.

@yujun777
Copy link
Contributor Author

run buildall

@yujun777 yujun777 marked this pull request as ready for review September 20, 2024 11:04
@yujun777 yujun777 marked this pull request as draft September 20, 2024 11:04
@yujun777 yujun777 marked this pull request as ready for review September 23, 2024 03:06
@yujun777
Copy link
Contributor Author

run buildall

@yujun777 yujun777 changed the title [draft](tablet scheduler) fix higher priority tablet add failed due to pending queue full [improvement](tablet scheduler) fix higher priority tablet add failed due to pending queue full Sep 23, 2024
@yujun777
Copy link
Contributor Author

run buildall

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) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add comment

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added

@yujun777
Copy link
Contributor Author

run buildall

Copy link
Contributor

@deardeng deardeng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

PR approved by anyone and no changes requested.

@yujun777
Copy link
Contributor Author

run p0

Copy link
Contributor

@dataroaring dataroaring left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dataroaring dataroaring merged commit 6e15fc3 into apache:master Sep 25, 2024
28 of 32 checks passed
Copy link
Contributor

PR approved by at least one committer and no changes requested.

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Sep 25, 2024
yujun777 added a commit to yujun777/doris that referenced this pull request Sep 25, 2024
… 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;
dataroaring pushed a commit that referenced this pull request Sep 26, 2024
dataroaring pushed a commit that referenced this pull request Oct 9, 2024
… 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;
yujun777 added a commit to yujun777/doris that referenced this pull request Oct 18, 2024
@gavinchou gavinchou mentioned this pull request Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by one committer. dev/2.1.7-merged dev/3.0.3-merged reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants