suyashpatel98 opened a new pull request, #13403:
URL: https://github.com/apache/pinot/pull/13403

   Addresses #11788. 
   Approach: For each partition get the set of servers on which the partition 
resides for each table and verify that the 2 server sets are equal
   Edge case: Consider table0 (with replication factor: 2) and table1 
(replication factor: 1)
   server0: segment0_table0_replica_0, segment0_table1_replica_0
   server1: segment0_table0_replia_1
   
   In the above case the API will return false i.e tables aren't co-located 
(because the server sets must match exactly). 
   
   Testing:
   Tested both positive and negative scenarios
   
   
![testing-colocated-api](https://github.com/apache/pinot/assets/20127725/51beb96a-3cc0-402f-b260-431db7c9d184)
   
![testing-negative](https://github.com/apache/pinot/assets/20127725/555140fa-4261-4f78-9596-c84922654b5a)
    


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

Reply via email to