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

[server] Fix config 'netty.server.max-queued-requests' don't work which cause server receive unlimited requests error #276

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

swuferhong
Copy link
Collaborator

Purpose

Linked issue: #268

This pr is aims to fix the error that the server will receive unlimited requests even if we config the netty.server.max-queued-requests to a specify number.
This issue arose because we introduced a PriorityBlockingQueue in the RequestChannel to replace the ArrayBlockingQueue. The PriorityBlockingQueue, unlike the ArrayBlockingQueue, is an unbounded queue.
Therefore, in this PR, we introduced two ArrayBlockingQueues in the RequestChannel: one specifically for handling replicaSync requests. This not only achieves the goal of prioritizing replicaSync requests but also ensures that the number of requests received by the cluster is limited.

Tests

API and Format

Documentation

…ch cause server receive unlimited requests error
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.

1 participant