-
Notifications
You must be signed in to change notification settings - Fork 73
Periodically send empty report to detect rollout changes #769
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -305,6 +305,16 @@ Status Aggregated::Close() { | |
| return Status::OK; | ||
| } | ||
|
|
||
| void Aggregated::SendEmptyReport() { | ||
| ReportRequest request; | ||
| ReportResponse* response = new ReportResponse; | ||
| Call(request, response, | ||
| [this, response](const ::google::protobuf::util::Status&) { | ||
| delete response; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm confused: Where does ESP read the latest rollout ID from the
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just using the existing code to process the Check/Report response. It is in the HandleRespones() function.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This change only adds timer to trigger a dummy Report calls in every minutes. The existing code will handle the rest: on every check/response code it will check rollout id, then it set to a callback function which is intercepted by config_manager. |
||
| }, | ||
| nullptr); | ||
| } | ||
|
|
||
| Status Aggregated::Report(const ReportRequestInfo& info) { | ||
| if (!client_) { | ||
| return Status(Code::INTERNAL, "Missing service control client"); | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.