-
Notifications
You must be signed in to change notification settings - Fork 428
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
Introduced timeouts for MSAL calls. #2562
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
machavan
requested review from
lilgreenbird,
tkyc,
David-Engel,
divang and
codewatchzen
December 12, 2024 07:24
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2562 +/- ##
============================================
+ Coverage 51.03% 51.14% +0.10%
- Complexity 3919 3927 +8
============================================
Files 147 147
Lines 33456 33478 +22
Branches 5604 5609 +5
============================================
+ Hits 17074 17122 +48
+ Misses 13971 13943 -28
- Partials 2411 2413 +2 ☔ View full report in Codecov by Sentry. |
src/test/java/com/microsoft/sqlserver/jdbc/SQLServerConnectionTest.java
Outdated
Show resolved
Hide resolved
src/test/java/com/microsoft/sqlserver/jdbc/SQLServerConnectionTest.java
Outdated
Show resolved
Hide resolved
src/test/java/com/microsoft/sqlserver/jdbc/SQLServerConnectionTest.java
Outdated
Show resolved
Hide resolved
Gueorgi
reviewed
Dec 16, 2024
Gueorgi
reviewed
Dec 16, 2024
- Added more tests - Improved test to check for specific error message
- Replaced lock with tryLock to avoid potential long waiting for other threads while one thread is taking long to complete.
001mertiya
reviewed
Dec 18, 2024
src/main/java/com/microsoft/sqlserver/jdbc/SQLServerMSAL4JUtils.java
Outdated
Show resolved
Hide resolved
- Added detailed comment for the usage of semaphore.
lilgreenbird
reviewed
Jan 7, 2025
src/main/java/com/microsoft/sqlserver/jdbc/SQLServerMSAL4JUtils.java
Outdated
Show resolved
Hide resolved
divang
reviewed
Jan 7, 2025
saurabh500
reviewed
Jan 7, 2025
saurabh500
reviewed
Jan 8, 2025
saurabh500
reviewed
Jan 8, 2025
src/main/java/com/microsoft/sqlserver/jdbc/SQLServerMSAL4JUtils.java
Outdated
Show resolved
Hide resolved
saurabh500
reviewed
Jan 8, 2025
saurabh500
approved these changes
Jan 8, 2025
divang
previously approved these changes
Jan 8, 2025
imasud00
reviewed
Jan 8, 2025
imasud00
reviewed
Jan 8, 2025
divang
previously approved these changes
Jan 13, 2025
tkyc
approved these changes
Jan 13, 2025
David-Engel
approved these changes
Jan 13, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description:
Calls to MSAL authentication library done from the Java driver code use future.get(), potentially leading to hangs in case the library does not receive timely response from the server. All these calls done as part of getFedAuthToken need to have timeouts imposed. The timeout period is calculated based on remaining time wrt login timeout, and passed to future.get(, ) calls with this fix.
Tests: