You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Eric Lubow (Created) (JIRA)" <ji...@apache.org> on 2012/02/06 20:33:59 UTC

[jira] [Created] (CASSANDRA-3865) Cassandra-cli returns 'command not found' instead of syntax error

Cassandra-cli returns 'command not found' instead of syntax error
-----------------------------------------------------------------

                 Key: CASSANDRA-3865
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3865
             Project: Cassandra
          Issue Type: Bug
          Components: Core
         Environment: DSE 1.0.5
            Reporter: Eric Lubow


When creating a column family from the output of 'show schema' with an index, there is a trailing comma after "index_type: 0,"  The return from this is a 'command not found'  This is misleading because the command is found, there is just a syntax error.

'Command not found: `create column family $cfname ...`



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CASSANDRA-3865) Cassandra-cli returns 'command not found' instead of syntax error

Posted by "Pavel Yaskevich (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-3865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13284010#comment-13284010 ] 

Pavel Yaskevich commented on CASSANDRA-3865:
--------------------------------------------

You also need to add line about that into CHANGES.txt and up-merge it into trunk.
                
> Cassandra-cli returns 'command not found' instead of syntax error
> -----------------------------------------------------------------
>
>                 Key: CASSANDRA-3865
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3865
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>         Environment: DSE 1.0.5
>            Reporter: Eric Lubow
>            Assignee: Dave Brosius
>            Priority: Trivial
>              Labels: cassandra-cli
>             Fix For: 1.1.2
>
>         Attachments: 3865_better_cli_ex_handling.txt, parse_doubles_better.txt
>
>
> When creating a column family from the output of 'show schema' with an index, there is a trailing comma after "index_type: 0,"  The return from this is a 'command not found'  This is misleading because the command is found, there is just a syntax error.
> 'Command not found: `create column family $cfname ...`

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Comment Edited] (CASSANDRA-3865) Cassandra-cli returns 'command not found' instead of syntax error

Posted by "Pavel Yaskevich (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-3865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13282501#comment-13282501 ] 

Pavel Yaskevich edited comment on CASSANDRA-3865 at 5/24/12 1:30 PM:
---------------------------------------------------------------------

I think that Dave's patch is one part of it, another would be to change "Command not found" to "Error in the command" and add information from RecognitionException (which NoViableAltException extends) to were recognition error have actually happend.

Edit: Also, Dave, please don't forget that this is intended for inclusion into 1.0 so patches should be against cassandra-1.0 branch instead.
                
      was (Author: xedin):
    I think that Dave's patch is one part of it, another would be to change "Command not found" to "Error in the command" and add information from RecognitionException (which NoViableAltException extends) to were recognition error have actually happend.
                  
> Cassandra-cli returns 'command not found' instead of syntax error
> -----------------------------------------------------------------
>
>                 Key: CASSANDRA-3865
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3865
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>         Environment: DSE 1.0.5
>            Reporter: Eric Lubow
>            Assignee: Dave Brosius
>            Priority: Trivial
>              Labels: cassandra-cli
>             Fix For: 1.0.11, 1.1.1
>
>         Attachments: parse_doubles_better.txt
>
>
> When creating a column family from the output of 'show schema' with an index, there is a trailing comma after "index_type: 0,"  The return from this is a 'command not found'  This is misleading because the command is found, there is just a syntax error.
> 'Command not found: `create column family $cfname ...`

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CASSANDRA-3865) Cassandra-cli returns 'command not found' instead of syntax error

Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-3865?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Ellis updated CASSANDRA-3865:
--------------------------------------

         Reviewer: xedin
    Fix Version/s: 1.1.1
                   1.0.11
         Assignee: Dave Brosius  (was: Yuki Morishita)
    
> Cassandra-cli returns 'command not found' instead of syntax error
> -----------------------------------------------------------------
>
>                 Key: CASSANDRA-3865
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3865
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>         Environment: DSE 1.0.5
>            Reporter: Eric Lubow
>            Assignee: Dave Brosius
>            Priority: Trivial
>              Labels: cassandra-cli
>             Fix For: 1.0.11, 1.1.1
>
>         Attachments: parse_doubles_better.txt
>
>
> When creating a column family from the output of 'show schema' with an index, there is a trailing comma after "index_type: 0,"  The return from this is a 'command not found'  This is misleading because the command is found, there is just a syntax error.
> 'Command not found: `create column family $cfname ...`

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CASSANDRA-3865) Cassandra-cli returns 'command not found' instead of syntax error

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-3865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13284086#comment-13284086 ] 

Hudson commented on CASSANDRA-3865:
-----------------------------------

Integrated in Cassandra #1455 (See [https://builds.apache.org/job/Cassandra/1455/])
    fixes small CLI bug introduced by CASSANDRA-3865 (Revision 46722cc69e47e9b4bdcc5c28f426cf7f0a6a3a7d)

     Result = FAILURE
xedin : 
Files : 
* src/java/org/apache/cassandra/cli/Cli.g

                
> Cassandra-cli returns 'command not found' instead of syntax error
> -----------------------------------------------------------------
>
>                 Key: CASSANDRA-3865
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3865
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>         Environment: DSE 1.0.5
>            Reporter: Eric Lubow
>            Assignee: Dave Brosius
>            Priority: Trivial
>              Labels: cassandra-cli
>             Fix For: 1.1.2
>
>         Attachments: 3865_better_cli_ex_handling.txt, parse_doubles_better.txt
>
>
> When creating a column family from the output of 'show schema' with an index, there is a trailing comma after "index_type: 0,"  The return from this is a 'command not found'  This is misleading because the command is found, there is just a syntax error.
> 'Command not found: `create column family $cfname ...`

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CASSANDRA-3865) Cassandra-cli returns 'command not found' instead of syntax error

Posted by "Yuki Morishita (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-3865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13202428#comment-13202428 ] 

Yuki Morishita commented on CASSANDRA-3865:
-------------------------------------------

This is fixed in 1.0.7 (CASSANDRA-3714).
                
> Cassandra-cli returns 'command not found' instead of syntax error
> -----------------------------------------------------------------
>
>                 Key: CASSANDRA-3865
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3865
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>         Environment: DSE 1.0.5
>            Reporter: Eric Lubow
>            Assignee: Yuki Morishita
>            Priority: Trivial
>              Labels: cassandra-cli
>
> When creating a column family from the output of 'show schema' with an index, there is a trailing comma after "index_type: 0,"  The return from this is a 'command not found'  This is misleading because the command is found, there is just a syntax error.
> 'Command not found: `create column family $cfname ...`

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (CASSANDRA-3865) Cassandra-cli returns 'command not found' instead of syntax error

Posted by "Jonathan Ellis (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-3865?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Ellis resolved CASSANDRA-3865.
---------------------------------------

    Resolution: Duplicate
      Reviewer:   (was: brandon.williams)
      Assignee:     (was: Yuki Morishita)
    
> Cassandra-cli returns 'command not found' instead of syntax error
> -----------------------------------------------------------------
>
>                 Key: CASSANDRA-3865
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3865
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>         Environment: DSE 1.0.5
>            Reporter: Eric Lubow
>            Priority: Trivial
>              Labels: cassandra-cli
>
> When creating a column family from the output of 'show schema' with an index, there is a trailing comma after "index_type: 0,"  The return from this is a 'command not found'  This is misleading because the command is found, there is just a syntax error.
> 'Command not found: `create column family $cfname ...`

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CASSANDRA-3865) Cassandra-cli returns 'command not found' instead of syntax error

Posted by "Eric Lubow (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-3865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13281691#comment-13281691 ] 

Eric Lubow commented on CASSANDRA-3865:
---------------------------------------

This doesn't appear to be fixed.

Welcome to Cassandra CLI version 1.0.8

Type 'help;' or '?' for help.
Type 'quit;' or 'exit;' to quit.

[default@linkcurrent] create column family social_poll_deltas
...	  with column_type = 'Standard'
...	  and comparator = 'CompositeType(org.apache.cassandra.db.marshal.UTF8Type,org.apache.cassandra.db.marshal.UTF8Type,org.apache.cassandra.db.marshal.LongType)'
...	  and default_validation_class = 'UUIDType'
...	  and key_validation_class = 'UUIDType'
...	  and rows_cached = 0.0
...	  and row_cache_save_period = 0
...	  and row_cache_keys_to_save = 2147483647
...	  and keys_cached = 200000.0
...	  and key_cache_save_period = 14400
...	  and read_repair_chance = .25
...	  and gc_grace = 864000
...	  and min_compaction_threshold = 4
...	  and max_compaction_threshold = 32
...	  and replicate_on_write = true
...	  and row_cache_provider = 'SerializingCacheProvider'
...	  and compaction_strategy = 'org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy'
...	  and comment = 'Social poll totals and deltas ';
Command not found: `create column family social_poll_deltas with column_type = 'Standard' and comparator = 'CompositeType(org.apache.cassandra.db.marshal.UTF8Type,org.apache.cassandra.db.marshal.UTF8Type,org.apache.cassandra.db.marshal.LongType)' and default_validation_class = 'UUIDType' and key_validation_class = 'UUIDType' and rows_cached = 0.0 and row_cache_save_period = 0 and row_cache_keys_to_save = 2147483647 and keys_cached = 200000.0 and key_cache_save_period = 14400 and read_repair_chance = .25 and gc_grace = 864000 and min_compaction_threshold = 4 and max_compaction_threshold = 32 and replicate_on_write = true and row_cache_provider = 'SerializingCacheProvider' and compaction_strategy = 'org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy' and comment = 'Social poll totals and deltas ';`. Type 'help;' or '?' for help.
                
> Cassandra-cli returns 'command not found' instead of syntax error
> -----------------------------------------------------------------
>
>                 Key: CASSANDRA-3865
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3865
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>         Environment: DSE 1.0.5
>            Reporter: Eric Lubow
>            Priority: Trivial
>              Labels: cassandra-cli
>
> When creating a column family from the output of 'show schema' with an index, there is a trailing comma after "index_type: 0,"  The return from this is a 'command not found'  This is misleading because the command is found, there is just a syntax error.
> 'Command not found: `create column family $cfname ...`

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Comment Edited] (CASSANDRA-3865) Cassandra-cli returns 'command not found' instead of syntax error

Posted by "Dave Brosius (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-3865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13282125#comment-13282125 ] 

Dave Brosius edited comment on CASSANDRA-3865 at 5/24/12 2:10 AM:
------------------------------------------------------------------

support decimal parsing as 0.5 and .5

against trunk
                
      was (Author: dbrosius@apache.org):
    (trunk)
                  
> Cassandra-cli returns 'command not found' instead of syntax error
> -----------------------------------------------------------------
>
>                 Key: CASSANDRA-3865
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3865
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>         Environment: DSE 1.0.5
>            Reporter: Eric Lubow
>            Assignee: Yuki Morishita
>            Priority: Trivial
>              Labels: cassandra-cli
>         Attachments: parse_doubles_better.txt
>
>
> When creating a column family from the output of 'show schema' with an index, there is a trailing comma after "index_type: 0,"  The return from this is a 'command not found'  This is misleading because the command is found, there is just a syntax error.
> 'Command not found: `create column family $cfname ...`

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CASSANDRA-3865) Cassandra-cli returns 'command not found' instead of syntax error

Posted by "Dave Brosius (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-3865?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dave Brosius updated CASSANDRA-3865:
------------------------------------

    Attachment: parse_doubles_better.txt

(trunk)
                
> Cassandra-cli returns 'command not found' instead of syntax error
> -----------------------------------------------------------------
>
>                 Key: CASSANDRA-3865
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3865
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>         Environment: DSE 1.0.5
>            Reporter: Eric Lubow
>            Assignee: Yuki Morishita
>            Priority: Trivial
>              Labels: cassandra-cli
>         Attachments: parse_doubles_better.txt
>
>
> When creating a column family from the output of 'show schema' with an index, there is a trailing comma after "index_type: 0,"  The return from this is a 'command not found'  This is misleading because the command is found, there is just a syntax error.
> 'Command not found: `create column family $cfname ...`

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CASSANDRA-3865) Cassandra-cli returns 'command not found' instead of syntax error

Posted by "Dave Brosius (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-3865?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dave Brosius updated CASSANDRA-3865:
------------------------------------

    Attachment: 3865_better_cli_ex_handling.txt

3865_better_cli_ex_handling.txt

has better decimal parsing as before.

Also has better error messaging when the exception is NoViableAltException.

For some reason the code special cased that exception and returned the non-useful "Command not found" message. I just removed the special casing and now the message is useful.

If there is some case that someone knows about that the message "Command not found" is useful, i can put it back in for that specific case, but i couldn't see it.

against cassandra-1.1
                
> Cassandra-cli returns 'command not found' instead of syntax error
> -----------------------------------------------------------------
>
>                 Key: CASSANDRA-3865
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3865
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>         Environment: DSE 1.0.5
>            Reporter: Eric Lubow
>            Assignee: Dave Brosius
>            Priority: Trivial
>              Labels: cassandra-cli
>             Fix For: 1.1.2
>
>         Attachments: 3865_better_cli_ex_handling.txt, parse_doubles_better.txt
>
>
> When creating a column family from the output of 'show schema' with an index, there is a trailing comma after "index_type: 0,"  The return from this is a 'command not found'  This is misleading because the command is found, there is just a syntax error.
> 'Command not found: `create column family $cfname ...`

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CASSANDRA-3865) Cassandra-cli returns 'command not found' instead of syntax error

Posted by "Pavel Yaskevich (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-3865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13283972#comment-13283972 ] 

Pavel Yaskevich commented on CASSANDRA-3865:
--------------------------------------------

+1
                
> Cassandra-cli returns 'command not found' instead of syntax error
> -----------------------------------------------------------------
>
>                 Key: CASSANDRA-3865
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3865
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>         Environment: DSE 1.0.5
>            Reporter: Eric Lubow
>            Assignee: Dave Brosius
>            Priority: Trivial
>              Labels: cassandra-cli
>             Fix For: 1.1.2
>
>         Attachments: 3865_better_cli_ex_handling.txt, parse_doubles_better.txt
>
>
> When creating a column family from the output of 'show schema' with an index, there is a trailing comma after "index_type: 0,"  The return from this is a 'command not found'  This is misleading because the command is found, there is just a syntax error.
> 'Command not found: `create column family $cfname ...`

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CASSANDRA-3865) Cassandra-cli returns 'command not found' instead of syntax error

Posted by "Yuki Morishita (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-3865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13282140#comment-13282140 ] 

Yuki Morishita commented on CASSANDRA-3865:
-------------------------------------------

That't one way to fix parsing problem, but in my understanding, what Eric is saying is that it's hard to find the error from the message above.
If we can display more user friendly message like "Parse error: read_repair_chance = .25", instead of saying "Command not found", user can easily fix what's wrong.

I'm fine with current Double definition if we can fix the error message. What do you think, Pavel?
                
> Cassandra-cli returns 'command not found' instead of syntax error
> -----------------------------------------------------------------
>
>                 Key: CASSANDRA-3865
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3865
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>         Environment: DSE 1.0.5
>            Reporter: Eric Lubow
>            Assignee: Dave Brosius
>            Priority: Trivial
>              Labels: cassandra-cli
>             Fix For: 1.0.11, 1.1.1
>
>         Attachments: parse_doubles_better.txt
>
>
> When creating a column family from the output of 'show schema' with an index, there is a trailing comma after "index_type: 0,"  The return from this is a 'command not found'  This is misleading because the command is found, there is just a syntax error.
> 'Command not found: `create column family $cfname ...`

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CASSANDRA-3865) Cassandra-cli returns 'command not found' instead of syntax error

Posted by "Pavel Yaskevich (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-3865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13282501#comment-13282501 ] 

Pavel Yaskevich commented on CASSANDRA-3865:
--------------------------------------------

I think that Dave's patch is one part of it, another would be to change "Command not found" to "Error in the command" and add information from RecognitionException (which NoViableAltException extends) to were recognition error have actually happend.
                
> Cassandra-cli returns 'command not found' instead of syntax error
> -----------------------------------------------------------------
>
>                 Key: CASSANDRA-3865
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3865
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>         Environment: DSE 1.0.5
>            Reporter: Eric Lubow
>            Assignee: Dave Brosius
>            Priority: Trivial
>              Labels: cassandra-cli
>             Fix For: 1.0.11, 1.1.1
>
>         Attachments: parse_doubles_better.txt
>
>
> When creating a column family from the output of 'show schema' with an index, there is a trailing comma after "index_type: 0,"  The return from this is a 'command not found'  This is misleading because the command is found, there is just a syntax error.
> 'Command not found: `create column family $cfname ...`

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CASSANDRA-3865) Cassandra-cli returns 'command not found' instead of syntax error

Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-3865?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Ellis updated CASSANDRA-3865:
--------------------------------------

    Fix Version/s:     (was: 1.0.11)
                       (was: 1.1.1)
                   1.1.2

My fault, I added 1.0 as a fix target after Dave's patch since I thought it was going to be a quick fix.  Let's target 1.1 instead.
                
> Cassandra-cli returns 'command not found' instead of syntax error
> -----------------------------------------------------------------
>
>                 Key: CASSANDRA-3865
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3865
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>         Environment: DSE 1.0.5
>            Reporter: Eric Lubow
>            Assignee: Dave Brosius
>            Priority: Trivial
>              Labels: cassandra-cli
>             Fix For: 1.1.2
>
>         Attachments: parse_doubles_better.txt
>
>
> When creating a column family from the output of 'show schema' with an index, there is a trailing comma after "index_type: 0,"  The return from this is a 'command not found'  This is misleading because the command is found, there is just a syntax error.
> 'Command not found: `create column family $cfname ...`

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CASSANDRA-3865) Cassandra-cli returns 'command not found' instead of syntax error

Posted by "Dave Brosius (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-3865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13284005#comment-13284005 ] 

Dave Brosius commented on CASSANDRA-3865:
-----------------------------------------

committed to branch cassandra-1.1 as commit 2d72056c14f9b97e67dd94e48691f3ec1a88d9d6
                
> Cassandra-cli returns 'command not found' instead of syntax error
> -----------------------------------------------------------------
>
>                 Key: CASSANDRA-3865
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3865
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>         Environment: DSE 1.0.5
>            Reporter: Eric Lubow
>            Assignee: Dave Brosius
>            Priority: Trivial
>              Labels: cassandra-cli
>             Fix For: 1.1.2
>
>         Attachments: 3865_better_cli_ex_handling.txt, parse_doubles_better.txt
>
>
> When creating a column family from the output of 'show schema' with an index, there is a trailing comma after "index_type: 0,"  The return from this is a 'command not found'  This is misleading because the command is found, there is just a syntax error.
> 'Command not found: `create column family $cfname ...`

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CASSANDRA-3865) Cassandra-cli returns 'command not found' instead of syntax error

Posted by "Jonathan Ellis (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-3865?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Ellis updated CASSANDRA-3865:
--------------------------------------

    Reviewer: brandon.williams
    Priority: Trivial  (was: Major)
    Assignee: Yuki Morishita
    
> Cassandra-cli returns 'command not found' instead of syntax error
> -----------------------------------------------------------------
>
>                 Key: CASSANDRA-3865
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3865
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>         Environment: DSE 1.0.5
>            Reporter: Eric Lubow
>            Assignee: Yuki Morishita
>            Priority: Trivial
>              Labels: cassandra-cli
>
> When creating a column family from the output of 'show schema' with an index, there is a trailing comma after "index_type: 0,"  The return from this is a 'command not found'  This is misleading because the command is found, there is just a syntax error.
> 'Command not found: `create column family $cfname ...`

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Reopened] (CASSANDRA-3865) Cassandra-cli returns 'command not found' instead of syntax error

Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-3865?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Ellis reopened CASSANDRA-3865:
---------------------------------------

      Assignee: Yuki Morishita
    
> Cassandra-cli returns 'command not found' instead of syntax error
> -----------------------------------------------------------------
>
>                 Key: CASSANDRA-3865
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3865
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>         Environment: DSE 1.0.5
>            Reporter: Eric Lubow
>            Assignee: Yuki Morishita
>            Priority: Trivial
>              Labels: cassandra-cli
>
> When creating a column family from the output of 'show schema' with an index, there is a trailing comma after "index_type: 0,"  The return from this is a 'command not found'  This is misleading because the command is found, there is just a syntax error.
> 'Command not found: `create column family $cfname ...`

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CASSANDRA-3865) Cassandra-cli returns 'command not found' instead of syntax error

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-3865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13284058#comment-13284058 ] 

Hudson commented on CASSANDRA-3865:
-----------------------------------

Integrated in Cassandra #1453 (See [https://builds.apache.org/job/Cassandra/1453/])
    add missing CHANGES.txt entry for CASSANDRA-3865 (Revision d16c4468e86fbdb82ed981ef6c6ced6f275e4f21)

     Result = FAILURE
xedin : 
Files : 
* CHANGES.txt

                
> Cassandra-cli returns 'command not found' instead of syntax error
> -----------------------------------------------------------------
>
>                 Key: CASSANDRA-3865
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3865
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>         Environment: DSE 1.0.5
>            Reporter: Eric Lubow
>            Assignee: Dave Brosius
>            Priority: Trivial
>              Labels: cassandra-cli
>             Fix For: 1.1.2
>
>         Attachments: 3865_better_cli_ex_handling.txt, parse_doubles_better.txt
>
>
> When creating a column family from the output of 'show schema' with an index, there is a trailing comma after "index_type: 0,"  The return from this is a 'command not found'  This is misleading because the command is found, there is just a syntax error.
> 'Command not found: `create column family $cfname ...`

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CASSANDRA-3865) Cassandra-cli returns 'command not found' instead of syntax error

Posted by "Eric Lubow (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-3865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13281720#comment-13281720 ] 

Eric Lubow commented on CASSANDRA-3865:
---------------------------------------

As an update, the problem with this (after MUCH trial and error), was that the read_repair_chance was .25 instead of 0.25.
                
> Cassandra-cli returns 'command not found' instead of syntax error
> -----------------------------------------------------------------
>
>                 Key: CASSANDRA-3865
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3865
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>         Environment: DSE 1.0.5
>            Reporter: Eric Lubow
>            Assignee: Yuki Morishita
>            Priority: Trivial
>              Labels: cassandra-cli
>
> When creating a column family from the output of 'show schema' with an index, there is a trailing comma after "index_type: 0,"  The return from this is a 'command not found'  This is misleading because the command is found, there is just a syntax error.
> 'Command not found: `create column family $cfname ...`

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CASSANDRA-3865) Cassandra-cli returns 'command not found' instead of syntax error

Posted by "Eric Lubow (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-3865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13282150#comment-13282150 ] 

Eric Lubow commented on CASSANDRA-3865:
---------------------------------------

As Yuki said, I'd be more interested in the fix being a complaint of a syntax error (or parse error) when attempting to create a column family as opposed to "command not found" (which is clearly ambiguous).  This way I (as a user) know that the CLI is aware that I am attempting to create a column family and it's failing.  Now not only do I know that I am on the right track with the command I'm trying to execute, but then I know roughly where the problem is. Fixing the parse error is just a band-aid.
                
> Cassandra-cli returns 'command not found' instead of syntax error
> -----------------------------------------------------------------
>
>                 Key: CASSANDRA-3865
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3865
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>         Environment: DSE 1.0.5
>            Reporter: Eric Lubow
>            Assignee: Dave Brosius
>            Priority: Trivial
>              Labels: cassandra-cli
>             Fix For: 1.0.11, 1.1.1
>
>         Attachments: parse_doubles_better.txt
>
>
> When creating a column family from the output of 'show schema' with an index, there is a trailing comma after "index_type: 0,"  The return from this is a 'command not found'  This is misleading because the command is found, there is just a syntax error.
> 'Command not found: `create column family $cfname ...`

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CASSANDRA-3865) Cassandra-cli returns 'command not found' instead of syntax error

Posted by "Pavel Yaskevich (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-3865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13284063#comment-13284063 ] 

Pavel Yaskevich commented on CASSANDRA-3865:
--------------------------------------------

I have fixed small bug and committed to 1.1 and up-merged into trunk.
                
> Cassandra-cli returns 'command not found' instead of syntax error
> -----------------------------------------------------------------
>
>                 Key: CASSANDRA-3865
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3865
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>         Environment: DSE 1.0.5
>            Reporter: Eric Lubow
>            Assignee: Dave Brosius
>            Priority: Trivial
>              Labels: cassandra-cli
>             Fix For: 1.1.2
>
>         Attachments: 3865_better_cli_ex_handling.txt, parse_doubles_better.txt
>
>
> When creating a column family from the output of 'show schema' with an index, there is a trailing comma after "index_type: 0,"  The return from this is a 'command not found'  This is misleading because the command is found, there is just a syntax error.
> 'Command not found: `create column family $cfname ...`

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira