Two problems found at NCI - we called a function that used the full pbs timeout in a retry loop; instead the function that is retried now waits for timeout / number of retries so that the moms can't get jammed for hours. Also, make sure that DIS_reply_read() isn't called infinitely, even on retry-able errors. Add a max and make sure errno is cleared before calling.
Merge branch '4.2.2' of https://github.com/adaptivecomputing/torque into 4.2.2
TRQ-1660. nppn wasn't being passed to alps reservations because a parameter was being mixed up in the alps request. mppwidth and use_nppn were getting switched, so things weren't working.
Added a check to contact MOM nodes if they have not contacted the server
in a timely manner. The new function check_node connects to the
absent mom on the mom port 15002. If the connection succeeds we
do not mark the node down. TRQ-1761
TRQ-1738. Fix an error in counting job states for queues. Previously, the completed jobs got their own field, a duplicate of the array of all job states. Remove the extra field and just use the array, which is more robustly developed.
Merge branch '4.2.2' of https://github.com/adaptivecomputing/torque into 4.2.2
TRQ-1764. Fix a crash in the code for re-sending job obits. Instead of saving pointers and never updating the structure, we're going to save job ids and use those to retrieve the pointers. This protects against the job being otherwise freed.
Merge branch '4.2.2' of https://github.com/adaptivecomputing/torque into 4.2.2
TRQ--1734 Not checking for NULLs causing a crash.
Fixed broken unit tests. Also made it so we cannot
decrement user queued below 0
Merge branch '4.2.2' of https://github.com/adaptivecomputing/torque into 4.2.2
Fix some inefficiencies in the code that processes and stores node ip addresses. It used to be that an insert was an N^N algorithm, now it is a log(N) algorithm as it should be with an AVL tree. Internally, this dropped our start up time on 4000 nodes (multimom nodes) from > 45 minutes to ~5 minutes.
TRQ-1759 if a non mother superior calls exec_bail, don't send out to all sisters, just send an ABORT to the mother superior. - porting this fix to 4.2.2
We were not handling error cases for queued jobs when the
max_user_queuable was set. When a job is now purged because of
an error the user queue is now decremented for the user. TRQ-1494
Merge branch '4.2.2' of https://github.com/adaptivecomputing/torque into 4.2.2
Merge branch 'master' into 4.2.2

Conflicts:
	src/server/req_delete.c
	src/server/req_deletearray.c
Merge branch 'master' of https://github.com/adaptivecomputing/torque