Skip to content
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

不能区分BEGIN ,COMMIT #24

Open
Fanduzi opened this issue Aug 30, 2020 · 0 comments
Open

不能区分BEGIN ,COMMIT #24

Fanduzi opened this issue Aug 30, 2020 · 0 comments

Comments

@Fanduzi
Copy link

Fanduzi commented Aug 30, 2020

In [48]: EntryProtocol_pb2.EventType.items()                                                                                                                                                                                                                    
Out[48]: 
[('EVENTTYPECOMPATIBLEPROTO2', 0),
 ('INSERT', 1),
 ('UPDATE', 2),
 ('DELETE', 3),
 ('CREATE', 4),
 ('ALTER', 5),
 ('ERASE', 6),
 ('QUERY', 7),
 ('TRUNCATE', 8),
 ('RENAME', 9),
 ('CINDEX', 10),
 ('DINDEX', 11),
 ('GTID', 12),
 ('XACOMMIT', 13),
 ('XAROLLBACK', 14),
 ('MHEARTBEAT', 15)]

BEGIN和COMMIT的header.eventType都是0, 也就是EntryProtocol_pb2.EventType.Name(0)='EVENTTYPECOMPATIBLEPROTO2'
无法区分begin和commit.

还有一个问题是发现经常获取不到COMMIT, 除非COMMIT比事务中最后一个语句晚6秒执行

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant