Skip to content

Code 66 - Bad Update in Amazon Document DB #229

@martinVelicky

Description

@martinVelicky

Despite working OK locally, when I try to acquire lock in AWS's Document DB (MongoDB compatible) I get

Caused by: com.mongodb.MongoCommandException: Command failed with error 66: 'Bad Update' on server **********.eu-west-2.docdb.amazonaws.com:27017. The full response is {"ok": 0.0, "operationTime": {"$timestamp": {"t": 1731418109, "i": 1}}, "code": 66, "errmsg": "Bad Update"}

From quick googling, Code 66 is thrown when one is trying to update immutable field.

Environment

  • Library version: com.coditory.sherlock:sherlock-mongo:0.4.19
  • Java (and/or Kotlin) version: 17

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions