Jarred is correct but could definitely use clearer docs abs/or error message.
-- Mike Stolz Principal Engineer - Gemfire Product Manager Mobile: 631-835-4771 On Jun 20, 2017 5:36 PM, "Kirk Lund" <[email protected]> wrote: > 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.postCreate >> Region(DistributedRegion.java:2455) >> > at org.apache.geode.internal.cache.GemFireCacheImpl.createVMReg >> ion(GemFireCacheImpl.java:3141) >> > at org.apache.geode.internal.cache.GemFireCacheImpl.basicCreate >> Region(GemFireCacheImpl.java:3000) >> > at org.apache.geode.internal.cache.GemFireCacheImpl.createRegio >> n(GemFireCacheImpl.java:2988) >> > at org.apache.geode.cache.RegionFactory.create(RegionFactory. >> java:758) >> > >> >> >
