You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Yifan Cai (Jira)" <ji...@apache.org> on 2019/10/29 15:43:00 UTC

[jira] [Commented] (CASSANDRA-15383) Unable to init Verb in jvm-dtest

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

Yifan Cai commented on CASSANDRA-15383:
---------------------------------------

Thanks. Since other dtest cases could also reference Verb, it probably make sense to move the initialization hook to the test base class.

> Unable to init Verb in jvm-dtest
> --------------------------------
>
>                 Key: CASSANDRA-15383
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-15383
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Test/dtest
>            Reporter: Yifan Cai
>            Assignee: Benedict Elliott Smith
>            Priority: Normal
>             Fix For: 4.0-alpha
>
>
> Verb cannot be initialized in dtest. The test cases that has references to Verb get the following error
> {code:java}
> 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)
> {code}
> 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.



--
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