dataroaring commented on PR #62122:
URL: https://github.com/apache/doris/pull/62122#issuecomment-4260524099

   Fixed the compile error in `ReplicaTest.java` — the 
`testBaseReplicaSchemaHashReturnsNegativeOne` test tried to instantiate the 
abstract `Replica` class directly (`new Replica()`), which doesn't compile 
since `Replica` has abstract method `getBackendId()`.
   
   Merged the base-class no-op `setSchemaHash()` assertion into the existing 
`testCloudReplicaSchemaHashReturnsNegativeOne` test. Since `CloudReplica` 
extends `Replica` without overriding `getSchemaHash()`/`setSchemaHash()`, it 
exercises the exact same base-class code paths.
   
   The final test coverage for the Copilot-requested schemaHash polymorphism:
   - `testLocalReplicaGetSchemaHash` — constructor value is stored and returned 
✅
   - `testLocalReplicaSetSchemaHash` — setter updates the value ✅  
   - `testCloudReplicaSchemaHashReturnsNegativeOne` — inherits base `-1` stub + 
`setSchemaHash` is no-op ✅
   
   — 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