Rethrow exception in writeData() so that this can be recorded at top level
try {
dataToWrite.foreach(df => writeDataFrameToOpensearch(df, resultIndex, osClient))
} catch {
case t: Throwable =>
throwableHandler.recordThrowable(
s"Failed to write to result index. originalError='${throwableHandler.error}'",
t)
}
Check List
[x] Commits are signed per the DCO using --signoff
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.
Description
Rethrow exception in writeData() so that this can be recorded at top level
Check List
--signoff
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. For more information on following Developer Certificate of Origin and signing off your commits, please check here.