Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-66974

Server responding with unexpected error 246 (SnapshotUnavailable)

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Works as Designed
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • * rhel70-small
      * 6.0.0-rc8 server
      * three node replica set
    • ALL

    Description

      The Java driver has three similar tests (for legacy, sync, and async APIs) that all occasionally fail with the server error:

      {
         "ok": 0.0, 
         "code": 246, 
         "codeName": "SnapshotUnavailable"
         "errorLabels": ["TransientTransactionError"], 
         "errmsg": "Unable to read from a snapshot due to pending collection catalog changes; please retry the operation. Snapshot timestamp is Timestamp(1654118095, 84). Collection minimum is Timestamp(1654118095, 86)", 
      }
      

      The tests all do the following:

      1. drop the collection
      2. insert a document into the collection
      3. insert a document into the collection within a transaction

      Expected results: the insert within a transaction succeeds
      Action results: the above error is returned by the server

      Questions:

      1. What is the root cause of that error?
      2. Is there any way to change the test in order to stop the error from occurring?

      Linked BF ticket for Java driver: JAVA-4637

      Attachments

        Activity

          People

            daniel.gottlieb@mongodb.com Daniel Gottlieb (Inactive)
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: