Looks like a usability issue to me. Where did you find that info? I'm looking at GatewaySenderFactory and there's not much info about "parallel"...
/** * Indicates whether all VMs need to distribute events to remote site. In this case only the * events originating in a particular VM will be in dispatched in order. * * @param isParallel boolean to indicate whether distribution policy is parallel */ public GatewaySenderFactory setParallel(boolean isParallel); On Tue, Jun 20, 2017 at 2:24 PM, Jared Stewart <[email protected]> wrote: > I believe you need to set your gateway sender to be Serial rather than > Parallel since this is a Replicate region. Try adding gatewaySenderFactory. > setParallel(false). > > - Jared > > On Jun 20, 2017, at 2:14 PM, Kirk Lund <[email protected]> wrote: > > > > Anyone understand this failure? Or see what I have wrong? > > > > I've created and started a Gateway Sender named "ny": > > > > GatewaySenderFactory gatewaySenderFactory = ... > > GatewaySender sender = gatewaySenderFactory.create("ny", 1); > > sender.start(); > > > > And next I'm trying to create a Replicate Region with: > > > > AttributesFactory fact = new AttributesFactory(); > > fact.addGatewaySenderId("ny"); > > fact.setDataPolicy(DataPolicy.REPLICATE); > > fact.setScope(Scope.DISTRIBUTED_ACK); > > Region r = cache.createRegionFactory(fact.create()).create(regionName); > > > > That last line throws: > > > > Caused by: org.apache.geode.internal.cache.wan. > GatewaySenderConfigurationException: Parallel gateway sender ny can not > be used with replicated region /testWanAuthValidCredentials_RR > > at org.apache.geode.internal.cache.DistributedRegion. > postCreateRegion(DistributedRegion.java:2455) > > at org.apache.geode.internal.cache.GemFireCacheImpl. > createVMRegion(GemFireCacheImpl.java:3141) > > at org.apache.geode.internal.cache.GemFireCacheImpl. > basicCreateRegion(GemFireCacheImpl.java:3000) > > at org.apache.geode.internal.cache.GemFireCacheImpl. > createRegion(GemFireCacheImpl.java:2988) > > at org.apache.geode.cache.RegionFactory.create( > RegionFactory.java:758) > > > >
