Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
Description
/** parameters for read/write statistics on the container. **/ private final AtomicLong readBytes; private final AtomicLong writeBytes; private final AtomicLong readCount; private final AtomicLong writeCount; private final AtomicLong bytesUsed; private final AtomicLong blockCount;
In ContainerData, the fields shown above are for statistics. The synchronization in current code is incorrect when updating multiple fields.
It is better to create a class for them and then synchronize the new class.
Attachments
Issue Links
- links to