public static boolean needsSync(TableDescriptor oldDescriptor, TableDescriptor newDescriptor) {
    String newPolicy = oldDescriptor.getErasureCodingPolicy();
    String oldPolicy = newDescriptor.getErasureCodingPolicy();
    return !Objects.equals(oldPolicy, newPolicy);
  }
Check if EC policy is different between two descriptors
@return true if a sync is necessary
hbase-server/src/main/java/org/apache/hadoop/hbase/fs/ErasureCodingUtils.java