cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Shuler (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CASSANDRA-8209) Cassandra crashes when running on JDK8 update 40
Date Mon, 03 Nov 2014 19:49:35 GMT

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

Michael Shuler edited comment on CASSANDRA-8209 at 11/3/14 7:49 PM:
--------------------------------------------------------------------

I checked out cassandra-2.1 + jamm-0.2.8 with Oracle JDK 1.7.0_72 for regression - no problem.
I tested cassandra-2.1 + jamm-0.2.8 with OpenJDK 1.8.0_40-internal (debian testing package)
and stress read still fails for me with:
{noformat}
Warming up READ with 50000 iterations...
INFO  19:31:44 Using data-center name 'datacenter1' for DCAwareRoundRobinPolicy (if this is
incorrect, please provide the correct datacenter name with DCAwareRoundRobinPolicy constructor)
Connected to cluster: Test Cluster
Datatacenter: datacenter1; Host: localhost/127.0.0.1; Rack: rack1
INFO  19:31:44 New Cassandra host localhost/127.0.0.1:9042 added
com.datastax.driver.core.exceptions.DriverInternalError: An unexpected error occurred server
side on localhost/127.0.0.1:9042: java.lang.SecurityException: Cannot make java.lang.Class.classLoader
accessible
        at com.datastax.driver.core.exceptions.DriverInternalError.copy(DriverInternalError.java:42)
        at com.datastax.driver.core.DefaultResultSetFuture.extractCauseFromExecutionException(DefaultResultSetFuture.java:256)
        at com.datastax.driver.core.AbstractSession.prepare(AbstractSession.java:79)
        at org.apache.cassandra.stress.util.JavaDriverClient.prepare(JavaDriverClient.java:77)
        at org.apache.cassandra.stress.operations.predefined.CqlOperation$JavaDriverWrapper.createPreparedStatement(CqlOperation.java:337)
        at org.apache.cassandra.stress.operations.predefined.CqlOperation.run(CqlOperation.java:75)
        at org.apache.cassandra.stress.operations.predefined.CqlOperation.run(CqlOperation.java:107)
        at org.apache.cassandra.stress.operations.predefined.CqlOperation.run(CqlOperation.java:281)
        at org.apache.cassandra.stress.StressAction$Consumer.run(StressAction.java:320)
Caused by: com.datastax.driver.core.exceptions.DriverInternalError: An unexpected error occurred
server side on localhost/127.0.0.1:9042: java.lang.SecurityException: Cannot make java.lang.Class.classLoader
accessible
        at com.datastax.driver.core.Responses$Error.asException(Responses.java:86)
        at com.datastax.driver.core.SessionManager$1.apply(SessionManager.java:156)
        at com.datastax.driver.core.SessionManager$1.apply(SessionManager.java:131)
        at com.google.common.util.concurrent.Futures$1.apply(Futures.java:713)
        at com.google.common.util.concurrent.Futures$ChainingListenableFuture.run(Futures.java:861)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
<...>
{noformat}

Same error on Oracle's Early Access JDK release 1.8.0_40-ea-b12


was (Author: mshuler):
I checked out cassandra-2.1 + jamm-0.2.8 with Oracle JDK 1.7.0_72 for regression - no problem.
I tested cassandra-2.1 + jamm-0.2.8 with OpenJDK 1.8.0_40-internal (debian testing package)
and stress read still fails for me with:
{noformat}
Warming up READ with 50000 iterations...
INFO  19:31:44 Using data-center name 'datacenter1' for DCAwareRoundRobinPolicy (if this is
incorrect, please provide the correct datacenter name with DCAwareRoundRobinPolicy constructor)
Connected to cluster: Test Cluster
Datatacenter: datacenter1; Host: localhost/127.0.0.1; Rack: rack1
INFO  19:31:44 New Cassandra host localhost/127.0.0.1:9042 added
com.datastax.driver.core.exceptions.DriverInternalError: An unexpected error occurred server
side on localhost/127.0.0.1:9042: java.lang.SecurityException: Cannot make java.lang.Class.classLoader
accessible
        at com.datastax.driver.core.exceptions.DriverInternalError.copy(DriverInternalError.java:42)
        at com.datastax.driver.core.DefaultResultSetFuture.extractCauseFromExecutionException(DefaultResultSetFuture.java:256)
        at com.datastax.driver.core.AbstractSession.prepare(AbstractSession.java:79)
        at org.apache.cassandra.stress.util.JavaDriverClient.prepare(JavaDriverClient.java:77)
        at org.apache.cassandra.stress.operations.predefined.CqlOperation$JavaDriverWrapper.createPreparedStatement(CqlOperation.java:337)
        at org.apache.cassandra.stress.operations.predefined.CqlOperation.run(CqlOperation.java:75)
        at org.apache.cassandra.stress.operations.predefined.CqlOperation.run(CqlOperation.java:107)
        at org.apache.cassandra.stress.operations.predefined.CqlOperation.run(CqlOperation.java:281)
        at org.apache.cassandra.stress.StressAction$Consumer.run(StressAction.java:320)
Caused by: com.datastax.driver.core.exceptions.DriverInternalError: An unexpected error occurred
server side on localhost/127.0.0.1:9042: java.lang.SecurityException: Cannot make java.lang.Class.classLoader
accessible
        at com.datastax.driver.core.Responses$Error.asException(Responses.java:86)
        at com.datastax.driver.core.SessionManager$1.apply(SessionManager.java:156)
        at com.datastax.driver.core.SessionManager$1.apply(SessionManager.java:131)
        at com.google.common.util.concurrent.Futures$1.apply(Futures.java:713)
        at com.google.common.util.concurrent.Futures$ChainingListenableFuture.run(Futures.java:861)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
<...>
{noformat}

> Cassandra crashes when running on JDK8 update 40
> ------------------------------------------------
>
>                 Key: CASSANDRA-8209
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-8209
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>            Reporter: Jaroslav Kamenik
>            Assignee: T Jake Luciani
>            Priority: Critical
>             Fix For: 2.1.2
>
>         Attachments: 8209.txt, 8209_2.1.txt, jamm-0.2.8.jar
>
>
> It seems that problem is change made in update 40 - 
> https://bugs.openjdk.java.net/browse/JDK-6642881
> result is:
> java.lang.SecurityException: Cannot make java.lang.Class.classLoader accessible
>         at java.lang.reflect.AccessibleObject.setAccessible0(AccessibleObject.java:147)
~[na:1.8.0_40-ea]
>         at java.lang.reflect.AccessibleObject.setAccessible(AccessibleObject.java:129)
~[na:1.8.0_40-ea]
>         at org.github.jamm.MemoryMeter.addFieldChildren(MemoryMeter.java:204) ~[jamm-0.2.6.jar:na]
>         at org.github.jamm.MemoryMeter.measureDeep(MemoryMeter.java:158) ~[jamm-0.2.6.jar:na]
>         at org.apache.cassandra.cql3.statements.SelectStatement.measureForPreparedCache(SelectStatement.java:166)
~[apache-cassandra-2.1.1.jar:2.1.1]
>         at org.apache.cassandra.cql3.QueryProcessor.measure(QueryProcessor.java:546)
~[apache-cassandra-2.1.1.jar:2.1.1]
>         at org.apache.cassandra.cql3.QueryProcessor.storePreparedStatement(QueryProcessor.java:441)
~[apache-cassandra-2.1.1.jar:2.1.1]
>         at org.apache.cassandra.cql3.QueryProcessor.prepare(QueryProcessor.java:404)
~[apache-cassandra-2.1.1.jar:2.1.1]
>         at org.apache.cassandra.cql3.QueryProcessor.prepare(QueryProcessor.java:388)
~[apache-cassandra-2.1.1.jar:2.1.1]
>         at org.apache.cassandra.transport.messages.PrepareMessage.execute(PrepareMessage.java:77)
~[apache-cassandra-2.1.1.jar:2.1.1]
>         at org.apache.cassandra.transport.Message$Dispatcher.channelRead0(Message.java:439)
[apache-cassandra-2.1.1.jar:2.1.1]
>         at org.apache.cassandra.transport.Message$Dispatcher.channelRead0(Message.java:335)
[apache-cassandra-2.1.1.jar:2.1.1]
>         at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)
[netty-all-4.0.23.Final.jar:4.0.23.Final]
>         at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)
[netty-all-4.0.23.Final.jar:4.0.23.Final]
>         at io.netty.channel.AbstractChannelHandlerContext.access$700(AbstractChannelHandlerContext.java:32)
[netty-all-4.0.23.Final.jar:4.0.23.Final]
>         at io.netty.channel.AbstractChannelHandlerContext$8.run(AbstractChannelHandlerContext.java:324)
[netty-all-4.0.23.Final.jar:4.0.23.Final]
>         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_40-ea]
>         at org.apache.cassandra.concurrent.AbstractTracingAwareExecutorService$FutureTask.run(AbstractTracingAwareExecutorService.java:164)
[apache-cassandra-2.1.1.jar:2.1.1]
>         at org.apache.cassandra.concurrent.SEPWorker.run(SEPWorker.java:105) [apache-cassandra-2.1.1.jar:2.1.1]
>         at java.lang.Thread.run(Thread.java:745) [na:1.8.0_40-ea]



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message