[
https://issues.apache.org/jira/browse/GEODE-5434?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16546946#comment-16546946
]
Addison commented on GEODE-5434:
--------------------------------
Hi [~masaki.yamakawa] , as Michael mentioned above, the reproduction uses
GemFire Native Client 9.2, not Geode Native. Geode Native features a revamped
API and will be part of an upcoming Geode release. Take a look at the Geode
Native Examples
([https://github.com/apache/geode-native/tree/develop/examples)] to see how the
API differs. On the C# side of things, it isn't much.
Specifically for the use case you have above, I would recommend adding
aconnectionn pool. Something like
`var poolFactory = cache.GetPoolFactory().AddLocator("localhost",
10334);poolFactory.Create("example_pool");`
Hope that helps.
> Region data is not updated when CQ and RegisterAllKey are used together in
> NativeClient
> ---------------------------------------------------------------------------------------
>
> Key: GEODE-5434
> URL: https://issues.apache.org/jira/browse/GEODE-5434
> Project: Geode
> Issue Type: Bug
> Components: client/server, cq, native client
> Reporter: Masaki Yamakawa
> Priority: Minor
>
> When CQ and RegisterAllKey are used together in NativeClient, the latest data
> can not be geted. I have created a simple application to confirm this issue.
> It exists below and the confirmation procedure is as follows:
> [https://github.com/masaki-yamakawa/GeodeNativeSample/blob/master/csharp/GeodeSample/GeodeSample/CqAndRegisterAllKeysBug.cs]
> # Start Locator with gfsh. (start locator -name=\{Name})
> # Start CacheServer with gfsh. (start server -name=\{Name})
> # Create an exampleRegion with gfsh. (create region --name=exampleRegion
> --type=REPLICATE)
> # Put data to exampleRegion with gfsh. (put --region=exampleRegion --key='1'
> --value='1'; put --region=exampleRegion --key='2' --value='2')
> # Execute CqAndRegisterAllKeysBug.cs.
> # Update exampleRegion's data with gfsh. (put --region=exampleRegion
> --key='1' --value='11'; put --region=exampleRegion --key='2' --value='22')
> # You can see that the data with key=1 has not been updated.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)