Skip to content

Commit

Permalink
IGNITE-14823 Receive abbrevation (#11157)
Browse files Browse the repository at this point in the history
  • Loading branch information
nizhikov authored Dec 29, 2023
1 parent 7270b5c commit a773c1b
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
6 changes: 3 additions & 3 deletions modules/checkstyle/src/main/resources/abbrevations.csv
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ properties,props
process,proc
processor,proc
#query,qry
#receive,rcv
#reference,ref
receive,rcv
reference,ref
#regularexpression,regex
#repository,repo
repository,repo
#request,req
#resource,rsrc
#response,res
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public void testDiscoeryBinaryMetaDelayedWithOverfloodThreadPool() throws Except
private void doTestMarshallingBinaryMappingsLoadedFromClient(boolean receiveMetadataOnClientJoin) throws Exception {
CountDownLatch delayMappingLatch = new CountDownLatch(1);
AtomicInteger loadKeys = new AtomicInteger(100);
CountDownLatch evtReceiveLatch = new CountDownLatch(1);
CountDownLatch evtRcvLatch = new CountDownLatch(1);
int initKeys = receiveMetadataOnClientJoin ? 10 : 0;

IgniteEx srv1 = startGrid(0);
Expand Down Expand Up @@ -210,7 +210,7 @@ private void doTestMarshallingBinaryMappingsLoadedFromClient(boolean receiveMeta
(IgniteBiPredicate<UUID, Event>)(uuid, evt) -> {
info("Event [" + evt.shortDisplay() + ']');

evtReceiveLatch.countDown();
evtRcvLatch.countDown();

return true;
},
Expand All @@ -232,7 +232,7 @@ private void doTestMarshallingBinaryMappingsLoadedFromClient(boolean receiveMeta

delayMappingLatch.countDown();

assertTrue(U.await(evtReceiveLatch, AWAIT_PROCESSING_TIMEOUT_MS, TimeUnit.MILLISECONDS));
assertTrue(U.await(evtRcvLatch, AWAIT_PROCESSING_TIMEOUT_MS, TimeUnit.MILLISECONDS));
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,29 +164,29 @@ public void testIsolation() throws Exception {

String initValue = "qazwsx";

IgniteAtomicReference<String> atomicReference = ignite.atomicReference(atomicName, initValue, true);
IgniteAtomicReference<String> atomicRef = ignite.atomicReference(atomicName, initValue, true);

try (Transaction tx = ignite.transactions().txStart()) {
cache.put(1, 1);

assertEquals(initValue, atomicReference.get());
assertEquals(initValue, atomicRef.get());

assertTrue(atomicReference.compareAndSet(initValue, "aaa"));
assertTrue(atomicRef.compareAndSet(initValue, "aaa"));

assertEquals("aaa", atomicReference.get());
assertEquals("aaa", atomicRef.get());

tx.rollback();

assertEquals(0, cache.size());
}

assertTrue(atomicReference.compareAndSet("aaa", null));
assertTrue(atomicRef.compareAndSet("aaa", null));

assertNull(atomicReference.get());
assertNull(atomicRef.get());

atomicReference.close();
atomicRef.close();

assertTrue(atomicReference.removed());
assertTrue(atomicRef.removed());
}
finally {
ignite.destroyCache(cfg.getName());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1529,12 +1529,12 @@ public void testIsLambdaOnLambdas() {
System.out.println(repeatRule);
};

Runnable methodReference = this::testIsLambdaOnLambdas;
Runnable methodRef = this::testIsLambdaOnLambdas;

assertTrue(IgniteUtils.isLambda(someLambda.getClass()));
assertTrue(IgniteUtils.isLambda(capturingLocalLambda.getClass()));
assertTrue(IgniteUtils.isLambda(capturingOuterClsLambda.getClass()));
assertTrue(IgniteUtils.isLambda(methodReference.getClass()));
assertTrue(IgniteUtils.isLambda(methodRef.getClass()));
}

/** Test nested class. */
Expand Down

0 comments on commit a773c1b

Please sign in to comment.