Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-17724

Remove commons-lang dependency during build runtime

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 4.1-beta1, 4.1
    • Build
    • 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.

      Attachments

        Activity

          People

            frankgh Francisco Guerrero
            frankgh Francisco Guerrero
            Francisco Guerrero
            Dinesh Joshi, Yifan Cai
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 40m
                40m