You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "Brian Kalbfus (JIRA)" <ji...@apache.org> on 2018/10/23 23:02:00 UTC

[jira] [Comment Edited] (ISIS-2020) DataNucleus Federated Datastore functionality not used in query

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

Brian Kalbfus edited comment on ISIS-2020 at 10/23/18 11:01 PM:
----------------------------------------------------------------

I am solving this by patching datanucleus-api-jdo.   JDOQLTypedQueryImpl is getting a query from the primaryStoreMgr instead of finding the correct StoreManager for the class.  The attached patch fixes the "Find by Name" operation, not the "List All" operation.


was (Author: bkalbfus):
I am solving this by patching datanucleus-api-jdo.   JDOQLTypedQueryImpl is getting a query from the primaryStoreMgr instead of finding the correct StoreManager for the class.

> DataNucleus Federated Datastore functionality not used in query
> ---------------------------------------------------------------
>
>                 Key: ISIS-2020
>                 URL: https://issues.apache.org/jira/browse/ISIS-2020
>             Project: Isis
>          Issue Type: Bug
>          Components: Core: Objectstore: JDO
>    Affects Versions: 1.16.2, 2.0.0-M1
>            Reporter: Brian Kalbfus
>            Priority: Major
>         Attachments: datanucleus-api-jdo.patch
>
>
> Insert and Update operations work as expected, but query operations operate on the primary datastore.  I see from stepping through the M1 code that Insert and Update operations use a transaction that accesses a FederatedDataStore.  I guess that is where the difference occurs in that the query operations get a data store another way, failing to get the FederatedDataStore that is configured.
> example code created from helloworld-archetype is at [https://github.com/bkalbfus/isis-federatedDS-2_0_0-M1]
> Mailing list: [https://lists.apache.org/thread.html/2edea2f8d802532c3672eddc83b484bbc2e31d1cac16f2759feeb95f@%3Cusers.isis.apache.org%3E]
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)