Skip to content

server: mutex-protect the drain timeout, and attempt to repro a race.#31432

Closed
jmarantz wants to merge 1 commit intoenvoyproxy:mainfrom
jmarantz:drain-manager-mutex
Closed

server: mutex-protect the drain timeout, and attempt to repro a race.#31432
jmarantz wants to merge 1 commit intoenvoyproxy:mainfrom
jmarantz:drain-manager-mutex

Conversation

@jmarantz
Copy link
Copy Markdown
Contributor

Commit Message:
Additional Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]

Signed-off-by: Joshua Marantz <jmarantz@google.com>
@repokitteh-read-only
Copy link
Copy Markdown

As a reminder, PRs marked as draft will not be automatically assigned reviewers,
or be handled by maintainer-oncall triage.

Please mark your PR as ready when you want it to be reviewed!

🐱

Caused by: #31432 was opened by jmarantz.

see: more, trace.

@jmarantz
Copy link
Copy Markdown
Contributor Author

A better approach might be to have the drain-timeout be thread-local and post an update to that in all worker threads.

@mattklein123 WDYT?

@mattklein123 mattklein123 self-assigned this Dec 18, 2023
Copy link
Copy Markdown
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

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

I don't think access of this is perf critical so seems fine to me? I'm sure it's not standard compliant, but I would imagine sizeof(MonotonicTime) is 8 on the platforms we care about and you could probably jam it in an atomic and cast it back and forth if you really cared to?

@jmarantz
Copy link
Copy Markdown
Contributor Author

wound up starting again with #31452 and will close this one.

@jmarantz jmarantz closed this Dec 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants