|
31 | 31 | import java.util.concurrent.CopyOnWriteArrayList; |
32 | 32 | import org.apache.ignite.internal.failure.FailureContext; |
33 | 33 | import org.apache.ignite.internal.failure.FailureProcessor; |
| 34 | +import org.apache.ignite.internal.lang.ComponentStoppingException; |
34 | 35 | import org.apache.ignite.internal.lang.IgniteBiTuple; |
35 | 36 | import org.apache.ignite.internal.lang.IgniteInternalException; |
| 37 | +import org.apache.ignite.internal.lang.NodeStoppingException; |
36 | 38 | import org.apache.ignite.internal.logger.IgniteLogger; |
37 | 39 | import org.apache.ignite.internal.logger.IgniteThrottledLogger; |
38 | 40 | import org.apache.ignite.internal.logger.Loggers; |
@@ -156,13 +158,13 @@ private CompletableFuture<?> callCleanup(TxMeta txMeta, UUID txId) { |
156 | 158 | txMeta.commitTimestamp(), |
157 | 159 | txId |
158 | 160 | ).exceptionally(throwable -> { |
159 | | - throttledLog.warn( |
160 | | - "Failed to cleanup transaction", |
161 | | - "Failed to cleanup transaction {}.", |
162 | | - throwable, |
163 | | - formatTxInfo(txId, txManager) |
164 | | - ); |
165 | | - |
| 161 | + if (!hasCause(throwable, NodeStoppingException.class) && !hasCause(throwable, ComponentStoppingException.class)) { |
| 162 | + throttledLog.warn( |
| 163 | + "Failed to cleanup transaction", |
| 164 | + "Failed to cleanup transaction {}.", |
| 165 | + throwable, |
| 166 | + formatTxInfo(txId, txManager)); |
| 167 | + } |
166 | 168 | return null; |
167 | 169 | }); |
168 | 170 | } |
|
0 commit comments