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

John Blum commented on GEODE-7201:
----------------------------------

This does not only affect Spring!  This is easy enough to reproduce without 
Spring, by simply using the Apache Geode API.

> Useless and unhelpful Exception inappropriately logged at ERROR
> ---------------------------------------------------------------
>
>                 Key: GEODE-7201
>                 URL: https://issues.apache.org/jira/browse/GEODE-7201
>             Project: Geode
>          Issue Type: Bug
>            Reporter: John Blum
>            Priority: Major
>              Labels: affects-spring
>
> For testing, it is valid that I might register interests on a client Region 
> where the server-side Region is a PARTITION Region, yet I am not using either 
> mcast-port or Locators since I only need a single server for my tests!
> Therefore this Exception is not helpful in anyway and only adds confusion to 
> the user...
> {code}
> 08:59:51  Caused by: java.lang.IllegalStateException: Should not register 
> interest for a partitioned region when mcast-port is 0 and no locator is 
> present
> 08:59:51      at 
> org.apache.geode.internal.cache.tier.sockets.command.RegisterInterest61.cmdExecute(RegisterInterest61.java:257)
> 08:59:51      at 
> org.apache.geode.internal.cache.tier.sockets.BaseCommand.execute(BaseCommand.java:183)
> 08:59:51      at 
> org.apache.geode.internal.cache.tier.sockets.ServerConnection.doNormalMessage(ServerConnection.java:848)
> 08:59:51      at 
> org.apache.geode.internal.cache.tier.sockets.OriginalServerConnection.doOneMessage(OriginalServerConnection.java:72)
> 08:59:51      at 
> org.apache.geode.internal.cache.tier.sockets.ServerConnection.run(ServerConnection.java:1212)
> 08:59:51      at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> 08:59:51      at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> 08:59:51      at 
> org.apache.geode.internal.cache.tier.sockets.AcceptorImpl.lambda$initializeServerConnectionThreadPool$3(AcceptorImpl.java:676)
> 08:59:51      at 
> org.apache.geode.logging.internal.executors.LoggingThreadFactory.lambda$newThread$0(LoggingThreadFactory.java:119)
> 08:59:51      ... 1 more
> {code}
> So, I "should" not...
> > "_Should not register interest for a partitioned region when mcast-port is 
> > 0 and no locator is present_"
> Why not?
> And, why does this message need to be logged at ERROR? WARN would suffice, 
> especially since "_should_" implies a "_recommendation_" and not a strict, 
> hard rule or requirement, which would rather be appropriately stated as 
> "_Must not register interest..._".



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to