[jira] [Commented] (CASSANDRA-14110) ViewLongTest.testConflictResolution() failed

2017-12-19 Thread Stefan Podkowinski (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-14110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16296570#comment-16296570
 ] 

Stefan Podkowinski commented on CASSANDRA-14110:


>From my understanding the affected code is supposed to make sure that the 
>batch log has been fully replayed until the test moves on. Ignoring timeouts 
>and retry, instead of failing the test, seems to be the more reasonable 
>behavior here.

Can you create patches for 3.0, 3.11, 4.0 and run them on circleCI?

> ViewLongTest.testConflictResolution() failed
> 
>
> Key: CASSANDRA-14110
> URL: https://issues.apache.org/jira/browse/CASSANDRA-14110
> Project: Cassandra
>  Issue Type: Bug
>  Components: Testing
>Reporter: Jay Zhuang
>Assignee: Jay Zhuang
>
> The test works fine on my mac, but failed in the 
> [CircleCI|https://circleci.com/gh/cooldoger/cassandra/157]:
> {noformat}
> $ ant long-test -Dtest.name=ViewLongTest
> ...
> [junit] Testcase: 
> testConflictResolution(org.apache.cassandra.cql3.ViewLongTest):   Caused an 
> ERROR
> [junit] [localhost/127.0.0.1:40644] Timed out waiting for server response
> [junit] com.datastax.driver.core.exceptions.OperationTimedOutException: 
> [localhost/127.0.0.1:40644] Timed out waiting for server response
> [junit] at 
> com.datastax.driver.core.exceptions.OperationTimedOutException.copy(OperationTimedOutException.java:44)
> [junit] at 
> com.datastax.driver.core.exceptions.OperationTimedOutException.copy(OperationTimedOutException.java:26)
> [junit] at 
> com.datastax.driver.core.DriverThrowables.propagateCause(DriverThrowables.java:37)
> [junit] at 
> com.datastax.driver.core.DefaultResultSetFuture.getUninterruptibly(DefaultResultSetFuture.java:245)
> [junit] at 
> com.datastax.driver.core.AbstractSession.execute(AbstractSession.java:68)
> [junit] at 
> com.datastax.driver.core.AbstractSession.execute(AbstractSession.java:51)
> [junit] at 
> org.apache.cassandra.cql3.CQLTester.executeNet(CQLTester.java:829)
> [junit] at 
> org.apache.cassandra.cql3.ViewLongTest.testConflictResolution(ViewLongTest.java:138)
> [junit] Caused by: 
> com.datastax.driver.core.exceptions.OperationTimedOutException: 
> [localhost/127.0.0.1:40644] Timed out waiting for server response
> [junit] at 
> com.datastax.driver.core.RequestHandler$SpeculativeExecution.onTimeout(RequestHandler.java:800)
> [junit] at 
> com.datastax.driver.core.Connection$ResponseHandler$1.run(Connection.java:1382)
> [junit] at 
> com.datastax.shaded.netty.util.HashedWheelTimer$HashedWheelTimeout.expire(HashedWheelTimer.java:663)
> [junit] at 
> com.datastax.shaded.netty.util.HashedWheelTimer$HashedWheelBucket.expireTimeouts(HashedWheelTimer.java:738)
> [junit] at 
> com.datastax.shaded.netty.util.HashedWheelTimer$Worker.run(HashedWheelTimer.java:466)
> [junit] at 
> com.datastax.shaded.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:138)
> [junit] at java.lang.Thread.run(Thread.java:745)
> [junit]
> [junit]
> [junit] Testcase: 
> testConflictResolution(org.apache.cassandra.cql3.ViewLongTest):   Caused an 
> ERROR
> [junit] [localhost/127.0.0.1:40644] Timed out waiting for server response
> [junit] com.datastax.driver.core.exceptions.OperationTimedOutException: 
> [localhost/127.0.0.1:40644] Timed out waiting for server response
> [junit] at 
> com.datastax.driver.core.exceptions.OperationTimedOutException.copy(OperationTimedOutException.java:44)
> [junit] at 
> com.datastax.driver.core.exceptions.OperationTimedOutException.copy(OperationTimedOutException.java:26)
> [junit] at 
> com.datastax.driver.core.DriverThrowables.propagateCause(DriverThrowables.java:37)
> [junit] at 
> com.datastax.driver.core.DefaultResultSetFuture.getUninterruptibly(DefaultResultSetFuture.java:245)
> [junit] at 
> com.datastax.driver.core.AbstractSession.execute(AbstractSession.java:68)
> [junit] at 
> com.datastax.driver.core.AbstractSession.execute(AbstractSession.java:51)
> [junit] at 
> org.apache.cassandra.cql3.CQLTester.executeNet(CQLTester.java:829)
> [junit] at 
> org.apache.cassandra.cql3.ViewLongTest.end(ViewLongTest.java:66)
> [junit] Caused by: 
> com.datastax.driver.core.exceptions.OperationTimedOutException: 
> [localhost/127.0.0.1:40644] Timed out waiting for server response
> [junit] at 
> com.datastax.driver.core.RequestHandler$SpeculativeExecution.onTimeout(RequestHandler.java:800)
> [junit] at 
> com.datastax.driver.core.Connection$ResponseHandler$1.run(Connection.java:1382)
> [junit] at 
> 

[jira] [Commented] (CASSANDRA-14110) ViewLongTest.testConflictResolution() failed

2017-12-12 Thread Jay Zhuang (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-14110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16288752#comment-16288752
 ] 

Jay Zhuang commented on CASSANDRA-14110:


The patch is updated.

> ViewLongTest.testConflictResolution() failed
> 
>
> Key: CASSANDRA-14110
> URL: https://issues.apache.org/jira/browse/CASSANDRA-14110
> Project: Cassandra
>  Issue Type: Bug
>  Components: Testing
>Reporter: Jay Zhuang
>Assignee: Jay Zhuang
>
> The test works fine on my mac, but failed in the 
> [CircleCI|https://circleci.com/gh/cooldoger/cassandra/157]:
> {noformat}
> $ ant long-test -Dtest.name=ViewLongTest
> ...
> [junit] Testcase: 
> testConflictResolution(org.apache.cassandra.cql3.ViewLongTest):   Caused an 
> ERROR
> [junit] [localhost/127.0.0.1:40644] Timed out waiting for server response
> [junit] com.datastax.driver.core.exceptions.OperationTimedOutException: 
> [localhost/127.0.0.1:40644] Timed out waiting for server response
> [junit] at 
> com.datastax.driver.core.exceptions.OperationTimedOutException.copy(OperationTimedOutException.java:44)
> [junit] at 
> com.datastax.driver.core.exceptions.OperationTimedOutException.copy(OperationTimedOutException.java:26)
> [junit] at 
> com.datastax.driver.core.DriverThrowables.propagateCause(DriverThrowables.java:37)
> [junit] at 
> com.datastax.driver.core.DefaultResultSetFuture.getUninterruptibly(DefaultResultSetFuture.java:245)
> [junit] at 
> com.datastax.driver.core.AbstractSession.execute(AbstractSession.java:68)
> [junit] at 
> com.datastax.driver.core.AbstractSession.execute(AbstractSession.java:51)
> [junit] at 
> org.apache.cassandra.cql3.CQLTester.executeNet(CQLTester.java:829)
> [junit] at 
> org.apache.cassandra.cql3.ViewLongTest.testConflictResolution(ViewLongTest.java:138)
> [junit] Caused by: 
> com.datastax.driver.core.exceptions.OperationTimedOutException: 
> [localhost/127.0.0.1:40644] Timed out waiting for server response
> [junit] at 
> com.datastax.driver.core.RequestHandler$SpeculativeExecution.onTimeout(RequestHandler.java:800)
> [junit] at 
> com.datastax.driver.core.Connection$ResponseHandler$1.run(Connection.java:1382)
> [junit] at 
> com.datastax.shaded.netty.util.HashedWheelTimer$HashedWheelTimeout.expire(HashedWheelTimer.java:663)
> [junit] at 
> com.datastax.shaded.netty.util.HashedWheelTimer$HashedWheelBucket.expireTimeouts(HashedWheelTimer.java:738)
> [junit] at 
> com.datastax.shaded.netty.util.HashedWheelTimer$Worker.run(HashedWheelTimer.java:466)
> [junit] at 
> com.datastax.shaded.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:138)
> [junit] at java.lang.Thread.run(Thread.java:745)
> [junit]
> [junit]
> [junit] Testcase: 
> testConflictResolution(org.apache.cassandra.cql3.ViewLongTest):   Caused an 
> ERROR
> [junit] [localhost/127.0.0.1:40644] Timed out waiting for server response
> [junit] com.datastax.driver.core.exceptions.OperationTimedOutException: 
> [localhost/127.0.0.1:40644] Timed out waiting for server response
> [junit] at 
> com.datastax.driver.core.exceptions.OperationTimedOutException.copy(OperationTimedOutException.java:44)
> [junit] at 
> com.datastax.driver.core.exceptions.OperationTimedOutException.copy(OperationTimedOutException.java:26)
> [junit] at 
> com.datastax.driver.core.DriverThrowables.propagateCause(DriverThrowables.java:37)
> [junit] at 
> com.datastax.driver.core.DefaultResultSetFuture.getUninterruptibly(DefaultResultSetFuture.java:245)
> [junit] at 
> com.datastax.driver.core.AbstractSession.execute(AbstractSession.java:68)
> [junit] at 
> com.datastax.driver.core.AbstractSession.execute(AbstractSession.java:51)
> [junit] at 
> org.apache.cassandra.cql3.CQLTester.executeNet(CQLTester.java:829)
> [junit] at 
> org.apache.cassandra.cql3.ViewLongTest.end(ViewLongTest.java:66)
> [junit] Caused by: 
> com.datastax.driver.core.exceptions.OperationTimedOutException: 
> [localhost/127.0.0.1:40644] Timed out waiting for server response
> [junit] at 
> com.datastax.driver.core.RequestHandler$SpeculativeExecution.onTimeout(RequestHandler.java:800)
> [junit] at 
> com.datastax.driver.core.Connection$ResponseHandler$1.run(Connection.java:1382)
> [junit] at 
> com.datastax.shaded.netty.util.HashedWheelTimer$HashedWheelTimeout.expire(HashedWheelTimer.java:663)
> [junit] at 
> com.datastax.shaded.netty.util.HashedWheelTimer$HashedWheelBucket.expireTimeouts(HashedWheelTimer.java:738)
> [junit] at 
> com.datastax.shaded.netty.util.HashedWheelTimer$Worker.run(HashedWheelTimer.java:466)
> [junit] 

[jira] [Commented] (CASSANDRA-14110) ViewLongTest.testConflictResolution() failed

2017-12-12 Thread Jay Zhuang (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-14110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16288359#comment-16288359
 ] 

Jay Zhuang commented on CASSANDRA-14110:


I'm able to reproduce the problem on a Linux machine. The patch adds try-catch 
for {{OperationTimedOutException}}, so the test could retry, please review:
| Branch | uTest |
| [14110|https://github.com/cooldoger/cassandra/tree/14110] | 
[!https://circleci.com/gh/cooldoger/cassandra/tree/14110.svg?style=svg!|https://circleci.com/gh/cooldoger/cassandra/tree/14110]
 |

Also, these trivial changes (CASSANDRA-14111, CASSANDRA-13077) could be useful 
for debugging such issue.



> ViewLongTest.testConflictResolution() failed
> 
>
> Key: CASSANDRA-14110
> URL: https://issues.apache.org/jira/browse/CASSANDRA-14110
> Project: Cassandra
>  Issue Type: Bug
>  Components: Testing
>Reporter: Jay Zhuang
>Assignee: Jay Zhuang
>
> The test works fine on my mac, but failed in the 
> [CircleCI|https://circleci.com/gh/cooldoger/cassandra/157]:
> {noformat}
> $ ant long-test -Dtest.name=ViewLongTest
> ...
> [junit] Testcase: 
> testConflictResolution(org.apache.cassandra.cql3.ViewLongTest):   Caused an 
> ERROR
> [junit] [localhost/127.0.0.1:40644] Timed out waiting for server response
> [junit] com.datastax.driver.core.exceptions.OperationTimedOutException: 
> [localhost/127.0.0.1:40644] Timed out waiting for server response
> [junit] at 
> com.datastax.driver.core.exceptions.OperationTimedOutException.copy(OperationTimedOutException.java:44)
> [junit] at 
> com.datastax.driver.core.exceptions.OperationTimedOutException.copy(OperationTimedOutException.java:26)
> [junit] at 
> com.datastax.driver.core.DriverThrowables.propagateCause(DriverThrowables.java:37)
> [junit] at 
> com.datastax.driver.core.DefaultResultSetFuture.getUninterruptibly(DefaultResultSetFuture.java:245)
> [junit] at 
> com.datastax.driver.core.AbstractSession.execute(AbstractSession.java:68)
> [junit] at 
> com.datastax.driver.core.AbstractSession.execute(AbstractSession.java:51)
> [junit] at 
> org.apache.cassandra.cql3.CQLTester.executeNet(CQLTester.java:829)
> [junit] at 
> org.apache.cassandra.cql3.ViewLongTest.testConflictResolution(ViewLongTest.java:138)
> [junit] Caused by: 
> com.datastax.driver.core.exceptions.OperationTimedOutException: 
> [localhost/127.0.0.1:40644] Timed out waiting for server response
> [junit] at 
> com.datastax.driver.core.RequestHandler$SpeculativeExecution.onTimeout(RequestHandler.java:800)
> [junit] at 
> com.datastax.driver.core.Connection$ResponseHandler$1.run(Connection.java:1382)
> [junit] at 
> com.datastax.shaded.netty.util.HashedWheelTimer$HashedWheelTimeout.expire(HashedWheelTimer.java:663)
> [junit] at 
> com.datastax.shaded.netty.util.HashedWheelTimer$HashedWheelBucket.expireTimeouts(HashedWheelTimer.java:738)
> [junit] at 
> com.datastax.shaded.netty.util.HashedWheelTimer$Worker.run(HashedWheelTimer.java:466)
> [junit] at 
> com.datastax.shaded.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:138)
> [junit] at java.lang.Thread.run(Thread.java:745)
> [junit]
> [junit]
> [junit] Testcase: 
> testConflictResolution(org.apache.cassandra.cql3.ViewLongTest):   Caused an 
> ERROR
> [junit] [localhost/127.0.0.1:40644] Timed out waiting for server response
> [junit] com.datastax.driver.core.exceptions.OperationTimedOutException: 
> [localhost/127.0.0.1:40644] Timed out waiting for server response
> [junit] at 
> com.datastax.driver.core.exceptions.OperationTimedOutException.copy(OperationTimedOutException.java:44)
> [junit] at 
> com.datastax.driver.core.exceptions.OperationTimedOutException.copy(OperationTimedOutException.java:26)
> [junit] at 
> com.datastax.driver.core.DriverThrowables.propagateCause(DriverThrowables.java:37)
> [junit] at 
> com.datastax.driver.core.DefaultResultSetFuture.getUninterruptibly(DefaultResultSetFuture.java:245)
> [junit] at 
> com.datastax.driver.core.AbstractSession.execute(AbstractSession.java:68)
> [junit] at 
> com.datastax.driver.core.AbstractSession.execute(AbstractSession.java:51)
> [junit] at 
> org.apache.cassandra.cql3.CQLTester.executeNet(CQLTester.java:829)
> [junit] at 
> org.apache.cassandra.cql3.ViewLongTest.end(ViewLongTest.java:66)
> [junit] Caused by: 
> com.datastax.driver.core.exceptions.OperationTimedOutException: 
> [localhost/127.0.0.1:40644] Timed out waiting for server response
> [junit] at 
> com.datastax.driver.core.RequestHandler$SpeculativeExecution.onTimeout(RequestHandler.java:800)
> [junit] at 
>