palantir / atlasdb

Transactional Distributed Database Layer
https://palantir.github.io/atlasdb/
Apache License 2.0
55 stars 14 forks source link

Console mutations_enabled parsing seems funky #2438

Open jeremyk-91 opened 7 years ago

jeremyk-91 commented 7 years ago

Help on this flag:

atlasdb console [-h] [-s --SCRIPT] [-m --MUTATIONS_ENABLED] [-e --EVALUATE] [-cp --CLASSPATH] [-b --BIND --BIND] [--offline] [file]
  -m --MUTATIONS_ENABLED, --mutations_enabled --MUTATIONS_ENABLED
                         Enable put() and delete() commands for database mutation. THIS SHOULD ONLY BE ENABLED IF YOU REALLY KNOW WHAT YOU ARE DOING
$service/bin/jeremy atlasdb console -mutations_enabled var/conf/install.yml
(...)
groovy:000> //AtlasConsole started, type help() for more info!
groovy:000> :load utations_enabled
File not found: "utations_enabled"
(but atlas console is in the mutation enabled mode)

$service/bin/jeremy atlasdb console -m var/conf/install.yml
Unable create an instance of the configuration class: 'com.palantir.jeremy.config.JeremyConfig'

$service/bin/jeremy atlasdb console --mutations_enabled var/conf/install.yml
Unable create an instance of the configuration class: 'com.palantir.jeremy.config.JeremyConfig'

$service/bin/jeremy atlasdb console --MUTATIONS_ENABLED var/conf/install.yml
<prints help message>

$service/bin/jeremy atlasdb console -magic var/conf/install.yml
(...)
groovy:000> //AtlasConsole started, type help() for more info!
groovy:000> :load agic
File not found: "agic"
(but atlas console is in the mutation enabled mode)

What exactly am I supposed to do?

Internal ref: PDS-58167

tboam commented 7 years ago

Will add note to the docs for now.