dev-work-8103 commented on PR #7263:
URL: https://github.com/apache/hbase/pull/7263#issuecomment-3243760453

   In order to reproduce this error and verification, I have to mock 
super.balanceTable() method from CacheAwareLoadBalancer.balanceTable(). 
   
   For that i've used a workaround by implementing another method called 
callSuperBalanceTable() in CacheAwareLoadBalancer which calls 
super.balanceTable() and mocked callSuperBalanceTable() method in my test.
   
   I am attaching screenshot for more clarification :
   screenshot of CacheAwareLoadBalancer
   <img width="1071" height="706" alt="image" 
src="https://github.com/user-attachments/assets/dc89269b-8245-4097-b716-a485a1d9e337";
 />
   
   screenshot of unit test
   <img width="1247" height="294" alt="image" 
src="https://github.com/user-attachments/assets/a755508d-6090-41b8-a8ed-910b8b295b06";
 />
   
   So, this is how i have done verification but i am not so sure if we should 
include this kind of workaround in code. 
   Please let me know if is there any way to mock super.balanceTable().
   


-- 
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: issues-unsubscr...@hbase.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to