Closed nyh closed 2 years ago
@nyh does scylla advertise it's version in any CQL table ?
@nyh does scylla advertise it's version in any CQL table ?
yeah looks like it does...
cqlsh> SELECT version FROM system.versions WHERE key='local' ;
version
-----------------------------------
5.2.0~dev-0.20221130.8bc0af9e34fa
if we'll have a systeam.scylla_local
, we could show scylla details.
Isn't this system.versions our own invention and can be used to tell Scylla and Cassandra apart (in addition to giving Scylla's version)?
This issue has been raised in the Scylla repository multiple times, see https://github.com/scylladb/scylladb/issues/680 and https://github.com/scylladb/scylladb/issues/5119.
Cqlsh currently shows a message like this when it starts up:
A
show version
command shows a similar string:This can confuse Scylla users (who don't understand why it tells them this is Cassandra), and we're loosing a convenient way for database administrators to figure out which version of Scylla they are using by connecting to it with cqlsh.
The word "Cassandra" is hard-coded into cqlsh, and the version number "3.0.8" comes from Scylla and we can't change it to an arbitrary number without confusing CQL drivers (not just cqlsh) as explained in https://github.com/scylladb/scylladb/issues/680.
Therefore the proposal in the above issues is that we should modify our own fork of cqlsh to add a request that figures out if the server is Scylla, and if it is, exactly which version - and if it is Scylla, display that information instead of the "Cassandra 3.0.8" message.
After we have such a patch, we can try to upstream it, but let's start with having it in our own fork first.