cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sam Tunnicliffe (JIRA)" <>
Subject [jira] [Commented] (CASSANDRA-13363) java.lang.ArrayIndexOutOfBoundsException: null
Date Fri, 18 Aug 2017 10:04:00 GMT


Sam Tunnicliffe commented on CASSANDRA-13363:

{quote} Does it take a lot of time to do "the lookup to determine which index to use "?

1=>send the command to other replica, must after the local replica figure out which index
to use .
2=>send to all replica, all replica figure it out itself.

which looks better?

Through profiling, we found that a non-trivial amount of time was spent in {{SecondaryIndexManager::getBestIndexFor}}.
Part of the problem was that once found, there was no index field on the command to set, so
originally this lookup was being done 3 or 4 times per-query, on every replica. 
Once that was fixed, it made sense to just do the index lookup once when the command is constructed,
so it could be included in the serialization & so save the replicas from having to do
the lookup. So the lookup goes from being performed (4 x num_replicas) times to once per query,
which seems like a good idea generally. 

> java.lang.ArrayIndexOutOfBoundsException: null
> ----------------------------------------------
>                 Key: CASSANDRA-13363
>                 URL:
>             Project: Cassandra
>          Issue Type: Bug
>         Environment: CentOS 6, Cassandra 3.10
>            Reporter: Artem Rokhin
>            Assignee: zhaoyan
>            Priority: Critical
>             Fix For: 3.0.x, 3.11.x, 4.x
> Constantly see this error in the log without any additional information or a stack trace.
> {code}
> Exception in thread Thread[MessagingService-Incoming-/,5,main]
> {code}
> {code}
> java.lang.ArrayIndexOutOfBoundsException: null
> {code}
> Logger: org.apache.cassandra.service.CassandraDaemon
> Thrdead: MessagingService-Incoming-/
> Method: uncaughtException
> File:
> Line: 229

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message