Skip to content
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

[Bug] Fluss sender will be in busy loop when is in low traffic #306

Open
1 of 2 tasks
luoyuxia opened this issue Jan 3, 2025 · 0 comments
Open
1 of 2 tasks

[Bug] Fluss sender will be in busy loop when is in low traffic #306

luoyuxia opened this issue Jan 3, 2025 · 0 comments
Labels
bug Something isn't working component=client

Comments

@luoyuxia
Copy link
Collaborator

luoyuxia commented Jan 3, 2025

Search before asking

  • I searched in the issues and found nothing similar.

Fluss version

main

Minimal reproduce step

When in low traffic, the sender finds no records ready to send, sleeps 1ms, and then runOnce again to check whether records are ready which causes a busy loop to occupy more CPU..

What doesn't meet your expectations?

N/A

Anything else?

If I modify it to sleep 50ms, the CPU will be reduced from 120 to 80... But we will need a more sophisticated mechanism to solve it..

Are you willing to submit a PR?

  • I'm willing to submit a PR!
@luoyuxia luoyuxia added bug Something isn't working component=client labels Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working component=client
Projects
None yet
Development

No branches or pull requests

1 participant