julien-duponchelle / julien-duponchelle/python-mysql-replication

resume_stream attribute of BinLogStreamReader not working as documented

Open
#300 7 comments 3 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
2.4k
Forks
690
PR merge metrics
No merged PRs in 30d

Description

According to documentation, BinLogStreamReader starts from a given position if an specific position of the binlog file is assigned to log_pos and resume_stream = True.
Nevertheless:
- when resume_stream = true, whatever value I assigned to log_pos, no past events are retrieved in the steam.
- when resume_tream = false, stream retrieves events since log_pos
It seems the behaviour is different as the documented.
Could you clarify it, please?
Thanks in advance.

Contributor guide

Open the contributing guide

Research direction

Start by reading the BinLogStreamReader documentation and its handling of resume_stream and log_pos. Reproduce the two reported settings, then compare the documented and actual stream positions; done means the behavior and documentation agree.

Written by the indexing model from the issue text.

Assessment

Tech stack
mysql, python
Domain
backend, databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.