cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brandon Williams (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-2869) CassandraStorage does not function properly when used multiple times in a single pig script due to UDFContext sharing issues
Date Tue, 12 Jul 2011 16:57:59 GMT

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

Brandon Williams commented on CASSANDRA-2869:
---------------------------------------------

Looks like we can remove UDFCONTEXT_SCHEMA_KEY_PREFIX now too, no?

> CassandraStorage does not function properly when used multiple times in a single pig
script due to UDFContext sharing issues
> ----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-2869
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2869
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Contrib
>    Affects Versions: 0.7.2
>            Reporter: Grant Ingersoll
>            Assignee: Jeremy Hanna
>         Attachments: 2869.txt
>
>
> CassandraStorage appears to have threading issues along the lines of those described
at http://pig.markmail.org/message/oz7oz2x2dwp66eoz due to the sharing of the UDFContext.
> I believe the fix lies in implementing
> {code}
> public void setStoreFuncUDFContextSignature(String signature)
>     {
>     }
> {code}
> and then using that signature when getting the UDFContext.
> From the Pig manual:
> {quote}
> setStoreFunc!UDFContextSignature(): This method will be called by Pig both in the front
end and back end to pass a unique signature to the Storer. The signature can be used to store
into the UDFContext any information which the Storer needs to store between various method
invocations in the front end and back end. The default implementation in StoreFunc has an
empty body. This method will be called before other methods.
> {quote}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message