cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Brown (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-7716) cassandra-stress: provide better error messages
Date Tue, 16 Sep 2014 22:45:35 GMT

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

Jason Brown commented on CASSANDRA-7716:
----------------------------------------

one additional thing to add might be if you have a misformatting (or just outright incorrect
value) in the columnspec section, current stress immediately shut down, with no error. It
might be nice to indicate to the user that something is wrong with their yaml, extra credit
if we can tell them what it is. 

> cassandra-stress: provide better error messages
> -----------------------------------------------
>
>                 Key: CASSANDRA-7716
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-7716
>             Project: Cassandra
>          Issue Type: Improvement
>            Reporter: Robert Stupp
>            Assignee: T Jake Luciani
>            Priority: Trivial
>             Fix For: 2.1.1
>
>         Attachments: 7166v2.txt, 7716.txt
>
>
> Just tried new stress tool.
> It would be great if the stress tool gives better error messages by telling the user
what option or config parameter/value caused an error.
> YAML parse errors are meaningful (gives code snippets etc).
> Examples are:
> {noformat}
> WARN  16:59:39 Setting caching options with deprecated syntax.
> Exception in thread "main" java.lang.NullPointerException
> 	at java.util.regex.Matcher.getTextLength(Matcher.java:1234)
> 	at java.util.regex.Matcher.reset(Matcher.java:308)
> 	at java.util.regex.Matcher.<init>(Matcher.java:228)
> 	at java.util.regex.Pattern.matcher(Pattern.java:1088)
> 	at org.apache.cassandra.stress.settings.OptionDistribution.get(OptionDistribution.java:67)
> 	at org.apache.cassandra.stress.StressProfile.init(StressProfile.java:151)
> 	at org.apache.cassandra.stress.StressProfile.load(StressProfile.java:482)
> 	at org.apache.cassandra.stress.settings.SettingsCommandUser.<init>(SettingsCommandUser.java:53)
> 	at org.apache.cassandra.stress.settings.SettingsCommandUser.build(SettingsCommandUser.java:114)
> 	at org.apache.cassandra.stress.settings.SettingsCommand.get(SettingsCommand.java:134)
> 	at org.apache.cassandra.stress.settings.StressSettings.get(StressSettings.java:218)
> 	at org.apache.cassandra.stress.settings.StressSettings.parse(StressSettings.java:206)
> 	at org.apache.cassandra.stress.Stress.main(Stress.java:58)
> {noformat}
> When table-definition is wrong:
> {noformat}
> Exception in thread "main" java.lang.RuntimeException: org.apache.cassandra.exceptions.SyntaxException:
line 6:14 mismatched input '(' expecting ')'
> 	at org.apache.cassandra.config.CFMetaData.compile(CFMetaData.java:550)
> 	at org.apache.cassandra.stress.StressProfile.init(StressProfile.java:134)
> 	at org.apache.cassandra.stress.StressProfile.load(StressProfile.java:482)
> 	at org.apache.cassandra.stress.settings.SettingsCommandUser.<init>(SettingsCommandUser.java:53)
> 	at org.apache.cassandra.stress.settings.SettingsCommandUser.build(SettingsCommandUser.java:114)
> 	at org.apache.cassandra.stress.settings.SettingsCommand.get(SettingsCommand.java:134)
> 	at org.apache.cassandra.stress.settings.StressSettings.get(StressSettings.java:218)
> 	at org.apache.cassandra.stress.settings.StressSettings.parse(StressSettings.java:206)
> 	at org.apache.cassandra.stress.Stress.main(Stress.java:58)
> Caused by: org.apache.cassandra.exceptions.SyntaxException: line 6:14 mismatched input
'(' expecting ')'
> 	at org.apache.cassandra.cql3.CqlParser.throwLastRecognitionError(CqlParser.java:273)
> 	at org.apache.cassandra.cql3.QueryProcessor.parseStatement(QueryProcessor.java:456)
> 	at org.apache.cassandra.config.CFMetaData.compile(CFMetaData.java:541)
> 	... 8 more
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message