Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-7201

Useless and unhelpful Exception inappropriately logged at ERROR

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      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...

      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
      

      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...".

      Attachments

        Activity

          People

            Unassigned Unassigned
            jblum John Blum
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: