HPCC-11693 Catch and handle OOM and failover when setting up HT

If it manages to avoid OOM on gather, but OOM's setting up sized
HT, then catch OOM exception coming back from roxiemem and let
it degrade to distributed local lookup join.

Signed-off-by: Jake Smith <jake.smith@lexisnexis.com>
HPCC-11693 Improove OOM handling when sizing tables

Prevent sizing tables, pushing out other memory (use allocate
with maxSpillCost). Catch a couple of other table sizing that
could OOM and ensure they fail over to local lookup join

Signed-off-by: Jake Smith <jake.smith@lexisnexis.com>
HPCC-11693 More changes, spotted during review

Signed-off-by: Jake Smith <jake.smith@lexisnexis.com>
HPCC-11693 Add maxSpillCost option to allocateRowTable too

Signed-off-by: Jake Smith <jake.smith@lexisnexis.com>
HPCC-12083 Remove ROXIEMM_LARGE_MEMORY_EXHAUSTED

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
HPCC-12053 Index writes were broken by last change.

Index (+ keydiff/keypatch) writes were incorrectly testing for
TDX* flags, as a consequence they were incorrectly mangling the
output filenames with temporary scopes, which could not be found
on lookup

Signed-off-by: Jake Smith <jake.smith@lexisnexis.com>
Merge pull request #6343 from jakesmith/hpcc-12053b

HPCC-12053 Index writes were broken by last change.

Reviewed-By: Gavin Halliday <gavin.halliday@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Merge pull request #6185 from jakesmith/hpcc-11693

HPCC-11693 Catch and handle OOM and failover when setting up HT

Reviewed-by: Gavin Halliday <ghalliday@hpccsystems.com>
Merge pull request #6342 from ghalliday/issue12083

HPCC-12083 Remove ROXIEMM_LARGE_MEMORY_EXHAUSTED

Reviewed-By: Jake Smith <jake.smith@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
HPCC-12083 Remove ROXIEMM_LARGE_MEMORY_EXHAUSTED from newly merged code

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Merge pull request #6344 from ghalliday/issue12083b

HPCC-12083 Remove ROXIEMM_LARGE_MEMORY_EXHAUSTED from newly merged code

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Merge branch 'candidate-4.2.8' into closedown-4.2.x

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Split off candidate-4.2.10

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Merge branch 'closedown-4.2.x' into closedown-5.0.x

Conflicts:
	version.cmake

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Merge remote-tracking branch 'origin/closedown-5.0.x'

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>