We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
#1098 introduced concurrency request limit.
client-go/internal/client/client_batch.go
Line 407 in 03bbadb
Lines 569 to 571 in 03bbadb
Following is the general situation about the upper code:
hasHighPriorityTask = false // most request don't have high priority. c.maxConcurrencyRequestLimit = math.MaxInt64 // by default c.sent >= 0
In general, the above code works fine. But it will have a bug with the data race in #1222 :
c.sent
c.available()
c.available() > 0
no available connections
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Bug Report
#1098 introduced concurrency request limit.
client-go/internal/client/client_batch.go
Line 407 in 03bbadb
client-go/internal/client/client_batch.go
Lines 569 to 571 in 03bbadb
Following is the general situation about the upper code:
In general, the above code works fine. But it will have a bug with the data race in #1222 :
c.sent
to be less than 0c.available()
computation overflowc.available() > 0
will be false.no available connections
issue, and the request could not be sent, resulting in a QPS drop to 0. See issue in qps drop to zero after inject one of tikv failure last for 10mins with enable tidb enable-forwarding pingcap/tidb#51728.The text was updated successfully, but these errors were encountered: