You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Somyeong Jeon (Jira)" <ji...@apache.org> on 2025/06/10 07:23:00 UTC

[jira] [Created] (CASSANDRA-20708) Add missing test for verifying toRepair fully contained in localRange

Somyeong Jeon created CASSANDRA-20708:
-----------------------------------------

             Summary: Add missing test for verifying toRepair fully contained in localRange
                 Key: CASSANDRA-20708
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-20708
             Project: Apache Cassandra
          Issue Type: Bug
          Components: Consistency/Repair
            Reporter: Somyeong Jeon
            Assignee: Somyeong Jeon


Where: `org.apache.cassandra.service.ActiveRepairServiceTest`


While testing the getNeighbors method in ActiveRepairService, I noticed that it only verifies if the toRepair range intersects with a localRange. However, it does not validate whether the toRepair range is fully contained within the localRange, which could lead to imprecise repairs.

To address this, I have added a test method named `testGetNeighborsRangeIntersectButNotContained` in the `ActiveRepairServiceTest` class. This test specifically passes a toRepair range that only intersects but is not fully contained in a localRange, ensuring that the expected `IllegalArgumentException` is thrown as intended by the method's contract.

This strengthens the test coverage for the edge case where an intersecting but not fully contained range is passed to `getNeighbors`.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org