@Test
  public void bucketCreationLosesGiiTarget() {
    server1.invoke(() -> createRegion());
    server2.invoke(() -> createRegion());

    server3.invoke(() -> {
      PartitionAttributesFactory paf = new PartitionAttributesFactory();
      paf.setRedundantCopies(1);
      paf.setLocalMaxMemory(0);

      AttributesFactory af = new AttributesFactory();
      af.setPartitionAttributes(paf.create());

      Region<Integer, String> region = getCache().createRegion(uniqueName, af.create());

      region.put(0, "a");
    });
  }
This class tests that bucket regions can handle a failure of the GII target during GII.

<p>
TRAC #41091: Missing primary detected after member forcefully disconnected from DS (underlying
InternalGemFireError: Trying to clear a bucket region that was not destroyed)
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/BucketCreationGIIHARegressionTest.java