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

NullPointerException while create region during server restart

    XMLWordPrintableJSON

Details

    Description

      If the "create region" command is executed while the Geode server is restarting it will fail with NullPointerException on that server.

      It happens for persistent regions as it tries to findDiskStore but in that method, it first tries to get PdxRegistry from the cache and create a persistent Region on that. But in that case, when the cache is creating(it takes some more time if the server is restarting), if the command is executed fast it happened that creating cache is not finished and pdxRegistry is null, so every method executed on that will throw NullPointerException.

       

      gfsh>create region --name=/test_region2 --type=PARTITION_REDUNDANT_PERSISTENT --total-num-buckets=113 --disk-store=dataDiskStore --enable-synchronous-disk=false
      Member | Status | Message
      ------- | ------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
      server1 | OK | Region "/test_region2" created on "server1"
      server2 | OK | Region "/test_region2" created on "server2"
      server3 | ERROR | java.lang.NullPointerException
       at org.apache.geode.internal.cache.LocalRegion.findDiskStore(LocalRegion.java:7498)
       at org.apache.geode.internal.cache.PartitionedRegion.findDiskStore(PartitionedRe..
      Cluster configuration for group 'cluster' is updated.
      

       

      Attachments

        Issue Links

          Activity

            People

              mkevo Mario Kevo
              mkevo Mario Kevo
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: