[ 
https://issues.apache.org/jira/browse/FLINK-3387?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15169035#comment-15169035
 ] 

Stephan Ewen commented on FLINK-3387:
-------------------------------------

No, there cannot be a static instance, which would then be shared between 
parallel tasks and result in concurrent modifications.

There should be one instance per state instance, that is reused across method 
calls.

> Replace all ByteArrayOutputStream and DataOutputStream use in State Backends 
> by DataOutputSerializer
> ----------------------------------------------------------------------------------------------------
>
>                 Key: FLINK-3387
>                 URL: https://issues.apache.org/jira/browse/FLINK-3387
>             Project: Flink
>          Issue Type: Bug
>          Components: state backends
>    Affects Versions: 1.0.0
>            Reporter: Stephan Ewen
>            Assignee: Subhobrata Dey
>
> Currently, the {{byte[]}} to object conversion and vice versa is always done 
> by creating new byte array streams and Data Input/Output streams. That is 
> pretty wasteful, we can optimize this with Flink's own classes:
>   - {{DataInputSerializer}}
>   - {{DataOutputSerializer}}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to