-
Notifications
You must be signed in to change notification settings - Fork 152
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
SharePoint Online Connector: Added credentials.close() call to _fetch_token() method #3177
Conversation
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.
LGTM! Just double checking: did you manage to reproduce the bug and verify that it fixes it locally?
@jedrazb yup, I was! Artem helped me repro the bug when I couldn't figure it out, there is a slack thread here --> https://elastic.slack.com/archives/C01795T48LQ/p1738351743527109 |
…_token() method (#3177)
…_fetch_token() method (#3177) (#3179) Co-authored-by: Matt Nowzari <[email protected]>
@mattnowzari I think this should be backported farther than 9.0, original PR was backported up to 8.16.x: #3064 |
@artem-shelkovnikov sounds good! Was not aware of the original PR and how far it had been backported, will backport to every version #3064 was ported to |
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation |
Closes https://github.com/elastic/search-team/issues/9195
This fixes an issue where
Unclosed client session
andUnclosed connector
messages were appearing in logs.RCA:
aiohttp does not close its sessions, so when we create an Azure CertificateCredential, we need to manually call
.close()
on it, otherwise the client sessions will remain open.See this Azure Python SDK thread for details.
Checklists
Pre-Review Checklist
config.yml.example
)v7.13.2
,v7.14.0
,v8.0.0
)