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:slave parse tnx binlog failed #2642

Merged
merged 2 commits into from
May 9, 2024

Conversation

chejinge
Copy link
Collaborator

@chejinge chejinge commented May 9, 2024

@github-actions github-actions bot added the ☢️ Bug Something isn't working label May 9, 2024
Expect(r2.Err()).NotTo(HaveOccurred())
Expect(r2.Val()).To(Equal([]interface{}{"OK", "OK"}))

time.Sleep(100 * time.Millisecond)
Copy link
Collaborator

Choose a reason for hiding this comment

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

这里等待时间可以改大一些,比如3s,避免线上机器因为性能差同步不及时导致测试失败

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

这里等待时间可以改大一些,比如3s,避免线上机器因为性能差同步不及时导致测试失败

done

Expect(setkey1.Err()).NotTo(HaveOccurred())
Expect(setkey1.Val()).To(Equal("QUEUED"))

setkey2 := clientMaster.Set(ctx, "key2", "value2", 0)
Copy link
Collaborator

Choose a reason for hiding this comment

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

建议这些key加上前缀, 让他独特一些,避免slave本身就有这些key而导致误判

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

建议这些key加上前缀, 让他独特一些,避免slave本身就有这些key而导致误判

done

@@ -738,6 +738,48 @@ var _ = Describe("should replication ", func() {
Expect(r.Err()).To(MatchError("ERR EXEC without MULTI"))

Copy link
Collaborator

Choose a reason for hiding this comment

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

可以加上一行注释说明这个测试的目的是为了issue2643:
//The test below is related with issue: #2643

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

可以加上一行注释说明这个测试的目的是为了issue2643: //The test below is related with issue: #2643

done

@AlexStocks AlexStocks merged commit 58448d8 into OpenAtomFoundation:unstable May 9, 2024
14 checks passed
chejinge added a commit that referenced this pull request May 9, 2024
* fix:slave parse tnx binlog failed

* fix:slave parse tnx binlog failed

---------

Co-authored-by: chejinge <chejinge@360.cn>
chenbt-hz pushed a commit to chenbt-hz/pika that referenced this pull request Jun 3, 2024
* fix:slave parse tnx binlog failed

* fix:slave parse tnx binlog failed

---------

Co-authored-by: chejinge <chejinge@360.cn>
bigdaronlee163 pushed a commit to bigdaronlee163/pika that referenced this pull request Jun 8, 2024
* fix:slave parse tnx binlog failed

* fix:slave parse tnx binlog failed

---------

Co-authored-by: chejinge <chejinge@360.cn>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.5.4 4.0.0 ☢️ Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants