Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
-
Availability - Process Crash
-
Critical
-
Low Hanging Fruit
-
User Report
-
All
-
None
-
Description
commons-lang is not a runtime dependency and a java.lang.NoClassDefFoundError: org/apache/commons/lang/StringUtils exception is encountered during startup when hitting the codepath in StartupClusterConnectivityChecker.
This error is encountered very infrequently, but it has the potential of preventing the CassandraDaemon from starting up.
Currently, the Cassandra project allows developers to import the org.apache.commons.lang.* namespace. The Cassandra build process should fail when org.apache.commons.lang.* namespace imports are added to the code. This will prevent anyone from adding a build runtime library that is not available during runtime.