Skip to content
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

[Backport 2.x] Validate session with flint datasource passed in async job request #2450

Merged
merged 1 commit into from
Dec 6, 2023

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport 0176525 from #2448.

…2448)

* Validate session with flint datasource passed in async job request

Currently, if there's a session running with Datasource1 and the user makes a request to the async API with the same session but a different catalog Datasource2 then SQL plugin doesn't return a new session for Datasource2. This PR creates a new session when there’s a mismatch between datasource and session_id.

Testing done:
1. manual testing
2. added IT.

Signed-off-by: Kaituo Li <kaituo@amazon.com>

* address comments

Signed-off-by: Kaituo Li <kaituo@amazon.com>

* add doc

Signed-off-by: Kaituo Li <kaituo@amazon.com>

---------

Signed-off-by: Kaituo Li <kaituo@amazon.com>
(cherry picked from commit 0176525)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Copy link

codecov bot commented Dec 6, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (4a1d7a3) 95.45% compared to head (adc81b6) 95.46%.

Additional details and impacted files
@@            Coverage Diff            @@
##                2.x    #2450   +/-   ##
=========================================
  Coverage     95.45%   95.46%           
- Complexity     5029     5037    +8     
=========================================
  Files           479      480    +1     
  Lines         14084    14106   +22     
  Branches        936      940    +4     
=========================================
+ Hits          13444    13466   +22     
  Misses          618      618           
  Partials         22       22           
Flag Coverage Δ
sql-engine 95.46% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@penghuo penghuo merged commit 0f5b5ef into 2.x Dec 6, 2023
26 of 30 checks passed
@github-actions github-actions bot deleted the backport/backport-2448-to-2.x branch December 6, 2023 23:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants