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

Refactor some of the concurrency exception util method

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Server Serverless 2023-05-29

      We are currently dropping the `ns` parameter from handleTemporarilyUnavailableExceptionInTransaction . We should just remove that parameter altogether.

      The handleTemporarilyUnavailableException passes a `StringData ns` (which is coming from a serialized NamespaceString) to then be deserialize for logging (here too). We should just pass the NamespaceString directly and only deserialize once for logging.

      logWriteConflictAndBackoff should also pass a NamespaceString directly. We are currently serializing a NamespaceString as a parameter which is then used to deserialize the just serialized NamespaceString.

            Assignee:
            mathis.bessa@mongodb.com Mathis Bessa (Inactive)
            Reporter:
            mathis.bessa@mongodb.com Mathis Bessa (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: