@@ -1036,27 +1036,35 @@ public void processDelayedAck(Object ignored, @Nullable Throwable err) {
10361036
10371037 @ Override
10381038 public CompletableFuture <Void > startAsync (ComponentContext componentContext ) {
1039- var deadlockPreventionPolicy = new WoundWaitDeadlockPreventionPolicy () {
1039+ // var deadlockPreventionPolicy = new WoundWaitDeadlockPreventionPolicy() {
1040+ // @Override
1041+ // public long waitTimeout() {
1042+ // return DEFAULT_LOCK_TIMEOUT;
1043+ // }
1044+ //
1045+ // @Override
1046+ // public void failAction(UUID owner) {
1047+ // // TODO IGNITE-28447 sendTxRecoveryMessage and delete locks.
1048+ // TxStateMeta state = txStateVolatileStorage.state(owner);
1049+ // if (state == null || state.txCoordinatorId() == null) {
1050+ // return; // Tx state is invalid. Locks will be cleaned up by tx recovery process.
1051+ // }
1052+ //
1053+ // InternalClusterNode coordinator = topologyService.getById(state.txCoordinatorId());
1054+ // if (coordinator == null) {
1055+ // return; // Tx is abandoned. Locks will be cleaned up by tx recovery process.
1056+ // }
1057+ //
1058+ // txMessageSender.kill(coordinator, owner);
1059+ // }
1060+ // };
1061+
1062+ // This commented section is left intentionally.
1063+ var deadlockPreventionPolicy = new WaitDieDeadlockPreventionPolicy () {
10401064 @ Override
10411065 public long waitTimeout () {
10421066 return DEFAULT_LOCK_TIMEOUT ;
10431067 }
1044-
1045- @ Override
1046- public void failAction (UUID owner ) {
1047- // TODO IGNITE-28447 sendTxRecoveryMessage and delete locks.
1048- TxStateMeta state = txStateVolatileStorage .state (owner );
1049- if (state == null || state .txCoordinatorId () == null ) {
1050- return ; // Tx state is invalid. Locks will be cleaned up by tx recovery process.
1051- }
1052-
1053- InternalClusterNode coordinator = topologyService .getById (state .txCoordinatorId ());
1054- if (coordinator == null ) {
1055- return ; // Tx is abandoned. Locks will be cleaned up by tx recovery process.
1056- }
1057-
1058- txMessageSender .kill (coordinator , owner );
1059- }
10601068 };
10611069
10621070 txStateVolatileStorage .start ();
0 commit comments