code: @Override
      public void performMetadataMaintenance(String table) {
          TableJson json = readTableJson(table, false);
          MaintenanceOp op = getNextMaintenanceOp(json, true);
          if (op == null || op.getWhen().isAfter(_clock.instant()) || op.getType() != MaintenanceType.METADATA) {
              return;  // Nothing to do
          }
  
          // Do the maintenance.
          op.getTask().run(null);
      }
docs: MaintenanceDAO