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

Region names should be able to contain multiple underscores

    XMLWordPrintableJSON

Details

    Description

      Two leading underscores is not allowed (this is reserved for internal region names in Geode).

      However, multiple underscores later in the region name is supposed to be ok.

      Attempting to use more than one underscore results in this failure:

      Caused by: java.lang.IllegalArgumentException: Region names may only be alphanumeric and may contain hyphens or underscores: class org.apache.geode.management.RegionManagementDUnitTest_testDistributedRegion_region
      	at org.apache.geode.internal.cache.LocalRegion.validateRegionName(LocalRegion.java:7429)
      	at org.apache.geode.internal.cache.GemFireCacheImpl.createVMRegion(GemFireCacheImpl.java:3003)
      	at org.apache.geode.internal.cache.GemFireCacheImpl.basicCreateRegion(GemFireCacheImpl.java:2982)
      	at org.apache.geode.internal.cache.GemFireCacheImpl.createRegion(GemFireCacheImpl.java:2970)
      	at org.apache.geode.cache.RegionFactory.create(RegionFactory.java:756)
      

      Attachments

        Issue Links

          Activity

            People

              klund Kirk Lund
              klund Kirk Lund
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m