[
https://issues.apache.org/jira/browse/CASSANDRA-16621?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17383029#comment-17383029
]
Berenguer Blasi commented on CASSANDRA-16621:
---------------------------------------------
How weird. I compared your & my code and they are identical. Why would you get
such errors and I wouldn't? Everything seems to start with this error which
makes little sense to me atm:
{noformat}
[junit-timeout] Testcase:
testRangeDeletionWithoutFlush[0](org.apache.cassandra.cql3.ViewComplexDeletionsTest):
Caused an ERROR
[junit-timeout] An unexpected protocol error occurred on host
localhost/127.0.0.1:34141. This is a bug in this library, please report: Must
not send frame with WARNING flag for native protocol version < 4
[junit-timeout] com.datastax.driver.core.exceptions.ProtocolError: An
unexpected protocol error occurred on host localhost/127.0.0.1:34141. This is a
bug in this library, please report: Must not send frame with WARNING flag for
native protocol version < 4
[junit-timeout] at
com.datastax.driver.core.exceptions.ProtocolError.copy(ProtocolError.java:66)
[junit-timeout] at
com.datastax.driver.core.exceptions.ProtocolError.copy(ProtocolError.java:27)
[junit-timeout] at
com.datastax.driver.core.DriverThrowables.propagateCause(DriverThrowables.java:35)
[junit-timeout] at
com.datastax.driver.core.DefaultResultSetFuture.getUninterruptibly(DefaultResultSetFuture.java:293)
[junit-timeout] at
com.datastax.driver.core.AbstractSession.execute(AbstractSession.java:58)
[junit-timeout] at
com.datastax.driver.core.AbstractSession.execute(AbstractSession.java:45)
[junit-timeout] at
org.apache.cassandra.cql3.CQLTester.executeNet(CQLTester.java:972)
[junit-timeout] at
org.apache.cassandra.cql3.ViewComplexTest.createView(ViewComplexTest.java:109)
[junit-timeout] at
org.apache.cassandra.cql3.ViewComplexDeletionsTest.testRangeDeletion(ViewComplexDeletionsTest.java:247)
[junit-timeout] at
org.apache.cassandra.cql3.ViewComplexDeletionsTest.testRangeDeletionWithoutFlush(ViewComplexDeletionsTest.java:236)
[junit-timeout] Caused by: com.datastax.driver.core.exceptions.ProtocolError:
An unexpected protocol error occurred on host localhost/127.0.0.1:34141. This
is a bug in this library, please report: Must not send frame with WARNING flag
for native protocol version < 4
[junit-timeout] at
com.datastax.driver.core.Responses$Error.asException(Responses.java:154)
[junit-timeout] at
com.datastax.driver.core.DefaultResultSetFuture.onSet(DefaultResultSetFuture.java:215)
[junit-timeout] at
com.datastax.driver.core.RequestHandler.setFinalResult(RequestHandler.java:235)
[junit-timeout] at
com.datastax.driver.core.RequestHandler.access$2600(RequestHandler.java:61)
[junit-timeout] at
com.datastax.driver.core.RequestHandler$SpeculativeExecution.setFinalResult(RequestHandler.java:1011)
[junit-timeout] at
com.datastax.driver.core.RequestHandler$SpeculativeExecution.onSet(RequestHandler.java:814)
[junit-timeout] at
com.datastax.driver.core.Connection$Dispatcher.channelRead0(Connection.java:1290)
[junit-timeout] at
com.datastax.driver.core.Connection$Dispatcher.channelRead0(Connection.java:1208)
[junit-timeout] at
com.datastax.shaded.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)
[junit-timeout] at
com.datastax.shaded.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:356)
[junit-timeout] at
com.datastax.shaded.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:342)
[junit-timeout] at
com.datastax.shaded.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:335)
[junit-timeout] at
com.datastax.shaded.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:286)
[junit-timeout] at
com.datastax.shaded.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:356)
[junit-timeout] at
com.datastax.shaded.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:342)
[junit-timeout] at
com.datastax.shaded.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:335)
[junit-timeout] at
com.datastax.shaded.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:102)
[junit-timeout] at
com.datastax.shaded.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:356)
[junit-timeout] at
com.datastax.shaded.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:342)
[junit-timeout] at
com.datastax.shaded.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:335)
[junit-timeout] at
com.datastax.shaded.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:312)
[junit-timeout] at
com.datastax.shaded.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:286)
[junit-timeout] at
com.datastax.shaded.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:356)
[junit-timeout] at
com.datastax.shaded.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:342)
[junit-timeout] at
com.datastax.shaded.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:335)
[junit-timeout] at
com.datastax.shaded.netty.channel.ChannelInboundHandlerAdapter.channelRead(ChannelInboundHandlerAdapter.java:86)
[junit-timeout] at
com.datastax.driver.core.InboundTrafficMeter.channelRead(InboundTrafficMeter.java:38)
[junit-timeout] at
com.datastax.shaded.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:356)
[junit-timeout] at
com.datastax.shaded.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:342)
[junit-timeout] at
com.datastax.shaded.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:335)
[junit-timeout] at
com.datastax.shaded.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1304)
[junit-timeout] at
com.datastax.shaded.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:356)
[junit-timeout] at
com.datastax.shaded.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:342)
[junit-timeout] at
com.datastax.shaded.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:921)
[junit-timeout] at
com.datastax.shaded.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:135)
[junit-timeout] at
com.datastax.shaded.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:646)
[junit-timeout] at
com.datastax.shaded.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:581)
[junit-timeout] at
com.datastax.shaded.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:498)
[junit-timeout] at
com.datastax.shaded.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:460)
[junit-timeout] at
com.datastax.shaded.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:131)
[junit-timeout] at
com.datastax.shaded.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
[junit-timeout] at java.lang.Thread.run(Thread.java:748)
{noformat}
[~adelapena] does it ring a bell by any chance?
> Replace spinAsserts code with Awaitility code
> ---------------------------------------------
>
> Key: CASSANDRA-16621
> URL: https://issues.apache.org/jira/browse/CASSANDRA-16621
> Project: Cassandra
> Issue Type: Bug
> Components: Test/unit
> Reporter: Berenguer Blasi
> Assignee: Jogesh Anand
> Priority: Normal
> Labels: low-hanging-fruit
> Fix For: 4.0.x
>
>
> Currently spinAsserts does a similar thing to Awaitility which is being used
> more and more. We have now 2 ways of doing the same thing so it would be good
> to consolidate
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]