-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optimize prepareStatementExecution request freq #828
Optimize prepareStatementExecution request freq #828
Conversation
Signed-off-by: Louis Chu <[email protected]>
Signed-off-by: Louis Chu <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to reproduce the issue in UT or IT and verify the fix?
spark-sql-application/src/main/scala/org/apache/spark/sql/StatementExecutionManagerImpl.scala
Show resolved
Hide resolved
There's UT in https://github.com/opensearch-project/opensearch-spark/pull/828/files#diff-19a51bd4a67b635f750a1f694cf276cd220c549fa48f80e1018782b64d32ec61, are you expect something different? |
I mean is there UT to cover this case? The existing UT passed even if there was infinity loop bug right? |
The existing UT expect prepareStatementExecution running k times, and we changed it to be one here |
* Optimize prepareStatementExecution request freq Signed-off-by: Louis Chu <[email protected]> * Add UT Signed-off-by: Louis Chu <[email protected]> --------- Signed-off-by: Louis Chu <[email protected]> (cherry picked from commit a2a9838) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Optimize prepareStatementExecution request freq Signed-off-by: Louis Chu <[email protected]> * Add UT Signed-off-by: Louis Chu <[email protected]> --------- Signed-off-by: Louis Chu <[email protected]> (cherry picked from commit a2a9838) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Optimize prepareStatementExecution request freq * Add UT --------- (cherry picked from commit a2a9838) Signed-off-by: Louis Chu <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Optimize prepareStatementExecution request freq * Add UT --------- (cherry picked from commit a2a9838) Signed-off-by: Louis Chu <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Optimize prepareStatementExecution request freq Signed-off-by: Louis Chu <[email protected]> * Add UT Signed-off-by: Louis Chu <[email protected]> --------- Signed-off-by: Louis Chu <[email protected]>
Description
Optimize prepareStatementExecution request freq.
Before the change:
After the change:
Also tested on EMR to verify number of times.
Related Issues
#804
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.