Skip to content

Navigation Menu

Sign in
Appearance settings
Sign up
Appearance settings

Synchronizations issues on RrdDbPool #125

Copy link
Copy link

Description

@j3rem1e
Issue body actions

RrdDbPool doesn't seem to be really threadsafe :

RrdEntry.count is an integer which is read or written without synchronization, and decisions are taken with the value of this integer. Calling requestRrdDb and release RrdDb could result in unexpected result. Operations on requestRrdDb and releaseRrdDb should probably be synchronized on the RrdEntry

Moreover, the method RrdDbPool.getOpenFiles() could fail with an NPE : it's possible to have on the pool an RrdEntry with a null rrdDb (because it's initializing in another thread by example)

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.