New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IGNITE-5910 Method stopGrid(name) doesn't work in multiJvm mode #2382
Conversation
4982dba
to
4a9c38e
Compare
a6d513a
to
001f22e
Compare
proxy.remoteCompute().runAsync(new StopGridTask(igniteInstanceName, cancel)); | ||
|
||
try { | ||
assert rmtNodeStoppedLatch.await(NODE_LEFT_TIMEOUT, TimeUnit.MILLISECONDS) : "Remote node has not stopped [id=" + rmNodeId + ']'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Too long string.
@@ -295,10 +300,32 @@ public static IgniteProcessProxy ignite(String igniteInstanceName) { | |||
* @param cancel If {@code true} then all jobs currently will be cancelled. | |||
*/ | |||
public static void stop(String igniteInstanceName, boolean cancel) { | |||
IgniteProcessProxy proxy = gridProxies.get(igniteInstanceName); | |||
final IgniteProcessProxy proxy = gridProxies.get(igniteInstanceName); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need final in Java8.
proxy.remoteCompute().runAsync(new StopGridTask(igniteInstanceName, cancel)); | ||
|
||
try { | ||
assert rmtNodeStoppedLatch.await(NODE_LEFT_TIMEOUT, TimeUnit.MILLISECONDS) : "Remote node has not " + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please fix here, assertion has side effect. If assertions disabled, nothign will be awaited.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure since this is the common construction which is used in the whole testing framework?
If assertions are disabled then the huge part of the testing framework will not be able to work properly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I'm sure. We consider assertions from JUnit as best practice
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you talking about JUnit 3 assertions from GridAbstactTest? They are not available here since this is not testing class.
I only able to use this construction:
if (rmtNodeStoppedLatch.await(NODE_LEFT_TIMEOUT, TimeUnit.MILLISECONDS)) throw new AssertException("Remote node has not stopped [id=" + rmNodeId + ']');
This reverts commit 09f04c6.
3e44454
to
a9beb00
Compare
* master-up: (24 commits) IGNITE-7928: .NET: Fixed hang caused by mishandled exception during custom cache store deserialization. This closes apache#3690. IGNITE-8036 MulticastIpFinder is replaced with VmIpFinder - Fixes apache#3693. ignite-8004 move setting compatibilityMode to head of collectGridNodeData - Fixes apache#3665. IGNITE-7852: ODBC: Implemented username/password authentication. This closes apache#3671. IGNITE-7969 Wrong 'wait for topology version' routine fixed IGNITE-7581 TxPessimisticDeadlockDetectionTest.testDeadlocksLocal hangs on TC - Fixes apache#3654. Revert "IGNITE-7436: Added AuthenticationEnabled flag to .NET." master Fixed typo. IGNITE-7436: Added AuthenticationEnabled flag to .NET. IGNITE-7814 wrap on h2database for overwrite Export-Package - Fixes apache#3572. IGNITE-7119 Web Agent: Implemented support for comma-separated list of node URIs. IGNITE-8002 REST: Added support of new authentication via new API. IGNITE-8007 We should treat as empty any partition as empty if it doesn't have any data - Fixes apache#3677. IGNITE-5357 Replicated cache reads load balancing. IGNITE-5910: Method stopGrid(name) doesn't work in multiJvm mode - Fixes apache#2382. �IGNITE-5357 Replicated cache reads load balancing. - Fixes apache#3578. IGNITE-4447: Remove "Ignite 150 Clients" suite. - Fixes apache#3204. IGNITE-7436: Simple username/password authentication. This closes apache#3483. Ignite-7950: Updated benchmarks according to new sql streamer impl. IGNITE-7949 Web Console: Refactored post validation on Sign in / Sign up. ...
apache#2382. Signed-off-by: Nikolay Izhikov <nizhikov@apache.org>
apache#2382. Signed-off-by: Nikolay Izhikov <nizhikov@apache.org> (cherry picked from commit 5ccb548)
apache#2382. Signed-off-by: Nikolay Izhikov <nizhikov@apache.org> (cherry picked from commit 5ccb548)
apache#2382. Signed-off-by: Nikolay Izhikov <nizhikov@apache.org> (cherry picked from commit 5ccb548)
apache#2382. Signed-off-by: Nikolay Izhikov <nizhikov@apache.org> (cherry picked from commit 5ccb548)
apache#2382. Signed-off-by: Nikolay Izhikov <nizhikov@apache.org> (cherry picked from commit 5ccb548)
apache#2382. Signed-off-by: Nikolay Izhikov <nizhikov@apache.org> (cherry picked from commit 5ccb548)
No description provided.