eventservice: event service use server level tz to avoid unncessary call and verbose log (#4836)#5233
Conversation
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
|
This cherry pick PR is for a release branch and has not yet been approved by triage owners. To merge this cherry pick:
DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
@3AceShowHand This PR has conflicts, I have hold it. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
@ti-chi-bot: ## If you want to know how to resolve it, please read the guide in TiDB Dev Guide. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Code Review
This pull request refactors the event service to use server-level timezone configurations and introduces a shared filter storage to optimize filter handling. However, the PR currently contains numerous unresolved merge conflicts across multiple test and source files, including git conflict markers. Additionally, there are critical compilation errors, such as the 'changefeedStatus' struct missing several fields and methods referenced by the new tests, and a signature mismatch where 'newChangefeedStatus' is called with two arguments but only defined with one. These issues must be resolved before the code can be compiled and merged.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
|
|
||
| type changefeedStatus struct { | ||
| changefeedID common.ChangeFeedID | ||
| filter filter.Filter |
There was a problem hiding this comment.
The changefeedStatus struct is missing several fields and methods that are referenced by the newly added tests and code in event_broker.go and event_broker_test.go. Specifically, it is missing:
minSentTs(atomic.Uint64)scanInterval(atomic.Int64)lastAdjustTime(atomic.Time)refreshMinSentResolvedTs()methodnewChangefeedStatussignature update to acceptsyncPointInterval
This indicates that the cherry-pick is incomplete or missing a prerequisite commit that defines these fields and methods on changefeedStatus. Please verify and include the missing changes.
| <<<<<<< HEAD | ||
| status := newChangefeedStatus(info.GetChangefeedID()) | ||
| ======= | ||
| status := newChangefeedStatusForTest(t, info) | ||
| >>>>>>> 32e1ab58b (eventservice: event service use server level tz to avoid unncessary call and verbose log (#4836)) |
| <<<<<<< HEAD | ||
| status := newChangefeedStatus(info.GetChangefeedID()) | ||
| ======= | ||
| status := newChangefeedStatusForTest(t, info) | ||
| >>>>>>> 32e1ab58b (eventservice: event service use server level tz to avoid unncessary call and verbose log (#4836)) |
| <<<<<<< HEAD | ||
| status := newChangefeedStatus(info.GetChangefeedID()) | ||
| ======= | ||
| status := newChangefeedStatusForTest(t, info) | ||
| >>>>>>> 32e1ab58b (eventservice: event service use server level tz to avoid unncessary call and verbose log (#4836)) |
| <<<<<<< HEAD | ||
| status := newChangefeedStatus(info.GetChangefeedID()) | ||
| ======= | ||
| status := newChangefeedStatusForTest(t, info) | ||
| >>>>>>> 32e1ab58b (eventservice: event service use server level tz to avoid unncessary call and verbose log (#4836)) |
| ) *changefeedStatus { | ||
| t.Helper() | ||
|
|
||
| status := newChangefeedStatus(changefeedID, syncPointInterval) |
| <<<<<<< HEAD | ||
| status := newChangefeedStatus(info.GetChangefeedID()) | ||
| ======= | ||
| status := newChangefeedStatusForTest(t, info) | ||
| >>>>>>> 32e1ab58b (eventservice: event service use server level tz to avoid unncessary call and verbose log (#4836)) |
| <<<<<<< HEAD | ||
| status := newChangefeedStatus(info.GetChangefeedID()) | ||
| ======= | ||
| status := newChangefeedStatusForTest(t, info) | ||
| >>>>>>> 32e1ab58b (eventservice: event service use server level tz to avoid unncessary call and verbose log (#4836)) |
| <<<<<<< HEAD | ||
| status1 := newChangefeedStatus(info1.GetChangefeedID()) | ||
| ======= | ||
| status1 := newChangefeedStatusForTest(t, info1) | ||
| >>>>>>> 32e1ab58b (eventservice: event service use server level tz to avoid unncessary call and verbose log (#4836)) |
| <<<<<<< HEAD | ||
| status2 := newChangefeedStatus(info2.GetChangefeedID()) | ||
| ======= | ||
| status2 := newChangefeedStatusForTest(t, info2) | ||
| >>>>>>> 32e1ab58b (eventservice: event service use server level tz to avoid unncessary call and verbose log (#4836)) |
This is an automated cherry-pick of #4836
What problem does this PR solve?
Issue Number: close #4843
This PR is helpful to remove the call to the GetTimezone method, which print a log each time on the dispatcher request, such as add dispatcher
What is changed and how it works?
Check List
Tests
Questions
Will it cause performance regression or break compatibility?
Do you need to update user documentation, design documentation or monitoring documentation?
Release note
Summary by CodeRabbit
Refactor
Tests