Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
8.2.0
-
None
-
LnP Prod
Description
On eclagents that have seen a lot of use, we are noticing /var/lib/HPCCSystems/eclagent/temp can be full of old WU subdirs. In this case 10.147.64.204 had 5.4 million subdirs. This causes issues when running hpcc-init status, as it kicks off the following find (seen on line 177):
/opt/HPCCSystems/etc/init.d/pid.sh
174 checkSentinelFile() {
175 FILEPATH="${runtime}/${compName}"
176 if [[ -d ${FILEPATH} ]]; then
177 fileCheckOP=$(find ${FILEPATH} -name "senti")
178 [[ ! -z "${fileCheckOP}" ]] && return 1
179 fi
180 return 0
181 }
Updating line 177 to include -maxdepth 1 makes hpcc-init status resume returning in sub-second speeds.
Additionally, perhaps sasha should be removing the old WU dirs in the eclagent/temp dir?