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

Improve gfsh error message when creating persistent region with no persistent gw sender

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • gfsh
    • None

    Description

      The error shown in gfsh if you try to create a persistent region with a non-persistent gateway sender is not describing the problem.

      Cluster-1 gfsh>create region --name=testregion --type=PARTITION_PERSISTENT --disk-store=regionstore --gateway-sender-id=sender
      Member  | Status | Message
      ------- | ------ | -----------------------------------------------------------------------------------------------------------
      server1 | ERROR  | An exception was caught while registering PartitionedRegion /testregion. dumpPRId: prIdToPR Map@657410168:
      
      server2 | ERROR  | An exception was caught while registering PartitionedRegion /testregion. dumpPRId: prIdToPR Map@985461106:
      
      

      You have to check the server logs to check what happened:

      [warn 2021/07/21 16:30:43.348 CEST <Function Execution Processor2> tid=0x3a] Initialization failed for Region /testregion
      org.apache.geode.internal.cache.PartitionedRegionException: An exception was caught while registering PartitionedRegion /testregion. dumpPRId: prIdToPR Map@657410168:
      , caused by org.apache.geode.internal.cache.wan.GatewaySenderConfigurationException: Non persistent gateway sender sender can not be attached to persistent region /testregion
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            alberto.bustamante.reyes Alberto Bustamante Reyes
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: