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

Unable to init Verb in jvm-dtest

    XMLWordPrintableJSON

Details

    Description

      Verb cannot be initialized in dtest. The test cases that has references to Verb get the following error

      java.lang.ExceptionInInitializerError
      	at org.apache.cassandra.net.Verb.<clinit>(Verb.java:87)
      	at org.apache.cassandra.distributed.test.DistributedReadWritePathTest.failingReadRepairTest(DistributedReadWritePathTest.java:134)
      Caused by: java.lang.NullPointerException
      	at org.apache.cassandra.config.DatabaseDescriptor.getConcurrentReaders(DatabaseDescriptor.java:1611)
      	at org.apache.cassandra.concurrent.Stage.<clinit>(Stage.java:48)
      

      It is caused by the DatabaseDescriptor being uninitialized and NPE was thrown. The dtest initializes the DatabaseDescriptor at instance-level with the isolated InstanceClassLoader. Since test code is not loaded by the InstanceClassLoader, it does not know the already initialized DatabaseDescriptor.

      Attachments

        Activity

          People

            benedict Benedict Elliott Smith
            yifanc Yifan Cai
            Benedict Elliott Smith
            Benedict Elliott Smith
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: