Skip to content

Commit

Permalink
If QuotaControl service is not available, return utils::Status::OK (#113
Browse files Browse the repository at this point in the history
)

* If QuotaControl service is not available, return utils::Status::OK

* Updated comment
  • Loading branch information
mangchiandjjoe authored Feb 22, 2017
1 parent a27749c commit 5b25d57
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion contrib/endpoints/src/api_manager/quota_control.cc
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ void QuotaControl(std::shared_ptr<context::RequestContext> context,
TRACE(trace_span) << "Quota service control request returned with "
<< "status " << status.ToString();

continuation(status);
// quota control is using "failed open" policy. If the server is not
// available, allow the request to go.
continuation((status.code() == Code::UNAVAILABLE) ? utils::Status::OK
: status);
});
}

Expand Down

0 comments on commit 5b25d57

Please sign in to comment.