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

release-22.2: timeutil/ptp: fix conversion from seconds to Time #108120

Merged
merged 1 commit into from Aug 3, 2023

Conversation

pav-kv
Copy link
Collaborator

@pav-kv pav-kv commented Aug 3, 2023

Backport 1/1 commits from #108094.

/cc @cockroachdb/release


Epic: none
Release note (bug fix): since 22.2.0, using a PTP clock device (enabled by the --clock-device flag) would generate timestamps in the far future. It now generates the correct time. This could cause nodes to crash due to incorrect timestamps, or in the worst case irreversibly advance the cluster's HLC clock into the far future.


Release justification: serious bug fix

@pav-kv pav-kv requested review from knz and erikgrinaker August 3, 2023 15:32
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@pav-kv pav-kv changed the title timeutil/ptp: fix conversion from seconds to Time release-23.1: timeutil/ptp: fix conversion from seconds to Time Aug 3, 2023
@pav-kv pav-kv changed the title release-23.1: timeutil/ptp: fix conversion from seconds to Time release-22.2: timeutil/ptp: fix conversion from seconds to Time Aug 3, 2023
@pav-kv
Copy link
Collaborator Author

pav-kv commented Aug 3, 2023

dev generate bazel doesn't like this patch, trying to understand why.

Epic: none
Release note (bug fix): since 22.2.0, using a PTP clock device (enabled by the
--clock-device flag) would generate timestamps in the far future. It now
generates the correct time. This could cause nodes to crash due to incorrect
timestamps, or in the worst case irreversibly advance the cluster's HLC clock
into the far future.
@pav-kv pav-kv merged commit 6bd3f8f into cockroachdb:release-22.2 Aug 3, 2023
5 of 6 checks passed
@pav-kv pav-kv deleted the backport22.2-108094 branch August 3, 2023 17:51
@data-matt data-matt added the release-blocker Indicates a release-blocker. Use with branch-release-2x.x label to denote which branch is blocked. label Aug 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-blocker Indicates a release-blocker. Use with branch-release-2x.x label to denote which branch is blocked.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants