-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Authorization refresh fix #17609
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
Authorization refresh fix #17609
Conversation
|
/azp run net - servicebus - tests |
|
Azure Pipelines successfully started running 1 pipeline(s). |
| string identifier) | ||
| { | ||
| string uri = endpoint.AbsoluteUri; | ||
| ServiceBusEventSource.Log.RequestAuthorizationStart(identifier, uri); |
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.
This seems redundant to the existing AmqpLinkAuthorizationRefresh series (line 865). Am I overlooking something?
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.
The difference is that the refresh event is only logged on refreshes, whereas the new logs are written on every request (including the initial one). The new event is also verbose as opposed to Informational.
| } | ||
|
|
||
| [Event(RequestAuthorizationStartEvent, Level = EventLevel.Verbose, Message = "{0}: Requesting authorization to {1}")] | ||
| public virtual void RequestAuthorizationStart(string identifier, string endpoint) |
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.
I may be overlooking, but I'm not sure from usage how these differ from the AmqpLinkAuthorizationRefresh series (ids 39-41). Should we consider merging them?
| # and the execution of the live tests. This allows RBAC to replicate and avoids flakiness in the first set | ||
| # of live tests that might otherwise start running before RBAC has replicated. | ||
|
|
||
| param ( |
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.
Nice. I'm going to steal this after it merges...
* save * Authorization refresh fix * Undo inadvertent changes
Uh oh!
There was an error while loading. Please reload this page.