Closed c-kuhlman closed 7 years ago
Can you provide an example of the command you ran to validate these changes and what the expected results are? With that I can give it a go in our environment.
Sure: Checkout the example .poolTester -- you will need to see what init steps are needed on your platform. Then once you have .poolTester in place, run the following from the .../testtools/poolTester directory
340: ./poolTester runScript -s scripts/repeatedHardRestart
2017-08-24 11:06:10 >>> Warning: Timeout of 60 seconds expired; condition 'QueriesProcessed == 2' still not met.
That is the failure message -- If the pool doesn't remain suspended, the queries will be processed and it will succeed silently.
I am going ahead and merging this since it is not a code path. It allows the poolTester to work on Solaris, and I suspect it will need to be tweaked further to work on other platforms. So this is really just a first step. Also, I did not even attempt the load balancer tests since solaris does not recognize PoolConnection templates. There will be more to do.
Added an example .poolTester file which contains some initializations that are necessary on some platforms Added a new test script to replicate the issue where repeated hard restarts leave the pool in a suspended state.