You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@asterixdb.apache.org by "Till Westmann (JIRA)" <ji...@apache.org> on 2015/09/16 23:28:47 UTC

[jira] [Commented] (ASTERIXDB-1099) Format printers may have multi-threading errors

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

Till Westmann commented on ASTERIXDB-1099:
------------------------------------------

And it does have state. It seems to me that the right approach to fix this would be to to have one printer per thread (and not to synchronize then).
Would you agree?

> Format printers may have multi-threading errors
> -----------------------------------------------
>
>                 Key: ASTERIXDB-1099
>                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-1099
>             Project: Apache AsterixDB
>          Issue Type: Bug
>          Components: AsterixDB
>            Reporter: Chris Hillery
>            Assignee: Chris Hillery
>            Priority: Minor
>
> Several of the printers - for instance, org.apache.asterix.dataflow.data.nontagged.printers.AUUIDPrinter - have a static member which is used for formatting the data. This static member would be shared by any threads on the NC and is not synchronized, so there is at least the possibility of data corruption.



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