DERBY-5133; nightly test failure in derbyall/storeall/storemore/SpaceTable
   merge of revision 1594754 from 10.9, which was a backport of revision 1594231 and revision 1594451 from trunk
   converting the test to junit and calling a retry of the problematic selects


git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/branches/10.8@1595075 13f79535-47bb-0310-9956-ffa450edef68