Skip to content

JettyConnectionMetrics: concurrent access without synchronization #6578

@deadok22

Description

@deadok22

Describe the bug
The 2 lambda expressions here access the maxConnections and connectionSamples fields without synchronization. They are run in Micrometer threads.
These same fields are updated in Jetty threads and the fields are protected by the connectionSamplesLock monitor otherwise.
The lambda expressions must acquire connectionSamplesLock to ensure correctness.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA general bug

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions