[RTFACT-17637] Artifactory is filling the log with useless messages when Xray is down Created: 16/Oct/18  Updated: 17/Sep/20

Status: Open
Project: Artifactory Binary Repository
Component/s: Xray
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: High
Reporter: Gintas Grigelionis Assignee: Unassigned
Resolution: Unresolved Votes: 2
Labels: PB_Done


When Xray is down, pings to /api/v1/system/ping are answered with

 <title>503 Service Unavailable</title>
 <h1>Service Unavailable</h1>
 <p>The server is temporarily unable to service your
 request due to maintenance downtime or capacity
 problems. Please try again later.</p>

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?

Generated at Tue Sep 22 17:49:42 UTC 2020 using Jira 8.5.3#805003-sha1:b4933e02eaff29a49114274fe59e1f99d9d963d7.