Uploaded image for project: 'Apache ServiceComb'
  1. Apache ServiceComb
  2. SCB-1685

Improve test case doNotCompensateDuplicateTxOnFailure of AlphaIntegrationTest

    XMLWordPrintableJSON

Details

    • Test
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • pack-0.6.0
    • Saga
    • None

    Description

      Because the table scan mode cannot guarantee the order of asynchronous compensation messages, test case doNotCompensateDuplicateTxOnFailure will occasionally fail on CI

      Failed tests: 
       AlphaIntegrationTest.doNotCompensateDuplicateTxOnFailure:289 
      Expected: iterable containing [<globalTxId: "b402c45a-ef25-4061-a5d7-a25eff120c3d"
      localTxId: "1f438adb-6b62-41f6-bcc6-e11c791b918f"
      parentTxId: "70f07983-0aa6-4fc2-99b0-545b43e7c214"
      compensationMethod: "method b"
      payloads: "service b"
      >, <globalTxId: "b402c45a-ef25-4061-a5d7-a25eff120c3d"
      localTxId: "a4eafa18-fcdf-4363-b5dd-a9e647096e15"
      parentTxId: "bb87ca5b-1fc8-45fe-931e-67eb8e13405f"
      compensationMethod: "method a"
      payloads: "service a"
      >]
       but: item 0: was <globalTxId: "b402c45a-ef25-4061-a5d7-a25eff120c3d"
      localTxId: "a4eafa18-fcdf-4363-b5dd-a9e647096e15"
      parentTxId: "bb87ca5b-1fc8-45fe-931e-67eb8e13405f"
      compensationMethod: "method a"
      payloads: "service a"
      >
      Tests run: 104, Failures: 1, Errors: 0, Skipped: 0

       

      Attachments

        Issue Links

          Activity

            People

              zhanglei Lei Zhang
              zhanglei Lei Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m