Copilot commented on code in PR #62122:
URL: https://github.com/apache/doris/pull/62122#discussion_r3035667663
##########
fe/fe-core/src/main/java/org/apache/doris/catalog/Replica.java:
##########
@@ -144,12 +142,12 @@ public long getVersion() {
}
public int getSchemaHash() {
- return schemaHash;
+ return -1;
}
// for compatibility
public void setSchemaHash(int schemaHash) {
- this.schemaHash = schemaHash;
+ // no-op in base class; overridden in LocalReplica
}
Review Comment:
Replica schemaHash behavior has changed (base returns -1/no-op; LocalReplica
stores the value). Please add/adjust unit tests (e.g., in ReplicaTest) to
assert that LocalReplica.getSchemaHash() returns the constructor value and that
a CloudReplica (or any non-LocalReplica Replica) reports -1, so regressions are
caught during refactors.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]