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

Aleksey Yeschenko commented on CASSANDRA-12271:
-----------------------------------------------

Are you guys sure that you need to wrap the already defensive copy in a 
{{Collections.unmodifiableList()}} wrapper? At this point the callers should be 
allowed to do anything with the returned result if they wish to. But, feel free 
to ignore me. Whenever we actually need to do that, we can change the method.

> NonSystemKeyspaces jmx attribute needs to return jre list
> ---------------------------------------------------------
>
>                 Key: CASSANDRA-12271
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-12271
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Chris Lohfink
>            Assignee: Edward Ribeiro
>            Priority: Major
>              Labels: lhf
>             Fix For: 4.0, 3.11.3
>
>         Attachments: CASSANDRA-12271.patch, screenshot-1.png, screenshot-2.png
>
>
> If you dont have right guava in classpath you cant query the 
> NonSystemKeyspaces attribute. i.e. jconsole. can reproduce using Swiss java 
> knife:
> {code}
> # java -jar sjk.jar mx -s localhost:7199 -mg -b 
> "org.apache.cassandra.db:type=StorageService" -f NonSystemKeyspaces
> org.apache.cassandra.db:type=StorageService
> java.rmi.UnmarshalException: error unmarshalling return; nested exception is: 
>       java.lang.ClassNotFoundException: 
> com.google.common.collect.ImmutableList$SerializedForm (no security manager: 
> RMI class loader disabled)
> {code}
> If return a ArrayList or LinkedList or anything in JRE this will be fixed



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to