You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Wei-Chiu Chuang (Jira)" <ji...@apache.org> on 2022/01/10 05:08:00 UTC
[jira] [Created] (HDDS-6166) BlockInputStream unbuffer() should be synchronized
Wei-Chiu Chuang created HDDS-6166:
-------------------------------------
Summary: BlockInputStream unbuffer() should be synchronized
Key: HDDS-6166
URL: https://issues.apache.org/jira/browse/HDDS-6166
Project: Apache Ozone
Issue Type: Bug
Components: Ozone Client
Affects Versions: 1.1.0
Reporter: Wei-Chiu Chuang
{code:java}
@Override
public void unbuffer() {
storePosition();
releaseClient();
final List<ChunkInputStream> inputStreams = this.chunkStreams;
if (inputStreams != null) {
for (ChunkInputStream is : inputStreams) {
is.unbuffer();
}
}
} {code}
I believe the unbuffer() should be made synchronized to avoid potential data race in the future.
cc: [~adoroszlai]
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org