[
http://jira.amdatu.org/jira/browse/AMDATUCASSANDRA-51?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11155#comment-11155
]
Ivo Ladage - van Doorn commented on AMDATUCASSANDRA-51:
-------------------------------------------------------
As far as I can see, the implementation of UserAdminMock.getUser(String key,
String value) is indeed not according to spec. Accordign to the spec, this
method should return the user which has a property with key key and value
value. But the implementation looks at the user credentials, rather then its
properties. In the 'real' implementations, cassandra and fs, this method is
properly implemented. So you're right, this implementation is incorrect and I
will change it.
Regarding the key used in UserAdminCache.getUser(String key, String value)
(line 183); there is no way this can conflict; there is exactly 1 a and 1 b for
which
k=a|v=b result in the same string;
"k=a|v=b" = "k=c|v=d"
<=> "k=a|v=b" = "k=a+x|v=y+b" (where c=a+x and d=y+b)
<=> "|v=b" = "x|v=y+b"
<=> x="" and y=""
> Major performance decrease when adding/removing users
> -----------------------------------------------------
>
> Key: AMDATUCASSANDRA-51
> URL: http://jira.amdatu.org/jira/browse/AMDATUCASSANDRA-51
> Project: Amdatu Cassandra
> Issue Type: Bug
> Components: Storage implementations
> Affects Versions: 0.1.1
> Reporter: Ivo Ladage - van Doorn
> Assignee: Ivo Ladage - van Doorn
> Fix For: 0.2.0
>
>
> If you run the JMeter plans in this order, you will find that when you run
> the last plan there is a significant performance slowdown in Cassandra:
> - Amdatu Get Users - 0.1.0.jmx
> - Amdatu UserAdmin - 0.1.0.jmx for some time (i.e. 2 minutes)
> - Amdatu Get Users - 0.1.0.jmx
> Note that at this time there will only be a few users available in UserAdmin,
> still Cassandra queries on the CF Role take a very very long time. Using
> YourKit it seems that all rowkeys of previous users still exist as it is very
> busy with;
> com.google.common.base.Preconditions.checkState(boolean)
> com.google.common.collect.AbstractIterator.hasNext()
> invoked 532000 times from
> org.apache.cassandra.thrift.CassandraServer.get_range_slices(ColumnParent,
> SlicePredicate, KeyRange, ConsistencyLevel)
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
Amdatu-developers mailing list
[email protected]
http://lists.amdatu.org/mailman/listinfo/amdatu-developers