You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Anilkumar Gingade (JIRA)" <ji...@apache.org> on 2017/06/30 22:29:00 UTC

[jira] [Commented] (GEODE-3115) Pdx persistence exception is thrown even when there is no partitioned region

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

Anilkumar Gingade commented on GEODE-3115:
------------------------------------------


Another case with pdx persistence:

1. enable pdx persistance
2. write pdx serialized data into an non-persitent partitioned region
3. create a persistent region
4. stop one of the 4 server
5 restart the server

Throws following error
```Exception in thread "main" org.apache.geode.pdx.PdxInitializationException: The PDX metadata must be persistent in a member that has persistent data. See CacheFactory.setPdxPersistent.
        at org.apache.geode.pdx.internal.PeerTypeRegistration.checkAllowed(PeerTypeRegistration.java:535)
        at org.apache.geode.pdx.internal.PeerTypeRegistration.creatingPersistentRegion(PeerTypeRegistration.java:483)
        at org.apache.geode.pdx.internal.TypeRegistry.creatingPersistentRegion(TypeRegistry.java:276)
        at org.apache.geode.internal.cache.LocalRegion.findDiskStore(LocalRegion.java:7800)
        at org.apache.geode.internal.cache.PartitionedRegion.findDiskStore(PartitionedRegion.java:9378)
```

Even with pdx persistence set to true (in xml):
```        <pdx persistent="true">
        </pdx>
```


> Pdx persistence exception is thrown even when there is no partitioned region
> ----------------------------------------------------------------------------
>
>                 Key: GEODE-3115
>                 URL: https://issues.apache.org/jira/browse/GEODE-3115
>             Project: Geode
>          Issue Type: Bug
>          Components: regions
>            Reporter: Anilkumar Gingade
>            Assignee: Anilkumar Gingade
>              Labels: storage_1
>
> When there is a persistent partitioned region, and pdx is added to a non-persistent partitioned region, the system throws exception saying "The PDX metadata must be persistent". This exception is thrown even when the persistent region is destroyed. 
> Steps to create:
> - Create region1 with persistent partition
> - Create region2 with non-persistent non-partition
> - Add pdx into region2, it throws exception saying "The PDX metadata must be persistent in a member that has persistent data. See CacheFactory.setPdxPersistent." 
> - Destroy persistent region region1
> The system continues to throw "The PDX metadata must be persistent" even when there is no persistent region. 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)