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

Brad Schoening commented on CASSANDRA-18745:
--------------------------------------------

[~brandon.williams] would be helpful if this had a try/catch around the import 
of serverversion and didn't fail outright if serververison is missing. This can 
happen if you run directly from the src directory, for example:

 
{quote}../bin/cqlsh 

Traceback (most recent call last):

  File "/Users/.../cassandra/bin/cqlsh.py", line 82, in <module>

    from cqlshlib.cqlshmain import main

  File "/Users/.../cassandra/bin/../pylib/cqlshlib/cqlshmain.py", line 85, in 
<module>

    from cqlshlib.serverversion import version as build_version

ModuleNotFoundError: No module named 'cqlshlib.serverversion'
{quote}

> cqlsh should warn on server version mismatch
> --------------------------------------------
>
>                 Key: CASSANDRA-18745
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-18745
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: CQL/Interpreter
>            Reporter: Brandon Williams
>            Assignee: Brandon Williams
>            Priority: Normal
>             Fix For: 3.0.30, 3.11.16, 4.0.12, 4.1.4, 5.0, 5.1
>
>
> When cqlsh is used against a different version of the server than the one 
> that it shipped with, it should emit a warning so that users aren't confused 
> when some things don't work correctly.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to