Skip to content

Test failure System.Transactions.Tests.OleTxTests.GetDtcTransaction  #75822

Closed

Description

@v-wenyuxu

Run: runtime-coreclr libraries-jitstress 20220918.1

Failed test:

net7.0-windows-Release-arm64-CoreCLR_checked-tailcallstress-Windows.10.Arm64v8.Open
- System.Transactions.Tests.OleTxTests.GetDtcTransaction
- System.Transactions.Tests.OleTxTests.GetExportCookie
- System.Transactions.Tests.OleTxTests.Promotion
- System.Transactions.Tests.OleTxTests.Recovery
- System.Transactions.Tests.OleTxTests.TransmitterPropagationToken
- System.Transactions.Tests.OleTxTests.Two_durable_enlistments_commit(vote1: ForceRollback, vote2: Prepared, expectedOutcome1: Aborted, expectedOutcome2: Aborted, expectedTxStatus: Aborted)
- System.Transactions.Tests.OleTxTests.Two_durable_enlistments_commit(vote1: Prepared, vote2: ForceRollback, expectedOutcome1: Aborted, expectedOutcome2: Aborted, expectedTxStatus: Aborted)
- System.Transactions.Tests.OleTxTests.Two_durable_enlistments_commit(vote1: Prepared, vote2: Prepared, expectedOutcome1: Committed, expectedOutcome2: Committed, expectedTxStatus: Committed)
- System.Transactions.Tests.OleTxTests.Two_durable_enlistments_rollback
- System.Transactions.Tests.OleTxTests.Volatile_and_durable_enlistments(volatileCount: 2)
- System.Transactions.Tests.OleTxTests.Volatile_and_durable_enlistments(volatileCount: 1)
- System.Transactions.Tests.OleTxTests.Volatile_and_durable_enlistments(volatileCount: 0)

net7.0-windows-Release-arm64-CoreCLR_checked-jitminopts-Windows.10.Arm64v8.Open
- System.Transactions.Tests.OleTxTests.GetDtcTransaction
- System.Transactions.Tests.OleTxTests.GetExportCookie
- System.Transactions.Tests.OleTxTests.Promotion
- System.Transactions.Tests.OleTxTests.Recovery
- System.Transactions.Tests.OleTxTests.TransmitterPropagationToken
- System.Transactions.Tests.OleTxTests.Two_durable_enlistments_commit(vote1: ForceRollback, vote2: Prepared, expectedOutcome1: Aborted, expectedOutcome2: Aborted, expectedTxStatus: Aborted)
- System.Transactions.Tests.OleTxTests.Two_durable_enlistments_commit(vote1: Prepared, vote2: ForceRollback, expectedOutcome1: Aborted, expectedOutcome2: Aborted, expectedTxStatus: Aborted)
- System.Transactions.Tests.OleTxTests.Two_durable_enlistments_commit(vote1: Prepared, vote2: Prepared, expectedOutcome1: Committed, expectedOutcome2: Committed, expectedTxStatus: Committed)
- System.Transactions.Tests.OleTxTests.Two_durable_enlistments_rollback
- System.Transactions.Tests.OleTxTests.Volatile_and_durable_enlistments(volatileCount: 2)
- System.Transactions.Tests.OleTxTests.Volatile_and_durable_enlistments(volatileCount: 1)
- System.Transactions.Tests.OleTxTests.Volatile_and_durable_enlistments(volatileCount: 0)

net7.0-windows-Release-arm64-CoreCLR_checked-zapdisable-Windows.10.Arm64v8.Open
- System.Transactions.Tests.OleTxTests.GetDtcTransaction
- System.Transactions.Tests.OleTxTests.GetExportCookie
- System.Transactions.Tests.OleTxTests.Promotion
- System.Transactions.Tests.OleTxTests.Recovery
- System.Transactions.Tests.OleTxTests.TransmitterPropagationToken
- System.Transactions.Tests.OleTxTests.Two_durable_enlistments_commit(vote1: ForceRollback, vote2: Prepared, expectedOutcome1: Aborted, expectedOutcome2: Aborted, expectedTxStatus: Aborted)
- System.Transactions.Tests.OleTxTests.Two_durable_enlistments_commit(vote1: Prepared, vote2: ForceRollback, expectedOutcome1: Aborted, expectedOutcome2: Aborted, expectedTxStatus: Aborted)
- System.Transactions.Tests.OleTxTests.Two_durable_enlistments_commit(vote1: Prepared, vote2: Prepared, expectedOutcome1: Committed, expectedOutcome2: Committed, expectedTxStatus: Committed)
- System.Transactions.Tests.OleTxTests.Two_durable_enlistments_rollback
- System.Transactions.Tests.OleTxTests.Volatile_and_durable_enlistments(volatileCount: 2)
- System.Transactions.Tests.OleTxTests.Volatile_and_durable_enlistments(volatileCount: 1)
- System.Transactions.Tests.OleTxTests.Volatile_and_durable_enlistments(volatileCount: 0)

net7.0-windows-Release-arm64-CoreCLR_checked-jitstress2_tiered-Windows.10.Arm64v8.Open
- System.Transactions.Tests.OleTxTests.GetDtcTransaction
- System.Transactions.Tests.OleTxTests.GetExportCookie
- System.Transactions.Tests.OleTxTests.Promotion
- System.Transactions.Tests.OleTxTests.Recovery
- System.Transactions.Tests.OleTxTests.TransmitterPropagationToken
- System.Transactions.Tests.OleTxTests.Two_durable_enlistments_commit(vote1: ForceRollback, vote2: Prepared, expectedOutcome1: Aborted, expectedOutcome2: Aborted, expectedTxStatus: Aborted)
- System.Transactions.Tests.OleTxTests.Two_durable_enlistments_commit(vote1: Prepared, vote2: ForceRollback, expectedOutcome1: Aborted, expectedOutcome2: Aborted, expectedTxStatus: Aborted)
- System.Transactions.Tests.OleTxTests.Two_durable_enlistments_commit(vote1: Prepared, vote2: Prepared, expectedOutcome1: Committed, expectedOutcome2: Committed, expectedTxStatus: Committed)
- System.Transactions.Tests.OleTxTests.Two_durable_enlistments_rollback
- System.Transactions.Tests.OleTxTests.Volatile_and_durable_enlistments(volatileCount: 2)
- System.Transactions.Tests.OleTxTests.Volatile_and_durable_enlistments(volatileCount: 1)
- System.Transactions.Tests.OleTxTests.Volatile_and_durable_enlistments(volatileCount: 0)

net7.0-windows-Release-arm64-CoreCLR_checked-jitstress1_tiered-Windows.10.Arm64v8.Open
- System.Transactions.Tests.OleTxTests.GetDtcTransaction
- System.Transactions.Tests.OleTxTests.GetExportCookie
- System.Transactions.Tests.OleTxTests.Promotion
- System.Transactions.Tests.OleTxTests.Recovery
- System.Transactions.Tests.OleTxTests.TransmitterPropagationToken
- System.Transactions.Tests.OleTxTests.Two_durable_enlistments_commit(vote1: ForceRollback, vote2: Prepared, expectedOutcome1: Aborted, expectedOutcome2: Aborted, expectedTxStatus: Aborted)
- System.Transactions.Tests.OleTxTests.Two_durable_enlistments_commit(vote1: Prepared, vote2: ForceRollback, expectedOutcome1: Aborted, expectedOutcome2: Aborted, expectedTxStatus: Aborted)
- System.Transactions.Tests.OleTxTests.Two_durable_enlistments_commit(vote1: Prepared, vote2: Prepared, expectedOutcome1: Committed, expectedOutcome2: Committed, expectedTxStatus: Committed)
- System.Transactions.Tests.OleTxTests.Two_durable_enlistments_rollback
- System.Transactions.Tests.OleTxTests.Volatile_and_durable_enlistments(volatileCount: 2)
- System.Transactions.Tests.OleTxTests.Volatile_and_durable_enlistments(volatileCount: 1)
- System.Transactions.Tests.OleTxTests.Volatile_and_durable_enlistments(volatileCount: 0)

Error message:

System.AggregateException : One or more errors occurred. (The operation is not valid for the state of the transaction.) (The following constructor parameters did not have matching fixture data: OleTxFixture fixture)
---- System.Transactions.TransactionException : The operation is not valid for the state of the transaction.
-------- System.Transactions.TransactionManagerCommunicationException : Communication with the underlying transaction manager has failed.
------------ System.Runtime.InteropServices.COMException : The Transaction Manager is not available. (0x8004D01B)
---- The following constructor parameters did not have matching fixture data: OleTxFixture fixture


Stack trace

----- Inner Stack Trace #1 (System.Transactions.TransactionException) -----
   at System.Transactions.TransactionState.EnlistDurable(InternalTransaction tx, Guid resourceManagerIdentifier, IEnlistmentNotification enlistmentNotification, EnlistmentOptions enlistmentOptions, Transaction atomicTransaction) in /_/src/libraries/System.Transactions.Local/src/System/Transactions/TransactionState.cs:line 203
   at System.Transactions.EnlistableStates.EnlistDurable(InternalTransaction tx, Guid resourceManagerIdentifier, IEnlistmentNotification enlistmentNotification, EnlistmentOptions enlistmentOptions, Transaction atomicTransaction) in /_/src/libraries/System.Transactions.Local/src/System/Transactions/TransactionState.cs:line 552
   at System.Transactions.Transaction.EnlistDurable(Guid resourceManagerIdentifier, IEnlistmentNotification enlistmentNotification, EnlistmentOptions enlistmentOptions) in /_/src/libraries/System.Transactions.Local/src/System/Transactions/Transaction.cs:line 503
   at System.Transactions.Tests.OleTxTests.OleTxFixture.<>c.<.ctor>b__0_0() in /_/src/libraries/System.Transactions.Local/tests/OleTxTests.cs:line 534
   at System.Transactions.Tests.OleTxTests.Test(Action action) in /_/src/libraries/System.Transactions.Local/tests/OleTxTests.cs:line 481
   at System.Transactions.Tests.OleTxTests.OleTxFixture..ctor() in /_/src/libraries/System.Transactions.Local/tests/OleTxTests.cs:line 527
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.ConstructorInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr) in /_/src/libraries/System.Private.CoreLib/src/System/Reflection/ConstructorInvoker.cs:line 86
----- Inner Stack Trace -----
   at System.Transactions.Oletx.OletxTransactionManager.ProxyException(COMException comException) in /_/src/libraries/System.Transactions.Local/src/System/Transactions/Oletx/OletxTransactionManager.cs:line 613
   at System.Transactions.Oletx.DtcTransactionManager.Initialize() in /_/src/libraries/System.Transactions.Local/src/System/Transactions/Oletx/DtcTransactionManager.cs:line 63
   at System.Transactions.Oletx.DtcTransactionManager.get_ProxyShimFactory() in /_/src/libraries/System.Transactions.Local/src/System/Transactions/Oletx/DtcTransactionManager.cs:line 79
   at System.Transactions.Oletx.OletxTransactionManager.CreateTransaction(TransactionOptions properties) in /_/src/libraries/System.Transactions.Local/src/System/Transactions/Oletx/OletxTransactionManager.cs:line 448
   at System.Transactions.TransactionStatePromoted.EnterState(InternalTransaction tx) in /_/src/libraries/System.Transactions.Local/src/System/Transactions/TransactionState.cs:line 2172
----- Inner Stack Trace -----
   at System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionImportWhereabouts.GetWhereaboutsSize(UInt32& pcbSize)
   at System.Transactions.DtcProxyShim.DtcProxyShimFactory.<>c__DisplayClass12_0.<ConnectToProxyCore>b__0() in /_/src/libraries/System.Transactions.Local/src/System/Transactions/DtcProxyShim/DtcProxyShimFactory.cs:line 104
   at System.Transactions.DtcProxyShim.OletxHelper.Retry(Action action) in /_/src/libraries/System.Transactions.Local/src/System/Transactions/DtcProxyShim/OletxHelper.cs:line 41
   at System.Transactions.DtcProxyShim.DtcProxyShimFactory.ConnectToProxyCore(String nodeName, Guid resourceManagerIdentifier, Object managedIdentifier, Boolean& nodeNameMatches, Byte[]& whereabouts, ResourceManagerShim& resourceManagerShim) in /_/src/libraries/System.Transactions.Local/src/System/Transactions/DtcProxyShim/DtcProxyShimFactory.cs:line 104
   at System.Transactions.Oletx.DtcTransactionManager.Initialize() in /_/src/libraries/System.Transactions.Local/src/System/Transactions/Oletx/DtcTransactionManager.cs:line 38
----- Inner Stack Trace #2 (Xunit.Sdk.TestClassException) -----

Activity

  1. added
    JitStress
    blocking-clean-ci-optional
    on Sep 19, 2022
  2. ghost added
    untriaged
    on Sep 19, 2022
  3. v-wenyuxu commented on Sep 27, 2022

    @v-wenyuxu
    Author

    Failed again in: runtime-coreclr libraries-jitstress 20220926.1

    Failed test:

    net7.0-windows-Release-arm64-CoreCLR_checked-jitstress1_tiered-Windows.10.Arm64v8.Open
    - System.Transactions.Tests.OleTxTests.GetDtcTransaction
    - System.Transactions.Tests.OleTxTests.GetExportCookie
    - System.Transactions.Tests.OleTxTests.TransmitterPropagationToken
    - System.Transactions.Tests.OleTxTests.Recovery
    - System.Transactions.Tests.OleTxTests.Two_durable_enlistments_commit(vote1: ForceRollback, vote2: Prepared, expectedOutcome1: Aborted, expectedOutcome2: Aborted, expectedTxStatus: Aborted)
    - System.Transactions.Tests.OleTxTests.Two_durable_enlistments_commit(vote1: Prepared, vote2: ForceRollback, expectedOutcome1: Aborted, expectedOutcome2: Aborted, expectedTxStatus: Aborted)
    - System.Transactions.Tests.OleTxTests.Two_durable_enlistments_commit(vote1: Prepared, vote2: Prepared, expectedOutcome1: Committed, expectedOutcome2: Committed, expectedTxStatus: Committed)
    - System.Transactions.Tests.OleTxTests.Promotion
    - System.Transactions.Tests.OleTxTests.Volatile_and_durable_enlistments(volatileCount: 2)
    - System.Transactions.Tests.OleTxTests.Volatile_and_durable_enlistments(volatileCount: 1)
    - System.Transactions.Tests.OleTxTests.Volatile_and_durable_enlistments(volatileCount: 0)
    - System.Transactions.Tests.OleTxTests.Two_durable_enlistments_rollback
    
    net7.0-windows-Release-arm64-CoreCLR_checked-zapdisable-Windows.10.Arm64v8.Open
    - System.Transactions.Tests.OleTxTests.GetDtcTransaction
    - System.Transactions.Tests.OleTxTests.GetExportCookie
    - System.Transactions.Tests.OleTxTests.TransmitterPropagationToken
    - System.Transactions.Tests.OleTxTests.Recovery
    - System.Transactions.Tests.OleTxTests.Two_durable_enlistments_commit(vote1: ForceRollback, vote2: Prepared, expectedOutcome1: Aborted, expectedOutcome2: Aborted, expectedTxStatus: Aborted)
    - System.Transactions.Tests.OleTxTests.Two_durable_enlistments_commit(vote1: Prepared, vote2: ForceRollback, expectedOutcome1: Aborted, expectedOutcome2: Aborted, expectedTxStatus: Aborted)
    - System.Transactions.Tests.OleTxTests.Two_durable_enlistments_commit(vote1: Prepared, vote2: Prepared, expectedOutcome1: Committed, expectedOutcome2: Committed, expectedTxStatus: Committed)
    - System.Transactions.Tests.OleTxTests.Promotion
    - System.Transactions.Tests.OleTxTests.Volatile_and_durable_enlistments(volatileCount: 2)
    - System.Transactions.Tests.OleTxTests.Volatile_and_durable_enlistments(volatileCount: 1)
    - System.Transactions.Tests.OleTxTests.Volatile_and_durable_enlistments(volatileCount: 0)
    - System.Transactions.Tests.OleTxTests.Two_durable_enlistments_rollback
    
    net7.0-windows-Release-arm64-CoreCLR_checked-no_tiered_compilation-Windows.10.Arm64v8.Open
    - System.Transactions.Tests.OleTxTests.GetDtcTransaction
    - System.Transactions.Tests.OleTxTests.GetExportCookie
    - System.Transactions.Tests.OleTxTests.TransmitterPropagationToken
    - System.Transactions.Tests.OleTxTests.Recovery
    - System.Transactions.Tests.OleTxTests.Two_durable_enlistments_commit(vote1: ForceRollback, vote2: Prepared, expectedOutcome1: Aborted, expectedOutcome2: Aborted, expectedTxStatus: Aborted)
    - System.Transactions.Tests.OleTxTests.Two_durable_enlistments_commit(vote1: Prepared, vote2: ForceRollback, expectedOutcome1: Aborted, expectedOutcome2: Aborted, expectedTxStatus: Aborted)
    - System.Transactions.Tests.OleTxTests.Two_durable_enlistments_commit(vote1: Prepared, vote2: Prepared, expectedOutcome1: Committed, expectedOutcome2: Committed, expectedTxStatus: Committed)
    - System.Transactions.Tests.OleTxTests.Promotion
    - System.Transactions.Tests.OleTxTests.Volatile_and_durable_enlistments(volatileCount: 2)
    - System.Transactions.Tests.OleTxTests.Volatile_and_durable_enlistments(volatileCount: 1)
    - System.Transactions.Tests.OleTxTests.Volatile_and_durable_enlistments(volatileCount: 0)
    - System.Transactions.Tests.OleTxTests.Two_durable_enlistments_rollback
    

    Error message:

    System.AggregateException : One or more errors occurred. (The operation is not valid for the state of the transaction.) (The following constructor parameters did not have matching fixture data: OleTxFixture fixture)
    ---- System.Transactions.TransactionException : The operation is not valid for the state of the transaction.
    -------- System.Transactions.TransactionManagerCommunicationException : Communication with the underlying transaction manager has failed.
    ------------ System.Runtime.InteropServices.COMException : The Transaction Manager is not available. (0x8004D01B)
    ---- The following constructor parameters did not have matching fixture data: OleTxFixture fixture
    
    
    Stack trace
    
    ----- Inner Stack Trace #1 (System.Transactions.TransactionException) -----
       at System.Transactions.TransactionState.EnlistDurable(InternalTransaction tx, Guid resourceManagerIdentifier, IEnlistmentNotification enlistmentNotification, EnlistmentOptions enlistmentOptions, Transaction atomicTransaction) in /_/src/libraries/System.Transactions.Local/src/System/Transactions/TransactionState.cs:line 203
       at System.Transactions.EnlistableStates.EnlistDurable(InternalTransaction tx, Guid resourceManagerIdentifier, IEnlistmentNotification enlistmentNotification, EnlistmentOptions enlistmentOptions, Transaction atomicTransaction) in /_/src/libraries/System.Transactions.Local/src/System/Transactions/TransactionState.cs:line 552
       at System.Transactions.Transaction.EnlistDurable(Guid resourceManagerIdentifier, IEnlistmentNotification enlistmentNotification, EnlistmentOptions enlistmentOptions) in /_/src/libraries/System.Transactions.Local/src/System/Transactions/Transaction.cs:line 503
       at System.Transactions.Tests.OleTxTests.OleTxFixture.<>c.<.ctor>b__0_0() in /_/src/libraries/System.Transactions.Local/tests/OleTxTests.cs:line 534
       at System.Transactions.Tests.OleTxTests.Test(Action action) in /_/src/libraries/System.Transactions.Local/tests/OleTxTests.cs:line 481
       at System.Transactions.Tests.OleTxTests.OleTxFixture..ctor() in /_/src/libraries/System.Transactions.Local/tests/OleTxTests.cs:line 527
       at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
       at System.Reflection.ConstructorInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr) in /_/src/libraries/System.Private.CoreLib/src/System/Reflection/ConstructorInvoker.cs:line 86
    ----- Inner Stack Trace -----
       at System.Transactions.Oletx.OletxTransactionManager.ProxyException(COMException comException) in /_/src/libraries/System.Transactions.Local/src/System/Transactions/Oletx/OletxTransactionManager.cs:line 613
       at System.Transactions.Oletx.DtcTransactionManager.Initialize() in /_/src/libraries/System.Transactions.Local/src/System/Transactions/Oletx/DtcTransactionManager.cs:line 63
       at System.Transactions.Oletx.DtcTransactionManager.get_ProxyShimFactory() in /_/src/libraries/System.Transactions.Local/src/System/Transactions/Oletx/DtcTransactionManager.cs:line 79
       at System.Transactions.Oletx.OletxTransactionManager.CreateTransaction(TransactionOptions properties) in /_/src/libraries/System.Transactions.Local/src/System/Transactions/Oletx/OletxTransactionManager.cs:line 448
       at System.Transactions.TransactionStatePromoted.EnterState(InternalTransaction tx) in /_/src/libraries/System.Transactions.Local/src/System/Transactions/TransactionState.cs:line 2172
    ----- Inner Stack Trace -----
       at System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionImportWhereabouts.GetWhereaboutsSize(UInt32& pcbSize)
       at System.Transactions.DtcProxyShim.DtcProxyShimFactory.<>c__DisplayClass12_0.<ConnectToProxyCore>b__0() in /_/src/libraries/System.Transactions.Local/src/System/Transactions/DtcProxyShim/DtcProxyShimFactory.cs:line 104
       at System.Transactions.DtcProxyShim.OletxHelper.Retry(Action action) in /_/src/libraries/System.Transactions.Local/src/System/Transactions/DtcProxyShim/OletxHelper.cs:line 41
       at System.Transactions.DtcProxyShim.DtcProxyShimFactory.ConnectToProxyCore(String nodeName, Guid resourceManagerIdentifier, Object managedIdentifier, Boolean& nodeNameMatches, Byte[]& whereabouts, ResourceManagerShim& resourceManagerShim) in /_/src/libraries/System.Transactions.Local/src/System/Transactions/DtcProxyShim/DtcProxyShimFactory.cs:line 104
       at System.Transactions.DtcProxyShim.DtcProxyShimFactory.ConnectToProxy(String nodeName, Guid resourceManagerIdentifier, Object managedIdentifier, Boolean& nodeNameMatches, Byte[]& whereabouts, ResourceManagerShim& resourceManagerShim) in /_/src/libraries/System.Transactions.Local/src/System/Transactions/DtcProxyShim/DtcProxyShimFactory.cs:line 68
    
  4. roji commented on Sep 27, 2022

    @roji
    Member

    Thanks for filing, I'll be taking care of this in the coming days. This is environment Windows flakiness with the available of the MSDTC; there's already a retry mechanism to take this into account, it probably needs to retry even longer etc.

  5. ghost added
    in-pr
    on Sep 28, 2022
  6. added a commit that references this issue on Sep 30, 2022
  7. ghost removed
    in-pr
    on Sep 30, 2022
  8. ghost removed
    untriaged
    on Sep 30, 2022
  9. added a commit that references this issue on Sep 30, 2022
  10. ghost locked as resolved and limited conversation to collaborators on Oct 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

JitStressarch-arm64area-System.Transactionsblocking-clean-ci-optionalos-windows

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions