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

Allow stats operations not to be blocked in functions #9005

Merged
merged 1 commit into from
Dec 20, 2020

Conversation

jerrypeng
Copy link
Contributor

Motivation

Operations in regards to stats can happen out of band of the main function thread. Currently, all stats operations for a function instance are unnecessarily synchronized with setup() and close(). This may cause function metrics REST API calls and jetty threads to be blocked when an instance is initializing/setup.

Modifications

Remove synchronization on JavaInstanceRunnable and use separate locks.

@jerrypeng jerrypeng added this to the 2.8.0 milestone Dec 18, 2020
@jerrypeng jerrypeng self-assigned this Dec 18, 2020
@jerrypeng jerrypeng merged commit 31f7d70 into apache:master Dec 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants