dataroaring commented on code in PR #62122:
URL: https://github.com/apache/doris/pull/62122#discussion_r3093627369


##########
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:
   Addressed in commit 7f5e6d3. The existing test tried to instantiate abstract 
`Replica` directly — merged the base-class no-op assertion into the 
`CloudReplica` test, which inherits the same stubs. All three schemaHash 
polymorphism tests now compile and cover the requested scenarios.
   
   — ThinkOps 🤖



-- 
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]

Reply via email to