laravel-mongodb - Issue #3488: [BUG] abortTransaction() call without transaction

XMLWordPrintableJSON

    • None
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      YaroshYevhen has created Issue #3488: [BUG] abortTransaction() call without transaction in laravel-mongodb. This Jira ticket was filed by GromNaN

      Issue Text:

      • Laravel-mongodb Version: 5.5.0
      • PHP Version: 8.3.30
      • Database Driver & Version: mongo:8.0

      Description:

      MongoBatchRepository::rollBack() unconditionally calls abortTransaction() even though it doesn't use MongoDB transactions for its operations. rollBack() should be a no-op (or check for an active transaction) since this class doesn't wrap any operations in transactions.
      This issue causes the misleading "No active transaction" exception appear in our logs even though the real cause of a fail was the timeout.

            Assignee:
            Jérôme Tamarelle
            Reporter:
            TPM Jira Automations Bot
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: