-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Client Backpressure #1918
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
base: main
Are you sure you want to change the base?
Client Backpressure #1918
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -172,7 +172,8 @@ private InternalConnectionInitializationDescription createInitializationDescript | |
|
|
||
| private BsonDocument createHelloCommand(final Authenticator authenticator, final InternalConnection connection) { | ||
| BsonDocument helloCommandDocument = new BsonDocument(getHandshakeCommandName(), new BsonInt32(1)) | ||
| .append("helloOk", BsonBoolean.TRUE); | ||
| .append("helloOk", BsonBoolean.TRUE) | ||
| .append("backpressure", BsonBoolean.TRUE); | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The commit ac1c120 introduced by #1906 for JAVA-6035 should have implemented, as far as I understand, the If the above is correct, let's reopen JAVA-6035 and create another PR for that ticket that will implement the prose test.
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for catching this. I reopened https://jira.mongodb.org/browse/JAVA-6035 |
||
| if (clientMetadataDocument != null) { | ||
| helloCommandDocument.append("client", clientMetadataDocument); | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO-BACKPRESSURE ValentinBefore merging in
main, make sure that all the code in thebackpressurebranch uses theMongoException.TRANSIENT_TRANSACTION_ERROR_LABEL/UNKNOWN_TRANSACTION_COMMIT_RESULT_LABEL/SYSTEM_OVERLOADED_ERROR_LABEL/RETRYABLE_ERROR_LABELandCommandOperationHelper.RETRYABLE_WRITE_ERROR_LABEL/NO_WRITES_PERFORMED_ERROR_LABELconstants instead of using theTransientTransactionError/UnknownTransactionCommitResult/SystemOverloadedError/RetryableErrorandRetryableWriteError/NoWritesPerformedliterals.