Bug #78439 | mysqldbcompare attribute error with same servers connection with --all option | ||
---|---|---|---|
Submitted: | 15 Sep 2015 8:21 | Modified: | 20 Jan 2016 0:37 |
Reporter: | Shahriyar Rzayev | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Utilities | Severity: | S2 (Serious) |
Version: | 1.5.5 | OS: | Linux (Any) |
Assigned to: | CPU Architecture: | Any |
[15 Sep 2015 8:21]
Shahriyar Rzayev
[15 Sep 2015 8:22]
Shahriyar Rzayev
diff_patch for dbcompare.py
Attachment: dbcompare_patch_bug_78439.txt (text/plain), 1.23 KiB.
[15 Sep 2015 9:52]
MySQL Verification Team
Hello Shahriyar Rzayev, Thank you for the report. Thanks, Umesh
[15 Sep 2015 9:54]
MySQL Verification Team
// [root@cluster-repo ~]# rpm -qa|grep mysql-utilities mysql-utilities-1.5.4-1.el6.noarch mysql-utilities-extra-1.5.4-1.el6.noarch [root@cluster-repo ~]# mysqldbcompare --server1=root@localhost:3306 --server2=root@localhost:3306 --all # WARNING: Using a password on the command line interface can be insecure. # server1 on localhost: ... connected. # server2 on localhost: ... connected. Traceback (most recent call last): File "/usr/bin/mysqldbcompare", line 336, in <module> exclude_list, options) File "/usr/lib/python2.6/site-packages/mysql/utilities/command/dbcompare.py", line 520, in compare_all_databases if server1.port == server2.port and server1.is_alias(server2.host): AttributeError: 'NoneType' object has no attribute 'port' // 1.5.5 [root@cluster-repo ~]# rpm -qa|grep mysql-utilities mysql-utilities-1.5.5-1.el6.noarch mysql-utilities-extra-1.5.5-1.el6.noarch [root@cluster-repo ~]# mysqldbcompare --server1=root@localhost:3306 --server2=root@localhost:3306 --all # WARNING: Using a password on the command line interface can be insecure. # server1 on localhost: ... connected. # server2 on localhost: ... connected. Traceback (most recent call last): File "/usr/bin/mysqldbcompare", line 336, in <module> exclude_list, options) File "/usr/lib/python2.6/site-packages/mysql/utilities/command/dbcompare.py", line 520, in compare_all_databases if server1.port == server2.port and server1.is_alias(server2.host): AttributeError: 'NoneType' object has no attribute 'port' [root@cluster-repo ~]#
[20 Jan 2016 0:37]
Philip Olson
Posted by developer: Fixed as of the upcoming MySQL Utilities 1.6.3 release, and here's the changelog entry: With the mysqldbcompare utility, using the same connection information for both --server1 and --server2 with the --all option would raise an AttributeError. Thank you for the bug report.