vision-dbms / vision

The master repository for the Vision database system.
https://vision-dbms.com
BSD 3-Clause "New" or "Revised" License
27 stars 12 forks source link

Modified components of poolTester so that it works under Solaris10 #29

Closed c-kuhlman closed 7 years ago

c-kuhlman commented 7 years ago

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.

VCommitter commented 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.

c-kuhlman commented 7 years ago

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.

c-kuhlman commented 7 years ago

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.