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

fix(tianmu): fix problems related to master slave synchronization (#819) #877

Merged
merged 2 commits into from
Nov 3, 2022

Conversation

konghaiya
Copy link
Collaborator

@konghaiya konghaiya commented Nov 2, 2022

fix 1:#818 Master slave synchronization - There will be too many tuples problem

Cause:
Tianmu::dbhandler::TianmuHandler::current_position This variable is not initialized. In some cases, a large value may cause too many tuples problem.
Solution: Initialize the variable

fix 2:#819 Master slave synchronization - Primary key conflict problem

Solution: Modify the modification logic of master slave synchronization, so that the delete and update operations do not follow the primary key logic

Supplement

sql/sql_insert.cc
Fix the problem that the insert statement will not generate binlog in the delayed insert mode storage/tianmu/handler/tianmu_handler.cpp
Fix the binlog error of the line format generated by the tianmu engine

Summary about this PR

Issue Number: close #issue_number_you_created

Tests Check List

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code

Changelog

  • New Feature
  • Bug Fix
  • Improvement
  • Performance Improvement
  • Build/Testing/CI/CD
  • Documentation
  • Not for changelog (changelog entry is not required)

Documentation

  • Affects user behaviors
  • Contains syntax changes
  • Contains variable changes
  • Contains experimental features

@mergify
Copy link
Contributor

mergify bot commented Nov 2, 2022

Thanks for the contribution!
I have applied any labels matching special text in your PR Changelog.

Please review the labels and make any necessary changes.

@mergify mergify bot added the PR-bug bug for pull request label Nov 2, 2022
@konghaiya
Copy link
Collaborator Author

CR, PTAL, @RingsC @hustjieke @isredstar @duanfuxiang0

Copy link
Contributor

@RingsC RingsC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

storage/tianmu/handler/tianmu_handler.cpp Outdated Show resolved Hide resolved
storage/tianmu/handler/tianmu_handler.cpp Outdated Show resolved Hide resolved
sql/log_event.cc Outdated Show resolved Hide resolved
@hustjieke
Copy link
Collaborator

@konghaiya pls fix the review comment.

@konghaiya konghaiya force-pushed the dev_lhj_819_2 branch 3 times, most recently from 25cf2b1 to d00a3fb Compare November 3, 2022 09:11
@konghaiya konghaiya changed the title fix(tianm): fix problems related to master slave synchronization (#819) fix(tianmu): fix problems related to master slave synchronization (#819) Nov 3, 2022
@konghaiya konghaiya force-pushed the dev_lhj_819_2 branch 2 times, most recently from 2c8d24a to 04da0c4 Compare November 3, 2022 09:36
…oneatom#819)

fix 1:stoneatom#818 Master slave synchronization - There will be too many tuples problem

Cause:
Tianmu::dbhandler::TianmuHandler::current_position This variable is not initialized. In some cases,
a large value may cause too many tuples problem.
Solution: Initialize the variable

fix 2:stoneatom#819 Master slave synchronization - Primary key conflict problem

Solution: Modify the modification logic of master slave synchronization, so that the delete and update operations do not follow the primary key logic

Supplement

sql/sql_insert.cc
Fix the problem that the insert statement will not generate binlog in the delayed insert mode
storage/tianmu/handler/tianmu_handler.cpp
Fix the binlog error of the line format generated by the tianmu engine
Copy link
Collaborator

@hustjieke hustjieke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mergify mergify bot merged commit ca2d68f into stoneatom:stonedb-5.7-dev Nov 3, 2022
@konghaiya konghaiya deleted the dev_lhj_819_2 branch November 22, 2022 01:35
@Nliver Nliver added this to the StoneDB_5.7_v1.0.2 milestone Apr 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR-bug bug for pull request
Projects
Development

Successfully merging this pull request may close these issues.

4 participants