cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "gabriele renzi (JIRA)" <j...@apache.org>
Subject [jira] Created: (CASSANDRA-631) possible NPE in StorageProxy?
Date Sat, 12 Dec 2009 12:28:18 GMT
possible NPE in StorageProxy?
-----------------------------

                 Key: CASSANDRA-631
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-631
             Project: Cassandra
          Issue Type: Bug
    Affects Versions: 0.5
         Environment: all
            Reporter: gabriele renzi


insert() in StorageProxy contains a logging statement that refers to a possibly un-initialized
variable
{{{
logger.debug("insert writing key " + rm.key() + " to " + unhintedMessage.getMessageId() +
"@" + hintedTarget + " for " + target);
}}}

this could happen if getHintedEndpointMap(rm.key(), naturalEndpoints) returns only elements
for which target.equals(hintedTarget) returns false, which seems possible to me. 

Looking at the code I get the feeling the reference should probably be to 'hintedMessage',
instead of "unhintedMessage", if not so an 
assert statement could be appropriate

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message