{"action":"created","issue":{"url":"https://api.github.com/repos/scylladb/scylla/issues/680","repository_url":"https://api.github.com/repos/scylladb/scylla","labels_url":"https://api.github.com/repos/scylladb/scylla/issues/680/labels{/name}","comments_url":"https://api.github.com/repos/scylladb/scylla/issues/680/comments","events_url":"https://api.github.com/repos/scylladb/scylla/issues/680/events","html_url":"https://github.com/scylladb/scylla/issues/680","id":123435875,"number":680,"title":"cqlsh return the wrong version string in status line","user":{"login":"tzach","id":170200,"avatar_url":"https://avatars.githubusercontent.com/u/170200?v=3","gravatar_id":"","url":"https://api.github.com/users/tzach","html_url":"https://github.com/tzach","followers_url":"https://api.github.com/users/tzach/followers","following_url":"https://api.github.com/users/tzach/following{/other_user}","gists_url":"https://api.github.com/users/tzach/gists{/gist_id}","starred_url":"https://api.github.com/users/tzach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tzach/subscriptions","organizations_url":"https://api.github.com/users/tzach/orgs","repos_url":"https://api.github.com/users/tzach/repos","events_url":"https://api.github.com/users/tzach/events{/privacy}","received_events_url":"https://api.github.com/users/tzach/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/scylladb/scylla/labels/bug","name":"bug","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/scylladb/scylla/milestones/7","html_url":"https://github.com/scylladb/scylla/milestones/zebra","labels_url":"https://api.github.com/repos/scylladb/scylla/milestones/7/labels","id":1413361,"number":7,"title":"zebra","description":"","creator":{"login":"tzach","id":170200,"avatar_url":"https://avatars.githubusercontent.com/u/170200?v=3","gravatar_id":"","url":"https://api.github.com/users/tzach","html_url":"https://github.com/tzach","followers_url":"https://api.github.com/users/tzach/followers","following_url":"https://api.github.com/users/tzach/following{/other_user}","gists_url":"https://api.github.com/users/tzach/gists{/gist_id}","starred_url":"https://api.github.com/users/tzach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tzach/subscriptions","organizations_url":"https://api.github.com/users/tzach/orgs","repos_url":"https://api.github.com/users/tzach/repos","events_url":"https://api.github.com/users/tzach/events{/privacy}","received_events_url":"https://api.github.com/users/tzach/received_events","type":"User","site_admin":false},"open_issues":124,"closed_issues":4,"state":"open","created_at":"2015-11-16T10:30:10Z","updated_at":"2016-02-29T09:11:48Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-12-22T08:08:18Z","updated_at":"2016-02-29T14:35:40Z","closed_at":null,"body":"When using cqlsh to connect to scylla, it return the following\r\n```\r\nConnected to Test Cluster at 127.0.0.1:9052.\r\n[cqlsh 5.0.1 | Cassandra 2.1.8 | CQL spec 3.2.0 | Native protocol v3]\r\nUse HELP for help.\r\n```\r\nAlthough scylla is indeed compatible to Cassandra 2.1.8, it will be better to return Scylla version:\r\n```\r\n[cqlsh 5.0.1 | Scylla 0.13.1 | CQL spec 3.2.0 | Native protocol v3]\r\n```\r\nThe current result is confusing when working with both servers.\r\n"},"comment":{"url":"https://api.github.com/repos/scylladb/scylla/issues/comments/190233968","html_url":"https://github.com/scylladb/scylla/issues/680#issuecomment-190233968","issue_url":"https://api.github.com/repos/scylladb/scylla/issues/680","id":190233968,"user":{"login":"penberg","id":81939,"avatar_url":"https://avatars.githubusercontent.com/u/81939?v=3","gravatar_id":"","url":"https://api.github.com/users/penberg","html_url":"https://github.com/penberg","followers_url":"https://api.github.com/users/penberg/followers","following_url":"https://api.github.com/users/penberg/following{/other_user}","gists_url":"https://api.github.com/users/penberg/gists{/gist_id}","starred_url":"https://api.github.com/users/penberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/penberg/subscriptions","organizations_url":"https://api.github.com/users/penberg/orgs","repos_url":"https://api.github.com/users/penberg/repos","events_url":"https://api.github.com/users/penberg/events{/privacy}","received_events_url":"https://api.github.com/users/penberg/received_events","type":"User","site_admin":false},"created_at":"2016-02-29T14:35:40Z","updated_at":"2016-02-29T14:35:40Z","body":"@slivne, @tzach, we cannot change the Cassandra version number because the drivers use that to auto-negotiate the CQL binary protocol version.\r\n\r\nWhat we can do is something like this in ``cqlsh``:\r\n\r\n```\r\ndiff --git a/bin/cqlsh b/bin/cqlsh\r\nindex f37e0db..066b5de 100755\r\n--- a/bin/cqlsh\r\n+++ b/bin/cqlsh\r\n@@ -721,7 +721,7 @@ class Shell(cmd.Cmd):\r\n         # system.Versions['cql'] apparently does not reflect changes with\r\n         # set_cql_version.\r\n         vers['cql'] = self.cql_version\r\n-        print \"[cqlsh %(shver)s | Cassandra %(build)s | CQL spec %(cql)s | Native protocol v%(protocol)s]\" % vers\r\n+        print \"[cqlsh %(shver)s | Scylla [Cassandra %(build)s] | CQL spec %(cql)s | Native protocol v%(protocol)s]\" % vers\r\n \r\n     def show_session(self, sessionid):\r\n         print_trace_session(self, self.session, sessionid)\r\n```\r\n\r\nwhich makes the interactive shell look like this:\r\n\r\n```\r\n[penberg@nero scylla-tools-java]$ ./bin/cqlsh --no-color\r\nConnected to Test Cluster at 127.0.0.1:9042.\r\n[cqlsh 5.0.1 | Scylla [Cassandra 2.1.8] | CQL spec 3.2.0 | Native protocol v3]\r\nUse HELP for help.\r\n```"}}