[
https://issues.apache.org/jira/browse/HDDS-2344?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Bharat Viswanadham updated HDDS-2344:
-------------------------------------
Labels: (was: pull-request-available)
> CLONE - Add immutable entries in to the DoubleBuffer for Volume requests.
> -------------------------------------------------------------------------
>
> Key: HDDS-2344
> URL: https://issues.apache.org/jira/browse/HDDS-2344
> Project: Hadoop Distributed Data Store
> Issue Type: Task
> Reporter: Bharat Viswanadham
> Assignee: Bharat Viswanadham
> Priority: Major
> Fix For: 0.5.0
>
>
> OMVolumeCreateRequest.java L159:
> {code:java}
> omClientResponse =
> new OMVolumeCreateResponse(omVolumeArgs,volumeList,
> omResponse.build());{code}
>
> We add this to double-buffer, and double-buffer flushThread which is running
> in the background when picks up, converts to protoBuf and to ByteArray and
> write to rocksDB tables. So, during this conversion(This conversion will be
> done without any lock acquire), if any other request changes internal
> structure(like acls list) of OmVolumeArgs we might get
> ConcurrentModificationException.
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]