Skip to content

Conversation

upamanyus
Copy link
Contributor

6 byte suffix means event window is 2^48, not 2^56.

6 byte suffix means event window is 2^48, not 2^56.

Signed-off-by: Upamanyu Sharma <[email protected]>
@k8s-ci-robot
Copy link

Hi @upamanyus. Thanks for your PR.

I'm waiting for a etcd-io member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions 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.

@ahrtr
Copy link
Member

ahrtr commented Sep 27, 2025

/ok-to-test

Copy link

codecov bot commented Sep 27, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 69.01%. Comparing base (d3f136a) to head (4492810).
⚠️ Report is 18 commits behind head on main.

Additional details and impacted files
Files with missing lines Coverage Δ
pkg/idutil/id.go 100.00% <ø> (ø)

... and 33 files with indirect coverage changes

@@            Coverage Diff             @@
##             main   #20729      +/-   ##
==========================================
- Coverage   69.16%   69.01%   -0.15%     
==========================================
  Files         420      417       -3     
  Lines       34817    34682     -135     
==========================================
- Hits        24081    23936     -145     
  Misses       9338     9338              
- Partials     1398     1408      +10     

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d3f136a...4492810. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ahrtr
Copy link
Member

ahrtr commented Sep 27, 2025

/retest

Copy link
Member

@ahrtr ahrtr left a comment

Choose a reason for hiding this comment

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

LGTM & thx

// It increases suffix to generate the next id.
// The count field may overflow to timestamp field, which is intentional.
// It helps to extend the event window to 2^56. This doesn't break that
// It helps to extend the event window to 2^48. This doesn't break that
Copy link
Member

Choose a reason for hiding this comment

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

For reference: In the original PR #1952, the prefix was 1 byte, so it's indeed 7 bytes (56bit). The prefix was changed to 2 bytes later, but the doc/comment wasn't updated accordingly.

#1952

thx

@k8s-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ahrtr, upamanyus

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:

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

@ahrtr ahrtr merged commit 188f3a9 into etcd-io:main Oct 2, 2025
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants