Skip to content

Conversation

@strogiyotec
Copy link
Contributor

@strogiyotec strogiyotec commented Jan 3, 2026

even though the specification test doesn't specify the write concern as being mandatory I observed that test fails sometime because

  1. we insert document
  2. we read it right away
  3. sometime client reads it from a replica that doesn't have this document yet
  4. test case asserts that exception will be thrown because malformed ciphertext
  5. but because replica return null the error is never thrown

The idea for write concern was borrowed from nodejs driver

I also created a thread in dbx team to update encryptionClient instructions in specification test

JAVA-6040

@strogiyotec strogiyotec requested a review from a team as a code owner January 3, 2026 05:55
@strogiyotec strogiyotec requested a review from vbabanin January 3, 2026 05:55
@strogiyotec strogiyotec merged commit 139eee0 into mongodb:main Jan 5, 2026
56 checks passed
nhachicha pushed a commit that referenced this pull request Jan 19, 2026
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.

2 participants