public static void sync(FileSystem fs, Path rootDir, TableDescriptor newDescriptor)
    throws IOException {
    String newPolicy = newDescriptor.getErasureCodingPolicy();
    if (newPolicy == null) {
      unsetPolicy(fs, rootDir, newDescriptor.getTableName());
    } else {
      setPolicy(fs, rootDir, newDescriptor.getTableName(), newPolicy);
    }
  }
Sync the EC policy state from the newDescriptor onto the FS for the table dir of the provided
table descriptor. If the policy is null, we will remove erasure coding from the FS for the
table dir. If it's non-null, we'll set it to that policy.
@param newDescriptor descriptor containing the policy and table name
hbase-server/src/main/java/org/apache/hadoop/hbase/fs/ErasureCodingUtils.java