-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Add Client Metadata Update Support. #1708
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
Draft
vbabanin
wants to merge
31
commits into
mongodb:main
Choose a base branch
from
vbabanin:JAVA-5854
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
9753f28
Add Client Metadata update support.
vbabanin 889d5c8
Add prose tests.
vbabanin 4b3065c
Add prose tests.
vbabanin 2a684bf
Add ClientMetadata entity.
vbabanin 28c1844
Update tests.
vbabanin 371ce0b
Merge branch 'main' into JAVA-5854
vbabanin 972fe9d
Fix tests.
vbabanin bcf9cc8
Fix tests.
vbabanin 179b262
Spotless fix.
vbabanin bc43ba0
Skip tests when auth is enabled.
vbabanin 3f5fc91
Apply Scala spotless.
vbabanin 61192d8
Update tests.
vbabanin e9f8dd6
Fix tests.
vbabanin 95c1bb1
Add parametrized tests.
vbabanin dd63a49
Apply Kotlin spotless.
vbabanin 89d67bb
Move update to separate variables.
vbabanin 8a18d39
Merge branch 'main' into JAVA-5854
vbabanin f296d0c
Merge branch 'main' into JAVA-5854
vbabanin a8dc4fb
Add lock for updates.
vbabanin 8ade58b
Clone document before passing it as an argument.
vbabanin 71350fa
Rename to "appendMetadata".
vbabanin 9890aa1
Add ReadWriteLock and rename method.
vbabanin 28f7d88
Add parametrized tests.
vbabanin 246a040
Add readLock.
vbabanin 8a58294
Fix readLock issue.
vbabanin 15ecef8
Merge branch 'main' into JAVA-5854
vbabanin 5c7a6e3
Add Kotlin and Scala API.
vbabanin f466d08
Add unified tests.
vbabanin 3132541
Merge branch 'main' into JAVA-5854
vbabanin d961447
Fix static checks.
vbabanin 74d8558
Change specification submodule commit.
vbabanin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
If you remove the
volatile
, then I think you need to use theupdateLock.readLock()
ingetBsonDocument
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.
Yes, I intended to use the
readLock(
) here. Thanks for catching that - updated accordingly!