Stream ids job freeze IN_PROGRESS if query is invalid

Description

Try to start job with invalid query (ex. " ", "invalid Query")
POST: /search/resources/jobs

And then get job status
GET: /search/resources/jobs/{jobId}

Expected Result: Job fails with ERROR status,
Actual Result: Job freeze with IN_PROGRESS status

NOTE
We already catch CQL parse exception and set ERROR status for job,
Log says that module fails during saving job with new ERROR status

CSP Request Details

None

CSP Rejection Details

None

Potential Workaround

None

Attachments

2

Checklist

hide

TestRail: Results

Activity

Show:

Valery_Pilko July 11, 2022 at 7:14 AM

Hi  
I verified this issue at Snapshot env - it looks like it works as expected.
See attached screencast:

Shans Kaluhin July 8, 2022 at 12:49 PM
Edited

Fixed duplicate key value violates unique constraint "resource_ids_job_temp_table_name_key".

But now it's a new error while saving job: 

Done

Details

Assignee

Reporter

Priority

Story Points

Sprint

Development Team

Spitfire

Release

Nolana (R3 2022)

RCA Group

Missing integration/unit test

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created July 6, 2022 at 10:29 AM
Updated July 19, 2022 at 2:05 PM
Resolved July 14, 2022 at 1:06 PM
TestRail: Cases
TestRail: Runs