You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Chris Burroughs (JIRA)" <ji...@apache.org> on 2013/08/30 17:09:52 UTC

[jira] [Commented] (CASSANDRA-5958) "Unable to find property" errors from snakeyaml are confusing

    [ https://issues.apache.org/jira/browse/CASSANDRA-5958?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13754771#comment-13754771 ] 

Chris Burroughs commented on CASSANDRA-5958:
--------------------------------------------

Which version is this with?  We upgraded snakyaml in 2.0.x and it might have improved error messages.
                
> "Unable to find property" errors from snakeyaml are confusing
> -------------------------------------------------------------
>
>                 Key: CASSANDRA-5958
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-5958
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: J.B. Langston
>            Priority: Minor
>
> When an unexpected property is present in cassandra.yaml (e.g. after upgrading), snakeyaml outputs the following message:
> {code}Unable to find property 'some_property' on class: org.apache.cassandra.config.Config{code}
> The error message is kind of counterintuitive because at first glance it seems to suggest the property is missing from the yaml file, when in fact the error is caused by the *presence* of an unrecognized property.  I know if you read it carefully it says it can't find the property on the class, but this has confused more than one user.
> I think we should catch this exception and wrap it in another exception that says something like this:
> {code}Please remove 'some_property' from your cassandra.yaml. It is not recognized by this version of Cassandra.{code}
> Also, it might make sense to make this a warning instead of a fatal error, and just ignore the unwanted property.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira