Skip to content

Commit 0483dd7

Browse files
committed
fix compile
1 parent beccdb3 commit 0483dd7

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

modules/core/src/test/java/org/apache/ignite/internal/processors/cache/transactions/TxRollbackAsyncTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@
8686
import org.junit.Test;
8787

8888
import static java.lang.Thread.interrupted;
89-
import static java.lang.Thread.yield;
9089
import static org.apache.ignite.cache.CacheAtomicityMode.TRANSACTIONAL;
9190
import static org.apache.ignite.cache.CacheWriteSynchronizationMode.FULL_SYNC;
9291
import static org.apache.ignite.configuration.WALMode.LOG_ONLY;
@@ -745,7 +744,7 @@ public void testMixedAsyncRollbackTypes() throws Exception {
745744

746745
// Reserve node for rollback.
747746
if (!idx.compareAndSet(nodeId, 0, 1)) {
748-
yield();
747+
Thread.yield();
749748

750749
continue;
751750
}

modules/core/src/test/java/org/apache/ignite/internal/processors/cache/transactions/TxRollbackOnTopologyChangeTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
import org.apache.ignite.transactions.Transaction;
3737
import org.junit.Test;
3838

39-
import static java.lang.Thread.yield;
4039
import static org.apache.ignite.cache.CacheAtomicityMode.TRANSACTIONAL;
4140
import static org.apache.ignite.cache.CacheWriteSynchronizationMode.FULL_SYNC;
4241
import static org.apache.ignite.transactions.TransactionConcurrency.PESSIMISTIC;
@@ -173,7 +172,7 @@ public void testRollbackOnTopologyChange() throws Exception {
173172
final int nodeId = r.nextInt(TOTAL_CNT);
174173

175174
if (!reservedIdx.compareAndSet(nodeId, 0, 1)) {
176-
yield();
175+
Thread.yield();
177176

178177
continue;
179178
}

0 commit comments

Comments
 (0)