[
https://issues.apache.org/jira/browse/CASSANDRA-21548?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Brandon Williams updated CASSANDRA-21548:
-----------------------------------------
Status: Ready to Commit (was: Review In Progress)
+1
> 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
> Components: CQL/Interpreter
> Reporter: Arvind Kandpal
> Assignee: Arvind Kandpal
> Priority: Normal
> Fix For: 6.x, 7.x
>
> Time Spent: 50m
> Remaining Estimate: 0h
>
> 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: [email protected]
For additional commands, e-mail: [email protected]