private void saveCanonicalIds() {
    Int2ObjectOpenHashMap<Object> mappings = canonicalIdHolder.getAllMappings();
    for (Int2ObjectMap.Entry<Object> entry : mappings.int2ObjectEntrySet()) {
      writeCanonicalId(entry.getIntKey(), entry.getValue());
    }
  }
Write all live data to the init file
geode-core/src/main/java/org/apache/geode/internal/cache/DiskInitFile.java