dotmanila / pyxbackup

XtraBackup wrapper/manager in Python
GNU General Public License v2.0
85 stars 41 forks source link

Wrong Binlog position #44

Open theTibi opened 6 years ago

theTibi commented 6 years ago

Hi,

It looks like there is a bug in the binlog filename and position parser:

[06/25/2018 13:12:12] ERROR: An uncaught exception error has occurred!
Traceback (most recent call last):
  File "/usr/local/bin/pyxbackup", line 3421, in <module>
    run_binlog_stream()
  File "/usr/local/bin/pyxbackup", line 2458, in run_binlog_stream
    start_from_name = _stream_binlog_from()
  File "/usr/local/bin/pyxbackup", line 1522, in _stream_binlog_from
    if start_from < int(meta_start_binlog[-6:]):
ValueError: invalid literal for int() with base 10: "on'274"

Positions from Xtabackup log:

MySQL binlog position: filename 'Node1.bin.000227', position '274', GTID of the last change '1853fbe8-22f1-11e8-a4d8-1402ec4178fe:1-2,

Log bin from backup.meta:

`log_bin = Node1.bin.000227', position '274`