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

Combine AbortResult and CommitResult struct in TXN API

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Cluster Scalability
    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      SERVER-84081 will add an AbortResult struct that the cleanup abort in the TXN API returns. This is used to provide the client with a write concern error in the case that a commit does not occur. To reduce code duplication, this struct should be merged with the CommitResult. 

      The additional benefit of creating a general struct is that we can ensure that in the case an error occurs before a commit happens, we don't misleadingly prepend: "command error committing internal transaction :: caused by :: <error message>" to the error message.
      Example:

      Error: assert failed : {
       	"ok" : 0,
       	"errmsg" : "Command error committing internal transaction :: caused by :: Invalid value for ESCTokensV2 leaf tag 153",
       	"code" : 2,
       	"codeName" : "BadValue",
       }

            Assignee:
            Unassigned Unassigned
            Reporter:
            wenqin.ye@mongodb.com Wenqin Ye
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              None
              None
              None
              None