Merge branch 'candidate-3.8.x' into candidate-3.8.0

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Community Edition 3.8.0 Release Candidate 3

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Fix gh-2478 wrong order of machines in preflight page

The machines in the preflight page should display in a
correct order. On a default one-node system, looking at
the thor cluster preflight page, the position in the
list of the thor slave and master seems to swap every
time when the page is updated. Two problems have been
found: 1. the machine list inside the preflight request
does not asks for the list to be processed in an order;
2. the preflight code uses a map to store the machine
list and the map re-orders the machines. Those problems
have been fixed now.

Signed-off-by: Kevin Wang <kevin.wang@lexisnexis.com>
Merge remote-tracking branch 'origin/candidate-3.8.x' into candidate-3.8.0

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Community Edition 3.8.0 Release Candidate 4

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Change multimap to BoolHash and set the BoolHash using
Network Address, process name, process type and process
number which define unique preflight request for system
component.

Signed-off-by: Kevin Wang <kevin.wang@lexisnexis.com>
Compress query init and trace timing

The query shared object serialized to the slaves, was uncompressed. If large
it can take a little time, so worth compressing

Signed-off-by: Jake Smith <jake.smith@lexisnexis.com>
#2568 restructure ECL record definition parsing mechanism.
Include all optional modifiers per record field definition.

Signed-off-by: Rodrigo Pastrana <Rodrigo.Pastrana@lexisnexis.com>
#2568 changes based on code review
- removed superfluous trim call
- spelling changes

Signed-off-by: Rodrigo Pastrana <Rodrigo.Pastrana@lexisnexis.com>
Fix gh-2202 Incorrect output from xml output(row)

Added a new workunit method setResultRow() which saves a row and
sets the row count to 1. Call this new method from setResultRaw, which
is called by the workunit shared object to save a row. This fixes the
missing XML output because it now sets a row count, which is needed
by the xml writer

Signed-off-by: William Whitehead <william.whitehead@lexisnexis.com>
Merge remote-tracking branch 'upstream/candidate-3.8.x' into candidate-3.8.0

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Community Edition Release Candidate 5

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Fix potential use of NULL pointer in printf %s

Import $.x from an ecl file submitted to eclcc could use NULL as the module
name in the error text (see example).  It could only happen if $ was the
module (otherwise it would have matched a name), so use "$" instead.

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Fix dllsToSlaves option

If the Thor configuration option dllsToSlaves was switched off (default on),
slaves failed to load the query from master.

Signed-off-by: Jake Smith <jake.smith@lexisnexis.com>
Improve Context Menu UI.

- Prevent multiple context menus from being open
- Close context menu when clicking on empty space on screen

Signed-off-by: Gleb Aronsky <gleb.aronsky@lexisnexis.com>
fixes gh-1633 modified Installing_and_RunningTheHPCCPlatform.xml
Fix ESP cores when WU ID not found

For several operations, ESP cores when WU ID is not found
by openWorkUnit(). The openWorkUnit() returns a NULL
pointer if Workunit ID cannot be found. ESP/WsWorkunits
should check the return of openWorkUnit() before using it.

Signed-off-by: Kevin Wang <kevin.wang@lexisnexis.com>
fixes gh-2596 added support for creation of md5sum from file.

added md5_filesum in order to support md5sum creation from a file.

Signed-off-by: Philip Schwartz <philip.schwartz@lexisnexis.com>
Add options to 'ecl run' for setting debug and stored variables

New options -deb.<name>=<value> and -var.<name>=<value>.

-deb.<name>=<value> can be used to set workunit debug values.
-var.<name>=<value> can be used to set input (stored) variables.

example:
ecl run add.ecl -cl=hthor -var.n1=11 -var.n2=22 -dbg.maxruntime=1000

Signed-off-by: Anthony Fishbeck <Anthony.Fishbeck@lexisnexis.com>
fixes gh-2596 added support for creation of md5sum from file.

added md5_filesum in order to support md5sum creation from a file.

Signed-off-by: Philip Schwartz <philip.schwartz@lexisnexis.com>