You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@geode.apache.org by GitBox <gi...@apache.org> on 2021/08/25 10:38:13 UTC
[GitHub] [geode] albertogpz opened a new pull request #6802: GEODE-9369: Fix test failure when run on Windows
albertogpz opened a new pull request #6802:
URL: https://github.com/apache/geode/pull/6802
In the test case that cancels all ongoing executions of the wan-copy command, it seems that it takes longer than 100ms to start the two command executions so, when the cancel is executed later, the executions are not yet started.
A longer sleep time to wait for the wan-copy commands to be started has been added.
See the test failure on windows here:
https://concourse.apachegeode-ci.info/teams/main/pipelines/apache-develop-main/jobs/windows-unit-test-openjdk11/builds/143
Thank you for submitting a contribution to Apache Geode.
In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:
### For all changes:
- [ ] Is there a JIRA ticket associated with this PR? Is it referenced in the commit message?
- [ ] Has your PR been rebased against the latest commit within the target branch (typically `develop`)?
- [ ] Is your initial contribution a single, squashed commit?
- [ ] Does `gradlew build` run cleanly?
- [ ] Have you written or updated unit tests to verify your changes?
- [ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under [ASF 2.0](http://www.apache.org/legal/resolved.html#category-a)?
### Note:
Please ensure that once the PR is submitted, check Concourse for build issues and
submit an update to your PR as soon as possible. If you need help, please send an
email to dev@geode.apache.org.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@geode.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [geode] albertogpz commented on a change in pull request #6802: GEODE-9369: Fix test failure when run on Windows
Posted by GitBox <gi...@apache.org>.
albertogpz commented on a change in pull request #6802:
URL: https://github.com/apache/geode/pull/6802#discussion_r709874723
##########
File path: geode-gfsh/src/test/java/org/apache/geode/management/internal/cli/functions/WanCopyRegionFunctionTest.java
##########
@@ -562,13 +562,13 @@ public void wanCopyRegion_verifyExceptionThrownWhenExceptionWhileSendingBatch()
public void executeWanCopyRegionFunctionInNewThread_verifyErrorWhenAlreadyRunningCommand()
throws BatchException70, InterruptedException, ExecutionException {
Object[] options = new Object[] {"myRegion", "mySender", false, 1L, 1};
- Future<CliFunctionResult> future = executeAsyncWanCopyRegionFunction(options);
+ Future<CliFunctionResult> future = executeAsyncWanCopyRegionFunction(options, 1000);
// Wait for the execute function to start
- Thread.sleep(100);
+ Thread.sleep(500L);
Review comment:
This PR has been deprecated.
New changes are being done here: https://github.com/apache/geode/pull/6833
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@geode.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [geode] mhansonp commented on a change in pull request #6802: GEODE-9369: Fix test failure when run on Windows
Posted by GitBox <gi...@apache.org>.
mhansonp commented on a change in pull request #6802:
URL: https://github.com/apache/geode/pull/6802#discussion_r700620863
##########
File path: geode-gfsh/src/test/java/org/apache/geode/management/internal/cli/functions/WanCopyRegionFunctionTest.java
##########
@@ -562,13 +562,13 @@ public void wanCopyRegion_verifyExceptionThrownWhenExceptionWhileSendingBatch()
public void executeWanCopyRegionFunctionInNewThread_verifyErrorWhenAlreadyRunningCommand()
throws BatchException70, InterruptedException, ExecutionException {
Object[] options = new Object[] {"myRegion", "mySender", false, 1L, 1};
- Future<CliFunctionResult> future = executeAsyncWanCopyRegionFunction(options);
+ Future<CliFunctionResult> future = executeAsyncWanCopyRegionFunction(options, 1000);
// Wait for the execute function to start
- Thread.sleep(100);
+ Thread.sleep(500L);
Review comment:
Is there something we can wait on rather than just using a Thread.sleep?
##########
File path: geode-gfsh/src/test/java/org/apache/geode/management/internal/cli/functions/WanCopyRegionFunctionTest.java
##########
@@ -562,13 +562,13 @@ public void wanCopyRegion_verifyExceptionThrownWhenExceptionWhileSendingBatch()
public void executeWanCopyRegionFunctionInNewThread_verifyErrorWhenAlreadyRunningCommand()
throws BatchException70, InterruptedException, ExecutionException {
Object[] options = new Object[] {"myRegion", "mySender", false, 1L, 1};
- Future<CliFunctionResult> future = executeAsyncWanCopyRegionFunction(options);
+ Future<CliFunctionResult> future = executeAsyncWanCopyRegionFunction(options, 1000);
Review comment:
Can you add a constant for the magic "1000" so we know why it is there?
##########
File path: geode-gfsh/src/test/java/org/apache/geode/management/internal/cli/functions/WanCopyRegionFunctionTest.java
##########
@@ -579,17 +579,42 @@ public void executeWanCopyRegionFunctionInNewThread_verifyErrorWhenAlreadyRunnin
future.get();
}
+ @Test
+ public void executeWanCopyRegionFunctionInNewThread_cancelExecution()
+ throws ExecutionException, InterruptedException, BatchException70 {
+ Object[] options1 = new Object[] {"myRegion", "mySender", false, 1L, 1};
+ Future<CliFunctionResult> future1 = executeAsyncWanCopyRegionFunction(options1, 10000);
+
+ // Wait for the function to start execution
+ Thread.sleep(1000L);
Review comment:
Is there something that we could be waiting on rather than a sleep?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@geode.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [geode] albertogpz closed pull request #6802: GEODE-9369: Fix test failure when run on Windows
Posted by GitBox <gi...@apache.org>.
albertogpz closed pull request #6802:
URL: https://github.com/apache/geode/pull/6802
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@geode.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org