albertogpz commented on a change in pull request #7083:
URL: https://github.com/apache/geode/pull/7083#discussion_r761111371



##########
File path: 
geode-wan/src/main/java/org/apache/geode/cache/wan/internal/GatewaySenderFactoryImpl.java
##########
@@ -256,7 +257,13 @@ public GatewaySenderFactory 
setEnforceThreadsConnectSameReceiver(
 
   static void validate(final @NotNull InternalCache cache,
       final @NotNull GatewaySenderAttributesImpl attributes) {
-    final int myDSId = cache.getDistributionManager().getDistributedSystemId();
+    int myDSId;
+    if (cache instanceof CacheCreation) {

Review comment:
       You mean to implement in `CacheCreation` the `getDistributionManager()` 
method as follows?
   ```
     @Override
     public DistributionManager getDistributionManager() {
       return 
InternalDistributedSystem.getAnyInstance().getDistributionManager()
     }
   
   ```




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to