@Override
  protected void cacheWriterChanged(CacheWriter p_oldWriter) {
    super.cacheWriterChanged(p_oldWriter);
    if (p_oldWriter == null ^ basicGetWriter() == null) {
      updatePRNodeInformation();
      new UpdateAttributesProcessor(this).distribute();
    }
  }
set fields that are only in PartitionProfile...
geode-core/src/main/java/org/apache/geode/internal/cache/PartitionedRegion.java