Remove Logging from the LibcurlConnectionPool - cleaning routine#3219
Remove Logging from the LibcurlConnectionPool - cleaning routine#3219vhvb1989 merged 15 commits intoAzure:mainfrom
Conversation
|
/azp run cpp - storage |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run cpp - storage |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
Can we just have the logger no-op if it has been cleaned up? |
Correct me if I am mistaken or misunderstood (which is possible), @vhvb1989, but I think it's the global/static logger instance itself that is getting cleaned-up already while Cleanup is running. So, not sure @JeffreyRichter how we can have it do no-op, since the issue doesn't seem to be at a point after the |
|
@JeffreyRichter, I don't think there is a reliable way for the logger to know it has been cleaned up. It should already be taken care of, because mutex object does have the destructor, but we end up referencing it after it has been destroyed, so it is in an unpredictable state. Suppose we even have a destructor for the logger, and for the console logger. They could potentially have an |
|
@CaseyCarter, could something like this work? - #3231 |
|
@ahsonkhan @antkmsft please approve if you don't have more requests for this |
@antkmsft , so, even if it works, would it be worth it? |
|
|
||
| - Fixed issue [3224](https://github.com/Azure/azure-sdk-for-cpp/issues/3224) on MacOS crashing application when azure logs are turned on. |
There was a problem hiding this comment.
nit: remove the new line
| - Fixed issue [3224](https://github.com/Azure/azure-sdk-for-cpp/issues/3224) on MacOS crashing application when azure logs are turned on. | |
| - Fixed issue [3224](https://github.com/Azure/azure-sdk-for-cpp/issues/3224) on MacOS crashing application when azure logs are turned on. |
|
|
||
| - Fixed `Azure::DateTime::Parse()` validation if the result is going to exceed `9999-12-31T23:59:59.9999999` due to time zone, leap second, or fractional digits rounding up adjustments. | ||
|
|
||
| - Fixed issue [3224](https://github.com/Azure/azure-sdk-for-cpp/issues/3224) on MacOS crashing application when azure logs are turned on. |
There was a problem hiding this comment.
The wording of this changelog is a bit awkward to parse and read. Could we create the link to the issue like we do in Embedded C, where the issue is in the beginning?
https://github.com/Azure/azure-sdk-for-c/blob/main/CHANGELOG.md#bugs-fixed
And then we could write it something like the following:
[[3224]] Fixed intermittent crash on MacOS when logging is turned on.
ahsonkhan
left a comment
There was a problem hiding this comment.
Other than word-smithing the change log a little bit and removing the extra new line, looks good.
antkmsft
left a comment
There was a problem hiding this comment.
Branding in changelog:
- MacOS => macOS.
- Capitalize Azure (but better do not use it, use the wording that Ahson suggested).
antkmsft
left a comment
There was a problem hiding this comment.
Sorry if I kept you from submitting, I did not realize. I've tried a workaround (#3231) a few days ago, and it did not work. Your change is good, just please take the suggestions for Changelog.
It is ok to not log there, it is pretty reasonable that static objects can't do certain things during destruction (i.e. talking to other static objects that may have been already destroyed).
Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com>
|
This pull request is protected by Check Enforcer. What is Check Enforcer?Check Enforcer helps ensure all pull requests are covered by at least one check-run (typically an Azure Pipeline). When all check-runs associated with this pull request pass then Check Enforcer itself will pass. Why am I getting this message?You are getting this message because Check Enforcer did not detect any check-runs being associated with this pull request within five minutes. This may indicate that your pull request is not covered by any pipelines and so Check Enforcer is correctly blocking the pull request being merged. What should I do now?If the check-enforcer check-run is not passing and all other check-runs associated with this PR are passing (excluding license-cla) then you could try telling Check Enforcer to evaluate your pull request again. You can do this by adding a comment to this pull request as follows: What if I am onboarding a new service?Often, new services do not have validation pipelines associated with them, in order to bootstrap pipelines for a new service, you can issue the following command as a pull request comment: |
|
|
||
| - [[#3224]](https://github.com/Azure/azure-sdk-for-cpp/issues/3224) Fixed intermittent crash on macOS when logging is turned on. |
There was a problem hiding this comment.
Missed removing that extra new line between the list of changes within the changelog:
| - [[#3224]](https://github.com/Azure/azure-sdk-for-cpp/issues/3224) Fixed intermittent crash on macOS when logging is turned on. | |
| - [[#3224]](https://github.com/Azure/azure-sdk-for-cpp/issues/3224) Fixed intermittent crash on macOS when logging is turned on. |
fix: #3224