cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sandeep Tata (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CASSANDRA-6) HashingStrategy does not default to RANDOM if the conf file is missing this entry
Date Mon, 16 Mar 2009 18:25:50 GMT

     [ https://issues.apache.org/jira/browse/CASSANDRA-6?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sandeep Tata updated CASSANDRA-6:
---------------------------------

    Attachment: default_values_patch.txt

Here's a very simple patch that fixes this issue.

Added XMLUtils.getNodeValue with a default value arg, and used this in DatabaseDescriptor.

> HashingStrategy does not default to RANDOM if the conf file is missing this entry
> ---------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-6
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-6
>             Project: Cassandra
>          Issue Type: Bug
>         Environment: all
>            Reporter: Sandeep Tata
>            Priority: Minor
>         Attachments: default_values_patch.txt
>
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> When the conf file does not have a line for hashingstrategy, the value does not default
to RANDOM, instead it goes to null because of:
> DatabaseDescriptor.java:147
> hashingStrategy_ = xmlUtils.getNodeValue("/Storage/HashingStrategy");

-- 
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