-
Notifications
You must be signed in to change notification settings - Fork 38.4k
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
Handle SimpleAsyncTaskExecutor in WebSocketMessageBrokerStats #33104
Comments
What kind of statistics would you expect here? |
Sorry, if the purpose is to expose pool information, then "unknown" is correct. My intention was that after switching to using virtual threads, it showed "unknown" because virtual threads do not use pooling. It might be better to explicitly indicate that virtual threads are being used instead of showing "unknown". |
Thanks for the feedback. I think you have a point it should indicate it's using virtual threads. However, AFAIK, we do not have a way to figure out that an Paging @jhoeller for feedback to see if I missed it or if we could consider adding that. |
Maybe what really matters is that it's not a pool based strategy rather than whether it's virtual threads or not. In Spring for GraphQL we have a check like this to determine whether the executor is pooling or not. |
The stats being about pooling information, we should indeed expose something like thread-per-task rather than unknown for this case. |
When using the following executor with virtual threads:
The WebSocketMessageBrokerStats#getExecutorStatsInfo method returns "unknown".
It seems that only thread-pooling TaskExecutor was considered originally.
How about changing the wording?
Currently, it seems that there is no way to know if SimpleAsyncTaskExecutor is using virtual threads.
The text was updated successfully, but these errors were encountered: