You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Arvind Kandpal (Jira)" <ji...@apache.org> on 2026/08/05 08:09:00 UTC
[jira] [Assigned] (CASSANDRA-21548) cqlsh prompt does not reset to default after dropping the current keyspace
[ https://issues.apache.org/jira/browse/CASSANDRA-21548?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Arvind Kandpal reassigned CASSANDRA-21548:
------------------------------------------
Assignee: Arvind Kandpal
> cqlsh prompt does not reset to default after dropping the current keyspace
> --------------------------------------------------------------------------
>
> Key: CASSANDRA-21548
> URL: https://issues.apache.org/jira/browse/CASSANDRA-21548
> Project: Apache Cassandra
> Issue Type: Improvement
> Reporter: Arvind Kandpal
> Assignee: Arvind Kandpal
> Priority: Normal
>
> When a user is currently inside a keyspace in cqlsh and drops that exact same keyspace, the cqlsh prompt does not reset to the default `cqlsh>` prompt. Instead, it remains stuck showing the dropped keyspace name.
> +Steps to reproduce:+
> 1. Start cqlsh
> 2. CREATE KEYSPACE test_ks WITH replication = \{'class': 'SimpleStrategy', 'replication_factor': 1};
> 3. USE test_ks;
> 4. DROP KEYSPACE test_ks;
> +Expected Behavior:+
> After dropping the keyspace, the prompt should automatically reset back to the default `cqlsh>`.
> +Actual Behavior:+
> The prompt remains stuck as `cqlsh:test_ks>`. If the user runs any table queries, it throws a "Keyspace does not exist" error.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org