[
https://issues.jboss.org/browse/WFCORE-2086?page=com.atlassian.jira.plugi...
]
Petr Kremensky commented on WFCORE-2086:
----------------------------------------
[~brian.stansberry]
We can still see this to fail intermittently in our testing jobs. I was able to reproduce
this locally to by running the tests in loop. I choose
testSlaveServerBlockModelCancelMaster() as this is the one I see to fail the most often in
the TS runs.
*reproduce*
* put the _testSlaveServerBlockModelCancelMaster()_ test into for loop
{noformat}
@Test
public void testSlaveServerBlockModelCancelMaster() throws Exception {
while (true) {
long start = System.currentTimeMillis();
Future<ModelNode> blockFuture = block("slave",
"main-three", BlockerExtension.BlockPoint.MODEL);
String id = findActiveOperation(masterClient, "slave",
"main-three", "block", null, start);
cancel(masterClient, "master", null, "block", null, start,
false);
ModelNode response = blockFuture.get(GET_TIMEOUT, TimeUnit.MILLISECONDS);
assertEquals(response.asString(), CANCELLED,
response.get(OUTCOME).asString());
validateNoActiveOperation(masterClient, "slave",
"main-three", id, true);
}
}
{noformat}
* run the test
{noformat}
mvn test -Dts.domain -pl testsuite/domain
-Dtest=OperationCancellationTestCase#testSlaveServerBlockModelCancelMaster
-DtestLogToFile=false
...
[ERROR] Failures:
[ERROR] OperationCancellationTestCase.testSlaveServerBlockModelCancelMaster:634
{"outcome" => "failed","result" =>
undefined,"failure-description" => "WFLYDC0022: Operation failed or was
rolled back on all servers.","rolled-back" =>
true,"server-groups" => {"main-server-group" =>
{"host" => {"master" => {"main-one" =>
{"response" => {"outcome" =>
"failed","rolled-back" => true}}},"slave" =>
{"main-three" => {"response" => {"outcome" =>
"cancelled","result" => undefined,"failure-description"
=> "WFLYCTL0271: Operation cancelled","rolled-back" =>
true}}}}}}} expected:<[cancel]led> but was:<[fai]led>
{noformat}
In the most of the cases, this fails immediately (<20 iterations), if it does not,
please re-execute.
This doesn't seem to be environment related.
*blockFuture* response of passed test:
{noformat}
{"outcome" => "cancelled","result" =>
undefined,"failure-description" => "WFLYDC0022: Operation failed or was
rolled back on all servers.","rolled-back" =>
true,"server-groups" => {"main-server-group" =>
{"host" => {"master" => {"main-one" =>
{"response" => {"outcome" =>
"failed","rolled-back" => true}}},"slave"
=> {"main-three" => {"response" => {"outcome" =>
"cancelled","result" => undefined,"failure-description"
=> "WFLYCTL0271: Operation cancelled","rolled-back"
=> true}}}}}}}
{noformat}
*blockFuture* response of failed test:
{noformat}
{"outcome" => "failed","result" =>
undefined,"failure-description" => "WFLYDC0022: Operation failed or was
rolled back on all servers.","rolled-back" =>
true,"server-groups" => {"main-server-group" =>
{"host" => {"master" => {"main-one" =>
{"response" => {"outcome" =>
"failed","rolled-back" => true}}},"slave"
=> {"main-three" => {"response" => {"outcome" =>
"cancelled","result" => undefined,"failure-description"
=> "WFLYCTL0271: Operation cancelled","rolled-back"
=> true}}}}}}}
{noformat}
Intermittent failure in OperationCancellationTestCase
-----------------------------------------------------
Key: WFCORE-2086
URL:
https://issues.jboss.org/browse/WFCORE-2086
Project: WildFly Core
Issue Type: Bug
Components: Management
Reporter: Brian Stansberry
Assignee: Brian Stansberry
Investigate this:
https://ci.wildfly.org/viewLog.html?buildId=36108&buildTypeId=WildFly...
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)