You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
Set time zone as 'PDT': set @@time_zone='America/Los_Angeles' on PDT time.
Run test 'TestSubmitJob':
go test --tags=intest -timeout 30s -run ^TestSubmitJob$ "github.com/pingcap/tidb/pkg/ttl/ttlworker"
2. What did you expect to see? (Required)
Test succeeded.
3. What did you see instead (Required)
Test failed:
--- FAIL: TestSubmitJob (0.96s)
job_manager_integration_test.go:477:
Error Trace: /Users/bb7133/Projects/gopath/src/github.com/pingcap/tidb/pkg/ttl/ttlworker/job_manager_integration_test.go:477
Error: Max difference between 1710172125 and 1710175725 allowed is 300, but difference was -3600
Test: TestSubmitJob
FAIL
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
set @@time_zone='America/Los_Angeles'
on PDT time.2. What did you expect to see? (Required)
Test succeeded.
3. What did you see instead (Required)
Test failed:
4. What is your TiDB version? (Required)
Latest master branch
5. Root cause
The calculation of 'expire time' is problematic when facing daylight saving time:
For areas like Los Angeles, the time of
FROM_UNIXTIME(0)
is in PST whennow()
is in PDT, there will be 1-hour deviation.As a result, users will also notice this bug checking job status in PDT time:
The text was updated successfully, but these errors were encountered: