You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by gi...@git.apache.org on 2017/10/03 21:22:27 UTC

[GitHub] rdhabalia opened a new pull request #809: Fix BrokerServiceThrottlingTest using thread-safe list and closing executor

rdhabalia opened a new pull request #809: Fix BrokerServiceThrottlingTest using thread-safe list and closing executor
URL: https://github.com/apache/incubator-pulsar/pull/809
 
 
   ### Motivation
   
   as mentioned at #808 , I was able to reproduce it locally. This test creates consumers in parallel and adds to `ArrayList` which is not thread-safe. So, test creates 8 consumers but sometimes list has only 7 consumers and at the end it fails at assertion because it was expecting results from 8 consumers.
   
   ### Modifications
   
   - made list thread-safe
   - shutdown executors
   
   ### Result
   
   It will fix intermittent test failures of `BrokerServiceThrottlingTest.testLookupThrottlingForClientByBrokerInternalRetry`
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services