cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brandon Williams (JIRA)" <>
Subject [jira] [Commented] (CASSANDRA-4227) StorageProxy throws NPEs for when there's no hostids for a target
Date Wed, 09 May 2012 14:29:49 GMT


Brandon Williams commented on CASSANDRA-4227:

We should just drop the hint in this case, see CASSANDRA-4120
> StorageProxy throws NPEs for when there's no hostids for a target
> -----------------------------------------------------------------
>                 Key: CASSANDRA-4227
>                 URL:
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>            Reporter: Dave Brosius
>            Priority: Trivial
> On trunk...
> if there is no host id due to an old node, an info log is generated, but the code continues
to use the null host id causing NPEs in decompose... Should this bypass this code, or perhaps
can the plain ip address be used in this case? don't know.
> as follows...
>                     UUID hostId = StorageService.instance.getTokenMetadata().getHostId(target);
>                     if ((hostId == null) && (Gossiper.instance.getVersion(target)
< MessagingService.VERSION_12))
>               "Unable to store hint for host with missing ID, {}
(old node?)", target.toString());
>                     RowMutation hintedMutation = RowMutation.hintFor(mutation, ByteBuffer.wrap(UUIDGen.decompose(hostId)));
>                     hintedMutation.apply();

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message