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

Sumanth Pasupuleti edited comment on CASSANDRA-15472 at 4/18/20, 3:26 PM:
--------------------------------------------------------------------------

With upgrading to 4.1.7, caused dtests failures with below exception

{code:java}
Exception: sstableloader command '/home/cassandra/cassandra/bin/sstableloader 
-d 127.0.0.1 /tmp/tmpzvbjphue/0/ks/cf' failed; exit status: 1'; stdout: ; 
stderr: Exception in thread "main" java.lang.NoClassDefFoundError: 
com/codahale/metrics/JmxReporter  at 
com.datastax.driver.core.Metrics.<init>(Metrics.java:146)  at 
com.datastax.driver.core.Cluster$Manager.init(Cluster.java:1501)  at 
com.datastax.driver.core.Cluster.init(Cluster.java:208)  at 
com.datastax.driver.core.Cluster.connectAsync(Cluster.java:376)  at 
com.datastax.driver.core.Cluster.connectAsync(Cluster.java:355)  at 
com.datastax.driver.core.Cluster.connect(Cluster.java:305)  at 
org.apache.cassandra.utils.NativeSSTableLoaderClient.init(NativeSSTableLoaderClient.java:77)
  at 
org.apache.cassandra.io.sstable.SSTableLoader.stream(SSTableLoader.java:160)  
at org.apache.cassandra.tools.BulkLoader.load(BulkLoader.java:81)  at 
org.apache.cassandra.tools.BulkLoader.main(BulkLoader.java:49) Caused by: 
java.lang.ClassNotFoundException: com.codahale.metrics.JmxReporter  at 
java.net.URLClassLoader.findClass(URLClassLoader.java:382)  at 
java.lang.ClassLoader.loadClass(ClassLoader.java:419)  at 
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)  at 
java.lang.ClassLoader.loadClass(ClassLoader.java:352)  ... 10 more
self = <snapshot_test.TestSnapshot object at 0x7fb21ea3d748>
{code}

Seems like JmxReporter class namespace has changed from 
com/codahale/metrics/JmxReporter to com/codahale/metrics/jmx/JmxReporter.
(https://github.com/dropwizard/metrics/commit/373d5b1c6c9d14b5c2ee590f2b3cefaac877549f#diff-9c6b81362beeec1c8a6e3296ea96f6c6)



was (Author: sumanth.pasupuleti):
With upgrading to 4.1.7, caused dtests failures with below exception

{code:java}
Exception: sstableloader command '/home/cassandra/cassandra/bin/sstableloader 
-d 127.0.0.1 /tmp/tmpzvbjphue/0/ks/cf' failed; exit status: 1'; stdout: ; 
stderr: Exception in thread "main" java.lang.NoClassDefFoundError: 
com/codahale/metrics/JmxReporter  at 
com.datastax.driver.core.Metrics.<init>(Metrics.java:146)  at 
com.datastax.driver.core.Cluster$Manager.init(Cluster.java:1501)  at 
com.datastax.driver.core.Cluster.init(Cluster.java:208)  at 
com.datastax.driver.core.Cluster.connectAsync(Cluster.java:376)  at 
com.datastax.driver.core.Cluster.connectAsync(Cluster.java:355)  at 
com.datastax.driver.core.Cluster.connect(Cluster.java:305)  at 
org.apache.cassandra.utils.NativeSSTableLoaderClient.init(NativeSSTableLoaderClient.java:77)
  at 
org.apache.cassandra.io.sstable.SSTableLoader.stream(SSTableLoader.java:160)  
at org.apache.cassandra.tools.BulkLoader.load(BulkLoader.java:81)  at 
org.apache.cassandra.tools.BulkLoader.main(BulkLoader.java:49) Caused by: 
java.lang.ClassNotFoundException: com.codahale.metrics.JmxReporter  at 
java.net.URLClassLoader.findClass(URLClassLoader.java:382)  at 
java.lang.ClassLoader.loadClass(ClassLoader.java:419)  at 
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)  at 
java.lang.ClassLoader.loadClass(ClassLoader.java:352)  ... 10 more
self = <snapshot_test.TestSnapshot object at 0x7fb21ea3d748>
{code}

Seems like JmxReporter class namespace has changed from 
com/codahale/metrics/JmxReporter to com/codahale/metrics/jmx/JmxReporter.


> Read failure due to exception from metrics-core dependency
> ----------------------------------------------------------
>
>                 Key: CASSANDRA-15472
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-15472
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Dependencies
>            Reporter: Sumanth Pasupuleti
>            Assignee: Sumanth Pasupuleti
>            Priority: Normal
>              Labels: lhf
>             Fix For: 4.0, 3.0.x, 3.11.x
>
>
> Stacktrace
> {code:java}
> Uncaught exception on thread Thread[SharedPool-Worker-27,5,main]: {}
> java.util.NoSuchElementException: null
>       at 
> java.util.concurrent.ConcurrentSkipListMap.firstKey(ConcurrentSkipListMap.java:2053)
>  ~[na:1.8.0_222]
>       at 
> com.yammer.metrics.stats.ExponentiallyDecayingSample.update(ExponentiallyDecayingSample.java:102)
>  ~[metrics-core-2.2.0.jar:na]
>       at 
> com.yammer.metrics.stats.ExponentiallyDecayingSample.update(ExponentiallyDecayingSample.java:81)
>  ~[metrics-core-2.2.0.jar:na]
>       at com.yammer.metrics.core.Histogram.update(Histogram.java:110) 
> ~[metrics-core-2.2.0.jar:na]
>       at com.yammer.metrics.core.Timer.update(Timer.java:198) 
> ~[metrics-core-2.2.0.jar:na]
>       at com.yammer.metrics.core.Timer.update(Timer.java:76) 
> ~[metrics-core-2.2.0.jar:na]
>       at 
> org.apache.cassandra.metrics.LatencyMetrics.addNano(LatencyMetrics.java:108) 
> ~[nf-cassandra-2.1.19.10.jar:2.1.19.10]
>       at 
> org.apache.cassandra.metrics.LatencyMetrics.addNano(LatencyMetrics.java:114) 
> ~[nf-cassandra-2.1.19.10.jar:2.1.19.10]
>       at 
> org.apache.cassandra.db.ColumnFamilyStore.getColumnFamily(ColumnFamilyStore.java:1897)
>  ~[nf-cassandra-2.1.19.10.jar:2.1.19.10]
>       at org.apache.cassandra.db.Keyspace.getRow(Keyspace.java:353) 
> ~[nf-cassandra-2.1.19.10.jar:2.1.19.10]
>       at 
> org.apache.cassandra.db.SliceFromReadCommand.getRow(SliceFromReadCommand.java:85)
>  ~[nf-cassandra-2.1.19.10.jar:2.1.19.10]
>       at 
> org.apache.cassandra.db.ReadVerbHandler.doVerb(ReadVerbHandler.java:47) 
> ~[nf-cassandra-2.1.19.10.jar:2.1.19.10]
>       at 
> org.apache.cassandra.net.MessageDeliveryTask.run(MessageDeliveryTask.java:64) 
> ~[nf-cassandra-2.1.19.10.jar:2.1.19.10]
>       at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
> ~[na:1.8.0_222]
>       at 
> org.apache.cassandra.concurrent.AbstractTracingAwareExecutorService$FutureTask.run(AbstractTracingAwareExecutorService.java:164)
>  ~[nf-cassandra-2.1.19.10.jar:2.1.19.10]
>       at org.apache.cassandra.concurrent.SEPWorker.run(SEPWorker.java:105) 
> [nf-cassandra-2.1.19.10.jar:2.1.19.10]
>       at java.lang.Thread.run(Thread.java:748) [na:1.8.0_222]
> {code}
> This [issue|https://github.com/dropwizard/metrics/issues/1278] has been 
> [fixed|https://github.com/dropwizard/metrics/pull/1436] in 
> [v4.0.6|https://github.com/dropwizard/metrics/releases/tag/v4.0.6].
> This is observed on a 2.1.19 cluster, but this would impact pretty much any 
> version of C* since we depend on lower versions of metrics-core that do not 
> have the fix.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to