raft-tech / TANF-app

Repo for development of a new TANF Data Reporting System
Other
16 stars 3 forks source link

Service timeout blocks parsing completion #3055

Open andrew-jameson opened 3 days ago

andrew-jameson commented 3 days ago

Thank you for taking the time to let us know about the issue you found. The basic rule for bug reporting is that something isn't working the way one would expect it to work. Please provide us with the information requested below and we will look at it as soon as we are able.

Description

Backend did not gracefully handle a connection failure for the elasticsearch service resulting in erroneous status handling.

Action Taken

Data submissions were stuck pending since mid-afternoon.

What I expected to see

Successful upload and parsing of these data files.

What I did see

Bad request, parsing error failures in logs.

Other Helpful Information

Relevant bulk_create line where this uncaught exception happened.

Proxy app:

15:06:41.924: [APP/PROC/WEB.0] time="2024-28-06 19:06:41" level=error msg="Get \"https://vpc-cg-broker-prd-h9a8o3te0-c23nqypoz4ffhymqwsqeryebpu.us-gov-west-1.es.amazonaws.com/_nodes?filter_path=nodes.%2A.version%2Cnodes.%2A.http.publish_address%2Cnodes.%2A.ip\": context deadline exceeded (Client.Timeout exceeded while awaiting 
headers)"

Kibana app:

{"type":"log","@timestamp":"2024-06-28T19:49:11Z","tags":["status","plugin:elasticsearch@7.4.2","error"],"pid":36,"state":"red","message":"Status changed from green to red - Bad Request","prevState":"green","prevMsg":"Ready"}
15:49:35.918: [APP/PROC/WEB.0] {"type":"log","@timestamp":"2024-06-28T19:49:35Z","tags":["status","plugin:elasticsearch@7.4.2","info"],"pid":36,"state":"green","message":"Status changed from red to green - Ready","prevState":"red","prevMsg":"Bad Request"}
oh and this: 5:43:45.931: [APP/PROC/WEB.0] {"type":"log","@timestamp":"2024-06-28T19:43:45Z","tags":["status","plugin:elasticsearch@7.4.2","info"],"pid":36,"state":"green","message":"Status changed from red to green - Ready","prevState":"red","prevMsg":"Service Unavailable"}