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

feat: add mark to transaction for OceanBase #619

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

whhe
Copy link
Contributor

@whhe whhe commented Nov 1, 2023

Our team is going to open source a new version of oblogproxy, named "Binlog Service", it serves like a mysql server and support the mysql dump protocol. But there is an issue that the output of show master status from it exists a certain delay, which means we can't filter out the binlog event by the log position.

Here is my solution: add a table to mark the start and end of one transaction at the source database, the table is like below:

CREATE TABLE `$_$Inception$_$`.`transaction_mark` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `mark_type` int(11) DEFAULT NULL,
  `thread_id` int(10) unsigned DEFAULT NULL,
  `log_file` varchar(40) DEFAULT NULL,
  `log_position` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
)

Copy link

sonarcloud bot commented Nov 15, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.5% 0.5% Duplication

Copy link

sonarcloud bot commented Jan 31, 2024

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.4% Duplication on New Code

See analysis details on SonarCloud

Copy link

sonarcloud bot commented Nov 20, 2024

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

Successfully merging this pull request may close these issues.

1 participant