Tags: yugabyte/cqlsh
Tags
Fix for "[YCQL] describe keyspace <keyspace_name> throws error #16530"
Fix for "[YCQL] describe keyspace <keyspace_name> throws error #16530"
[DB-3774] cqlsh: Provide option to disable DEBUG command in ycqlsh Summary: This diff provides an option to disable the `DEBUG` command which opens a Python debugging session. To disable the debugging functionality, the `ycqlsh` command be started with option `--disallow_python_debug`. The default value of the flag is False. Test Plan: Tried on local machine ``` >> ./ycqlsh Connected to local cluster at 127.0.0.1:9042. [ycqlsh 5.0.1 | Cassandra 3.9-SNAPSHOT | CQL spec 3.4.2 | Native protocol v4] Use HELP for help. ycqlsh> debug --Return-- > /Users/stiwary/code/cqlsh/bin/ycqlsh.py(2050)do_debug()->None -> pdb.set_trace() (Pdb) exit ycqlsh> exit >>./ycqlsh --disallow_python_debug Connected to local cluster at 127.0.0.1:9042. [ycqlsh 5.0.1 | Cassandra 3.9-SNAPSHOT | CQL spec 3.4.2 | Native protocol v4] Use HELP for help. ycqlsh> debug *** Python debugger disabled because shell started with --disallow_python_debug ycqlsh> exit ``` Reviewers: skumar, oleg Reviewed By: oleg Subscribers: yql Differential Revision: https://phabricator.dev.yugabyte.com/D23650
PreviousNext