HPCC-8816 Show 'Delete Query' result and redirect to QuerySet

After a query is deleted using the Delete button on QueryDetails page,
the QueryDetails page becomes invalid which should not be displayed.
This fix redirects the page to Browse Queryset page after the query
has been deleted.

On the Query Details page, a check box is added to indicate the query
is activated or not. The check box is also used for activating and
deactivating the query.

Signed-off-by: Kevin Wang <kevin.wang@lexisnexis.com>
HPCC-8053 Superfile lock contention causing superfile corruption

Add/Remove and Swap file operations that keep the state
(list of subfiles) of the superfiles they deal with, could become
out of date, if they are blocked by other operations that hold
read locks when they try to get exclusive locks to manipulate them

The transaction mechanism temporarily releases locks to avoid
deadlock situations, when if/it regains, it must refresh state.

Signed-off-by: Jake Smith <jake.smith@lexisnexis.com>
HPCC-8850 enhance package validation to check for files that aren't mapped

Package validation should list the files currently in queries in the
queryset that aren't mapped in the packagemap.  In production environments
this will allow operations to make sure all files are mapped by packages.

Also added --pmid to allow existing packagemaps to be revalidated, and
--queryid to allow validation to occur only against a given query in
the queryset.


Signed-off-by: Anthony Fishbeck <Anthony.Fishbeck@lexisnexis.com>
HPCC-9003 Check inside expression attributes for evaluation in thor.

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

HPCC-9003 Check inside expression attributes for evaluation in thor.

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Merge pull request #4127 from jakesmith/hpcc-8053

HPCC-8053 Superfile lock contention causing superfile corruption

Reviewed-By: Gavin Halliday <gavin.halliday@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
HPCC-9000 Variable length record display issues

Records with no maxlength but with records > 16k in size may display garbage
in ECLWatch.

This fix detects such cases and displays an error instead, and at the same
time raises the limit to 64k.

A full fix will require more work.

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Merge pull request #4146 from afishbeck/packageset_validate_supers

HPCC-8850 enhance package validation to check for unmapped files

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Merge pull request #4024 from wangkx/h8816

HPCC-8816 Show 'Delete Query' result and redirect to QuerySet

Reviewed-By: Gavin Halliday <gavin.halliday@lexisnexis.com>
Reviewed-By: Gordon Smith <gordon.smith@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Merge pull request #4153 from richardkchapman/file-display-large

HPCC-9000 Variable length record display issues

Reviewed-by: Gavin Halliday <ghalliday@hpccsystems.com>
HPCC-8955 Document changes to "packagemap validate"

Signed-off-by: JamesDeFabia <James.Defabia@LexisNexis.com>
HPCC-9029 Roxie can core if write to file when no workunit

A Roxie query that writes to a file can core while trying to publish the fine
info, if there is no workunit available (e.g. the query was received via a
socket)

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
HPCC-9028 Roxie not handling OPT flag correctly on dynamically-resolved files

If OPT is specified on a dynamically-resolved file in Roxie, then it is liable
to core if the file cannot be resolved.

Other cases may incorrectly throw an exception when a file is not resolved,
rather than ignoring it as should be done with ,OPT files.

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Merge pull request #4158 from JamesDeFabia/DocumentChanges_to_packagemap_validate8955

HPCC-8955 Document changes to "packagemap validate"

Reviewed-By: Anthony Fishbeck <anthony.fishbeck@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
HPCC-9027 Roxie file handle errors

Roxie cache of ILazyFileIo objects had a race condition (was not linking
before checking isAlive()).

Also, the counter of how many files were active was not being properly
maintained, resulting in too many calls to the function to release inactive
files.

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Merge pull request #4160 from richardkchapman/roxie-dynamic-opt

HPCC-9028 Roxie not handling OPT flag correctly on dynamically-resolved ...

Reviewed-by: Gavin Halliday <ghalliday@hpccsystems.com>
Merge pull request #4161 from richardkchapman/roxie-write-core

HPCC-9029 Roxie can core if write to file when no workunit

Reviewed-by: Gavin Halliday <ghalliday@hpccsystems.com>
Merge pull request #4159 from richardkchapman/roxie-file-race

HPCC-9027 Roxie file handle errors

Reviewed-by: Gavin Halliday <ghalliday@hpccsystems.com>
HPCC-9021 Non-locking mode for single-node / dev roxies

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Merge pull request #4156 from richardkchapman/roxie-dynamic

HPCC-9021 Non-locking mode for single-node / dev roxies

Reviewed-by: Gavin Halliday <ghalliday@hpccsystems.com>