shlomi-noach / openarkkit

Automatically exported from code.google.com/p/openarkkit
24 stars 16 forks source link

oak-online-alter-table throws exception when given only -h option #18

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Run: oak-online-alter-table -h

Output:

[root@mslvldbt01 ~]# oak-online-alter-table -h
usage: oak-online-alter-table [options]

options:
  -h, --help            show this help message and exit
  -u USER, --user=USER  MySQL user
  -H HOST, --host=HOST  MySQL host (default: localhost)
  -p PASSWORD, --password=PASSWORD
                        MySQL password
  --ask-pass            Prompt for password
  -P PORT, --port=PORT  TCP/IP port (default: 3306)
  -S SOCKET, --socket=SOCKET
                        MySQL socket file. Only applies when host is localhost
  --defaults-file=DEFAULTS_FILE
                        Read from MySQL configuration file. Overrides all
                        other options
  -d DATABASE, --database=DATABASE
                        Database name (required unless table is fully
                        qualified)
  -t TABLE, --table=TABLE
                        Table to alter (optionally fully qualified)
  -g GHOST, --ghost=GHOST
                        Table name to serve as ghost. This table will be
                        created and synchronized with the original table
  -a ALTER_STATEMENT, --alter=ALTER_STATEMENT
                        Comma delimited ALTER statement details, excluding the
                        'ALTER TABLE t' itself
  -c CHUNK_SIZE, --chunk-size=CHUNK_SIZE
                        Number of rows to act on in chunks. Default: 1000
  -l, --lock-chunks     Use LOCK TABLES for each chunk
  --sleep=SLEEP_MILLIS  Number of milliseconds to sleep between chunks.
                        Default: 0
  --cleanup             Remove custom triggers, ghost table from possible
                        previous runs
  -v, --verbose         Print user friendly messages
  -q, --quiet           Quiet mode, do not verbose
exceptions.Exception 0
-- ERROR: Errors found. Initiating cleanup
-- ERROR: 0
Traceback (most recent call last):
  File "/usr/bin/oak-online-alter-table", line 957, in ?
    exit_with_error(err)
  File "/usr/bin/oak-online-alter-table", line 856, in exit_with_error
    exit(1)
TypeError: 'str' object is not callable

Python version:

[root@mslvldbt01 ~]# python -V
Python 2.4.3

Note the error output at the end.

Original issue reported on code.google.com by lachlan....@gmail.com on 6 Jul 2011 at 5:41

GoogleCodeExporter commented 9 years ago
This is duplicate of Issue 17. Fixed, but fix not yet released.

Original comment by shlomi.n...@gmail.com on 6 Jul 2011 at 6:27