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 Timeout overflow issue caused by negative duration #410

Merged
merged 1 commit into from Oct 16, 2021

Conversation

xiao66xiang
Copy link
Contributor

Some old sandboxes were not GC'ed because Duration d became negative and caused Timeout::in(d) to overflow. Hence we got a big number for removalTime and those old sandboxes were never sent to remove.

Jira: https://issues.apache.org/jira/browse/MESOS-10232

@bmahler
Copy link
Contributor

bmahler commented Oct 1, 2021

While you're here, would you mind updating it to grab a single clock now value at the beginning? The double call makes it tricky to reason about the overflow logic holding true on the second calls as well.

@bmahler
Copy link
Contributor

bmahler commented Oct 1, 2021

One more thing, we have to have PRs split across changes to stout/libprocess/mesos, so you'd need one patch for the timeout header and one for the mesos test.

@bmahler
Copy link
Contributor

bmahler commented Oct 4, 2021

Looks good, will you be sending a separate PR for the mesos tests?

Can you update the commit title / description to reflect the timeout library issue and not the mesos related issue? We treat libprocess / stout as separate libraries so try to avoid talking about mesos in their commits.

@xiao66xiang xiao66xiang changed the title Fix old sandboxes not being GC'ed issue Fix Timeout overflow issue caused by negative duration Oct 4, 2021
@xiao66xiang
Copy link
Contributor Author

Yes I'll send a separate PR for the mesos tests.

@mengzhu28
Copy link

LGTM. @bmahler let's merge this?

@xiao66xiang please add the mesos test in a separate PR. thanks!

@cf-natali cf-natali merged commit 7bcb391 into apache:master Oct 16, 2021
@cf-natali
Copy link
Contributor

@xiao66xiang Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants