Actual invocations have different arguments:
openSearchUpdater.upsert(
"testSessionId",
"{"state":"running","lastUpdateTime":1718151741998,"applicationId":"testAppId","error":"","sessionId":"testSessionId","excludeJobIds":"","jobStartTime":0,"type":"session"}"
);
What is the bug? REPL handleSessionError does not update error when session exist. Only time gets updated.
https://github.com/opensearch-project/opensearch-spark/blob/main/spark-sql-application/src/main/scala/org/apache/spark/sql/FlintREPL.scala#L434-L454
https://github.com/opensearch-project/opensearch-spark/blob/main/spark-sql-application/src/main/scala/org/apache/spark/sql/FlintREPL.scala#L486-L495
How can one reproduce the bug? Create an unit test case, and verify if the expected exception message passed to update
Test failed
What is the expected behavior?
The error message should be updated.