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

Let arbitrator system use nano second #11415

Closed
wants to merge 1 commit into from

Conversation

tanjialiang
Copy link
Contributor

@tanjialiang tanjialiang commented Nov 2, 2024

Use nano seconds in arbitrator system to avoid flakiness in time dependent tests.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 2, 2024
Copy link

netlify bot commented Nov 2, 2024

Deploy Preview for meta-velox canceled.

Name Link
🔨 Latest commit 8f44823
🔍 Latest deploy log https://app.netlify.com/sites/meta-velox/deploys/6729540c8310650008104894

@tanjialiang tanjialiang force-pushed the nano_sec branch 4 times, most recently from e26f573 to 77a3b28 Compare November 2, 2024 04:24
@facebook-github-bot
Copy link
Contributor

@tanjialiang has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@tanjialiang tanjialiang marked this pull request as ready for review November 2, 2024 18:38
Copy link
Contributor

@xiaoxmeng xiaoxmeng left a comment

Choose a reason for hiding this comment

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

@tanjialiang thanks for the fix and improvement!

@@ -95,28 +95,28 @@ class ArbitrationOperation {

/// Returns the remaining execution time for this operation before time out.
/// If the operation has already finished, this returns zero.
size_t timeoutMs() const;
int64_t timeoutNs() const;
Copy link
Contributor

Choose a reason for hiding this comment

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

uint64_t ? shall we be consistent? I saw Timer.h use uint64_t

@facebook-github-bot
Copy link
Contributor

@tanjialiang has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

Some tests are flaky because current milisecond is too coarse. And some operations
run sub-milisecond. We want to change it to nanosecond across the board to reduce
this flakiness
@facebook-github-bot
Copy link
Contributor

@tanjialiang has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@tanjialiang merged this pull request in 62b0a12.

Copy link

Conbench analyzed the 1 benchmark run on commit 62b0a128.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants