-
Notifications
You must be signed in to change notification settings - Fork 683
A wrong warning message is logged for every event from ignored table #578
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@YAtOff We need capture fake rotate Event. |
@YAtOff |
I'll give you the exact code. The exact values are not necessary. stream = BinLogStreamReader(
connection_settings=MYSQL_SETTINGS,
server_id=cdc_settings['MYSQL_SERVER_ID'],
blocking=True,
only_schemas=[schema],
only_tables=[file_table, fileversion_table],
only_events=[WriteRowsEvent, UpdateRowsEvent, GtidEvent],
resume_stream=True,
log_file=log_pos.file,
log_pos=log_pos.position
) |
Version
Please specify the versions you are using. Exact version numbers are preferred.
System Variables
List relevant system variables using the query
SHOW VARIABLES LIKE '<variable_name_here>';
log_bin
: onbinlog_format
: rowbinlog_row_image
: fullbinlog_row_metadata
: fullenforce_gtid_consistency
: ongtid_mode
: onIf you are using MySQL 8.0.14 or later, please also provide the following variables:
binlog_row_metadata
: onbinlog_row_value_options
: defaultSymptoms
The message is
A pymysql.OperationalError error occurred, causing a fake rotate event and initialization of the table_map
.But there is no fake rotate event.
Steps to Reproduce
Initialize
BinLogStreamReader
withonly_tables=[#some tables,...]
and start iterating it.Expected Outcome
No warning is logged.
Actual Outcome
Then for each event from a table that is not in the table list, the warning is logged.
My interpretation of the issue
The issue is caused by this PR: #490
If I understand correctly, the
table_map
should be empty when we have a fake rotate event.But here, it is not empty. It just doesn't have a key for the table.
It is possible, too, that the table is empty, but that's because no events have been received yet for the tables we are interested in.
I think a flag for the rotation is needed.
Planning to Resolve
The text was updated successfully, but these errors were encountered: