Strange AppVeyor failure in PR

2 views
Skip to first unread message

Stanislav Baiduzhyi

unread,
Jul 21, 2017, 5:46:04 AM7/21/17
to DataStax Java Driver for Apache Cassandra User Mailing List
Good day,

I've created a PR to java-driver project, but AppVeyor build failed for a reason that seems completely unrelated. Could someone please retrigger the build, or teach me how to do it?


Andrew Tolbert

unread,
Jul 21, 2017, 10:43:21 AM7/21/17
to DataStax Java Driver for Apache Cassandra User Mailing List
Hi Stanislav,

I went ahead and retriggered the build.  It looks like the test that failed was timing oriented:

[00:37:56] Starting com.datastax.driver.core.policies.DefaultRetryPolicyIntegrationTest.should_try_next_host_on_server_side_error [Test #433]...
[00:37:56]     2138780 [cluster749-nio-worker-2] WARN  com.datastax.driver.core.RequestHandler - /127.0.1.1:9865 replied with server error (Server Error), defuncting connection.
[00:37:56]     2138780 [cluster749-nio-worker-0] WARN  com.datastax.driver.core.RequestHandler - /127.0.1.2:9865 replied with server error (Server Error), defuncting connection.
[00:37:56]     2138796 [cluster749-nio-worker-2] WARN  com.datastax.driver.core.RequestHandler - /127.0.1.3:9865 replied with server error (Server Error), defuncting connection.
[00:37:58] java.lang.AssertionError: 
[00:37:58] Expected size:<1> but was:<2> in:
[00:37:58] <[Query{query='mock query', consistency='LOCAL_ONE', serialConsistency='null', variables=[], variableTypes=[], timestamp=1500473185254000}, Query{query='select cluster_name from system.local', consistency='ONE', serialConsistency='null', variables=[], variableTypes=[], timestamp=null}]>
[00:37:58] at com.datastax.driver.core.policies.AbstractRetryPolicyIntegrationTest.assertQueried(AbstractRetryPolicyIntegrationTest.java:172)
[00:37:58] at com.datastax.driver.core.policies.DefaultRetryPolicyIntegrationTest.should_try_next_host_on_server_side_error(DefaultRetryPolicyIntegrationTest.java:226)
[00:37:58] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[00:37:58] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[00:37:58] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[00:37:58] at java.lang.reflect.Method.invoke(Method.java:498)
[00:37:58] at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)
[00:37:58] at org.testng.internal.MethodInvocationHelper$1.runTestMethod(MethodInvocationHelper.java:200)
[00:37:58] at org.jboss.byteman.contrib.bmunit.BMNGAbstractRunner.run(BMNGAbstractRunner.java:56)
[00:37:58] at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
[00:37:58] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[00:37:58] at java.lang.reflect.Method.invoke(Method.java:498)
[00:37:58] at org.testng.internal.MethodInvocationHelper.invokeHookable(MethodInvocationHelper.java:212)
[00:37:58] at org.testng.internal.Invoker.invokeMethod(Invoker.java:707)
[00:37:58] at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
[00:37:58] at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
[00:37:58] at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
[00:37:58] at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
[00:37:58] at org.testng.TestRunner.privateRun(TestRunner.java:767)
[00:37:58] at org.testng.TestRunner.run(TestRunner.java:617)
[00:37:58] at org.testng.SuiteRunner.runTest(SuiteRunner.java:348)
[00:37:58] at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:343)
[00:37:58] at org.testng.SuiteRunner.privateRun(SuiteRunner.java:305)
[00:37:58] at org.testng.SuiteRunner.run(SuiteRunner.java:254)
[00:37:58] at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
[00:37:58] at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
[00:37:58] at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
[00:37:58] at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
[00:37:58] at org.testng.TestNG.run(TestNG.java:1057)
[00:37:58] at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:115)
[00:37:58] at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeMulti(TestNGDirectoryTestSuite.java:205)
[00:37:58] at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:108)
[00:37:58] at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:111)
[00:37:58] at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
[00:37:58] at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
[00:37:58] at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
[00:37:58] FAILED : should_try_next_host_on_server_side_error
[00:37:58] Test   : 00:00:02
[00:37:58] Elapsed: 00:35:41

The test validates that only 1 query was received by the host.  The query  'select cluster_name from system.local' is what the driver sends when it first connects to the host.  The test isn't smart enough to filter out queries like these that it's not interested in (will fix it) and usually this query would have been cleared out of the query log, so it's not related to your change.

Thanks!
Andy
Reply all
Reply to author
Forward
0 new messages