You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "David Capwell (Jira)" <ji...@apache.org> on 2020/07/07 23:05:00 UTC
[jira] [Updated] (CASSANDRA-15929) Startup fails with
NoClassDefFoundError after CASSANDRA-15884
[ https://issues.apache.org/jira/browse/CASSANDRA-15929?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
David Capwell updated CASSANDRA-15929:
--------------------------------------
Bug Category: Parent values: Availability(12983)Level 1 values: Process Crash(12992)
Complexity: Low Hanging Fruit
Discovered By: Adhoc Test
Fix Version/s: 4.0-alpha
Severity: Normal
Status: Open (was: Triage Needed)
> Startup fails with NoClassDefFoundError after CASSANDRA-15884
> -------------------------------------------------------------
>
> Key: CASSANDRA-15929
> URL: https://issues.apache.org/jira/browse/CASSANDRA-15929
> Project: Cassandra
> Issue Type: Bug
> Components: Local/Startup and Shutdown
> Reporter: David Capwell
> Assignee: David Capwell
> Priority: Normal
> Fix For: 4.0-alpha
>
>
> CASSANDRA-15884 added logic to detect if the native lib of lz4 was properly loaded and to log a warning if this was not the case, it seems that the catch for this didn’t handle the class loading issue that also happens in this case.
> ERROR [main] 2020-07-07 22:49:32,560 CassandraDaemon.java:800 - Exception encountered during startup
> java.lang.NoClassDefFoundError: Could not initialize class net.jpountz.lz4.LZ4JNI
> at net.jpountz.lz4.LZ4JNICompressor.compress(LZ4JNICompressor.java:36)
> at net.jpountz.lz4.LZ4Factory.<init>(LZ4Factory.java:207)
> at net.jpountz.lz4.LZ4Factory.instance(LZ4Factory.java:51)
> at net.jpountz.lz4.LZ4Factory.nativeInstance(LZ4Factory.java:91)
> at org.apache.cassandra.service.StartupChecks.lambda$static$0(StartupChecks.java:149)
> at org.apache.cassandra.service.StartupChecks.verify(StartupChecks.java:127)
> at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:211)
> at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:661)
> at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:778)
> After patching, the following is the behavior
> WARN [main] 2020-07-07 22:50:45,018 StartupChecks.java:153 - lz4-java was unable to load native libraries; this will lower the performance of lz4 (network/sstables/etc.): Could not initialize class net.jpountz.lz4.LZ4JNI
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org