Skip to content

Conversation

@chenBright
Copy link
Contributor

@chenBright chenBright commented Aug 30, 2025

What problem does this PR solve?

Issue Number: #3030

Problem Summary:

  1. epoll bthread deal first #2819 has bugs(在高并发场景下server直接hang死 #3030).
  2. Bugfix: Only event dispatcher thread has flag BTHREAD_GLOBAL_PRIORITY #3055 only fixes Socket IO,not all IO types.

What is changed and the side effects?

Changed:

Side effects:

  • Performance effects:

  • Breaking backward compatibility:


Check List:

@wwbmmm
Copy link
Contributor

wwbmmm commented Aug 30, 2025

LGTM

@chenBright chenBright force-pushed the fix_unexpected_priority_task branch from da7964c to 8485222 Compare August 31, 2025 13:27
@yanglimingcn
Copy link
Contributor

LGTM

@chenBright chenBright merged commit 018ce77 into apache:master Sep 1, 2025
16 checks passed
@chenBright chenBright deleted the fix_unexpected_priority_task branch September 1, 2025 06:09
@lhsoft
Copy link
Contributor

lhsoft commented Sep 9, 2025

@chenBright 看起来是通过flag暂时关闭这个功能?如果我设置enable_bthread_priority_queue为true,还是会hung死吧

@chenBright
Copy link
Contributor Author

@chenBright 看起来是通过flag暂时关闭这个功能?如果我设置enable_bthread_priority_queue为true,还是会hung死吧

现在只有epoll bthread才有BTHREAD_GLOBAL_PRIORITY,应该不会出现这个问题了吧。

@lhsoft
Copy link
Contributor

lhsoft commented Sep 9, 2025

@chenBright

现在只有epoll bthread才有BTHREAD_GLOBAL_PRIORITY,应该不会出现这个问题了吧。

FLAGS_event_dispatcher_num > 1 的情况下,应该还是会有多个吧

@chenBright
Copy link
Contributor Author

@chenBright

现在只有epoll bthread才有BTHREAD_GLOBAL_PRIORITY,应该不会出现这个问题了吧。

FLAGS_event_dispatcher_num > 1 的情况下,应该还是会有多个吧

是的,后续找时间修一下这个问题。

@ZhengweiZhu
Copy link
Contributor

_enable_priority_queue is not default initialized to false and may be true or false. I fixed it in #3096

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants