MeihanLi commented on code in PR #9382: URL: https://github.com/apache/pinot/pull/9382#discussion_r968866490
########## pinot-controller/src/main/java/org/apache/pinot/controller/helix/core/PinotHelixResourceManager.java: ########## @@ -1303,14 +1303,20 @@ public void updateSchema(Schema schema, boolean reload) * Helper method to update the schema, or throw SchemaBackwardIncompatibleException when the new schema is not * backward-compatible with the existing schema. */ - private void updateSchema(Schema schema, Schema oldSchema) + private void updateSchema(Schema schema, Schema oldSchema, boolean force) throws SchemaBackwardIncompatibleException { String schemaName = schema.getSchemaName(); schema.updateBooleanFieldsIfNeeded(oldSchema); if (schema.equals(oldSchema)) { LOGGER.info("New schema: {} is the same as the existing schema, not updating it", schemaName); return; } + if (force) { Review Comment: Thanks Jackie for the comment, I reorganized the codes accordingly. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org