[RTFACT-17637] Artifactory is filling the log with useless messages when Xray is down Created: 16/Oct/18 Updated: 26/Nov/19
|Project:||Artifactory Binary Repository|
When Xray is down, pings to /api/v1/system/ping are answered with
and Artifactory fills the logs with
2018-10-15 10:27:40,270 [pool-31-thread-1] [WARN ] (o.j.x.c.h.XrayHeartbeatImpl:173) - Cannot retrieve xray server status due to: Failed to parse Xray Error message: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null') at [Source: (org.apache.http.conn.EofSensorInputStream); line: 1, column: 2]
which can lead to DOS when logging to disk. Artifactory should be better at interpreting the state Xray is in and perhaps log only when ping stops working and starts working again? Alternatively, repetitive messages could be accumulated a la syslog?