whirr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tom White (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (WHIRR-216) Improve error message if whirr.instance-templates left out of config
Date Mon, 09 May 2011 16:04:03 GMT

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

Tom White updated WHIRR-216:
----------------------------

    Resolution: Fixed
        Status: Resolved  (was: Patch Available)

I've just committed this. Thanks Andrei!

> Improve error message if whirr.instance-templates left out of config
> --------------------------------------------------------------------
>
>                 Key: WHIRR-216
>                 URL: https://issues.apache.org/jira/browse/WHIRR-216
>             Project: Whirr
>          Issue Type: Improvement
>          Components: cli
>    Affects Versions: 0.3.0
>            Reporter: Johan Oskarsson
>            Assignee: Andrei Savu
>            Priority: Trivial
>             Fix For: 0.5.0
>
>         Attachments: WHIRR-216.patch
>
>
> When launching a cluster without whirr.instance-templates specified in the config file
used the following error message appears. It could be made more user friendly.
> bin/whirr launch-cluster --config ~/cassandra.properties 
> Bootstrapping cluster
> Exception in thread "main" java.lang.IndexOutOfBoundsException: index (0) must be less
than size (0)
> 	at com.google.common.base.Preconditions.checkElementIndex(Preconditions.java:301)
> 	at com.google.common.base.Preconditions.checkElementIndex(Preconditions.java:280)
> 	at com.google.common.collect.Iterables.get(Iterables.java:610)
> 	at org.apache.whirr.cluster.actions.ScriptBasedClusterAction.execute(ScriptBasedClusterAction.java:77)
> 	at org.apache.whirr.service.Service.launchCluster(Service.java:71)
> 	at org.apache.whirr.cli.command.LaunchClusterCommand.run(LaunchClusterCommand.java:61)
> 	at org.apache.whirr.cli.Main.run(Main.java:65)
> 	at org.apache.whirr.cli.Main.main(Main.java:91)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message