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 the problem that adaptive update interval doesn't recovers back and there's too much logs about setting the config #1502

Merged

Conversation

MyonKeminta
Copy link
Contributor

Found and fixed these problems:

  1. As updating last tick time is moved into the doUpdate closure, and nextUpdateInterval calculates the value of recovering based on the last tick time, it causes the update interval unable to recover back.
  2. TiDB calls SetLowResolutionTimestampUpdateInterval every 30 seconds no matter whether the user changes it. After adding the log about changing the update interval, then there becomes too many logs.

…nd there's too much logs about setting the config

Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>
@ti-chi-bot ti-chi-bot bot added dco-signoff: yes Indicates the PR's author has signed the dco. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Nov 19, 2024
@ti-chi-bot ti-chi-bot bot added needs-1-more-lgtm Indicates a PR needs 1 more LGTM. approved labels Nov 19, 2024
@ti-chi-bot ti-chi-bot bot added the lgtm label Nov 19, 2024
Copy link

ti-chi-bot bot commented Nov 19, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cfzjywxk, crazycs520

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [cfzjywxk,crazycs520]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot bot removed the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label Nov 19, 2024
Copy link

ti-chi-bot bot commented Nov 19, 2024

[LGTM Timeline notifier]

Timeline:

  • 2024-11-19 06:13:53.860511733 +0000 UTC m=+941596.051380729: ☑️ agreed by crazycs520.
  • 2024-11-19 06:28:05.733793344 +0000 UTC m=+942447.924662355: ☑️ agreed by cfzjywxk.

@ti-chi-bot ti-chi-bot bot merged commit 3eb6e78 into tikv:master Nov 19, 2024
12 checks passed
@MyonKeminta MyonKeminta deleted the m/fix-adaptive-update-interval-recovering branch November 19, 2024 06:39
MyonKeminta added a commit to MyonKeminta/client-go that referenced this pull request Nov 19, 2024
…nd there's too much logs about setting the config (tikv#1502)

Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>
ti-chi-bot bot pushed a commit that referenced this pull request Dec 4, 2024
…nd there's too much logs about setting the config (#1502) (#1504)

 

Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>
MyonKeminta added a commit to MyonKeminta/client-go that referenced this pull request Dec 10, 2024
…nd there's too much logs about setting the config (tikv#1502) (tikv#1504)

 

Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>
MyonKeminta added a commit to MyonKeminta/client-go that referenced this pull request Dec 11, 2024
…nd there's too much logs about setting the config (tikv#1502)

 

Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>
ekexium pushed a commit to ekexium/client-go that referenced this pull request Jan 7, 2025
…nd there's too much logs about setting the config (tikv#1502)

Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>
ekexium pushed a commit to ekexium/client-go that referenced this pull request Jan 9, 2025
…nd there's too much logs about setting the config (tikv#1502)

Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved dco-signoff: yes Indicates the PR's author has signed the dco. lgtm size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants