Skip to content

RUBY-3623 Rename WriteConcernFailed code name to WriteConcernTimeout#3032

Merged
comandeo-mongo merged 1 commit intomongodb:masterfrom
comandeo-mongo:RUBY-3623-rename-write-concern-failed
Apr 28, 2026
Merged

RUBY-3623 Rename WriteConcernFailed code name to WriteConcernTimeout#3032
comandeo-mongo merged 1 commit intomongodb:masterfrom
comandeo-mongo:RUBY-3623-rename-write-concern-failed

Conversation

@comandeo-mongo
Copy link
Copy Markdown
Contributor

@comandeo-mongo comandeo-mongo commented Apr 28, 2026

Sync the spec test fixtures to match mongodb/specifications@b643abfb
(DRIVERS-3007). The server has renamed error code 64's name from
WriteConcernFailed to WriteConcernTimeout; the numeric code is
unchanged.

The spec change drops codeName: WriteConcernFailed from failpoint
configs (so the server returns its version-appropriate name) and
updates test descriptions and surrounding comments. This PR mirrors
those edits in the Ruby driver's local copies of the affected
fixtures.

The driver-specific failpoint test in spec/mongo/auth/user/view_spec.rb
sets codeName itself and asserts on the echoed value, so both the
failpoint and the assertion are updated to the new name.

Test plan

  • bundle exec rspec spec/mongo/auth/user/view_spec.rb — 55 examples, 0 failures (4 unrelated pending)
  • bundle exec rspec spec/spec_tests/retryable_writes_spec.rb -e 'WriteConcernTimeout' — replica-set examples ran and passed; sharded ones pending as expected
  • bundle exec rubocop spec/mongo/auth/user/view_spec.rb — clean

Sync the spec test fixtures to match
mongodb/specifications@b643abfb (DRIVERS-3007). Drop codeName from
failpoint configs so the server fills in its own (post-rename
WriteConcernTimeout, pre-rename WriteConcernFailed) and update test
descriptions accordingly. Error code 64 is unchanged.

Also update the corresponding driver-specific failpoint test in
auth/user/view_spec.rb to use the new name in both the failpoint config
and the assertion.
Copilot AI review requested due to automatic review settings April 28, 2026 11:59
@comandeo-mongo comandeo-mongo requested a review from a team as a code owner April 28, 2026 11:59
@comandeo-mongo comandeo-mongo requested a review from jamis April 28, 2026 11:59
@comandeo-mongo comandeo-mongo merged commit 3dae92c into mongodb:master Apr 28, 2026
197 of 198 checks passed
@comandeo-mongo comandeo-mongo deleted the RUBY-3623-rename-write-concern-failed branch April 28, 2026 15:42
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