Skip to content

Commit 36465e0

Browse files
committed
Merge remote-tracking branch 'origin/master' into python_google_default_creds
2 parents 2b4b484 + d73bf4a commit 36465e0

File tree

14 files changed

+229
-33
lines changed

14 files changed

+229
-33
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name: Report a bug
33
about: Create a report to help us improve
44
labels: kind/bug, priority/P2
5-
assignees: veblush
5+
assignees: karthikravis
66

77
---
88

.github/ISSUE_TEMPLATE/cleanup_request.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name: Request a cleanup
33
about: Suggest a cleanup in our repository
44
labels: kind/internal cleanup, priority/P2
5-
assignees: veblush
5+
assignees: karthikravis
66

77
---
88

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name: Request a feature
33
about: Suggest an idea for this project
44
labels: kind/enhancement, priority/P2
5-
assignees: veblush
5+
assignees: karthikravis
66

77
---
88

.github/ISSUE_TEMPLATE/question.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name: Ask a question
33
about: Ask a question
44
labels: kind/question, priority/P3
5-
assignees: veblush
5+
assignees: karthikravis
66

77
---
88

.github/change_repo_manager.sh

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
#!/bin/bash
2+
#
3+
# Copyright 2020 The gRPC authors.
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
17+
set -e
18+
19+
if [ $# -lt 1 ];then
20+
echo "Usage: $0 github-id"
21+
exit 1
22+
fi
23+
24+
echo "Change a repo manager to $0"
25+
26+
BASE_PATH=$(dirname $0)
27+
28+
for file in bug_report.md cleanup_request.md feature_request.md question.md
29+
do
30+
sed -i -E "s/assignees: ([a-zA-Z0-9-]+)/assignees: $1/" $BASE_PATH/ISSUE_TEMPLATE/$file
31+
done
32+
33+
sed -i -E "s/^@([a-zA-Z0-9-]+)/@$1/" $BASE_PATH/pull_request_template.md
34+
35+
echo "Done"

.github/pull_request_template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ If you know who should review your pull request, please remove the mentioning be
88
99
-->
1010

11-
@veblush
11+
@karthikravis

src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver_windows.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,11 @@ class GrpcPolledFdWindows {
102102
GrpcPolledFdWindows(ares_socket_t as,
103103
std::shared_ptr<WorkSerializer> work_serializer,
104104
int address_family, int socket_type)
105-
: name_(absl::StrFormat("c-ares socket: %" PRIdPTR, as)),
106-
work_serializer_(std::move(work_serializer)),
105+
: work_serializer_(std::move(work_serializer)),
107106
read_buf_(grpc_empty_slice()),
108107
write_buf_(grpc_empty_slice()),
109108
tcp_write_state_(WRITE_IDLE),
109+
name_(absl::StrFormat("c-ares socket: %" PRIdPTR, as)),
110110
gotten_into_driver_list_(false),
111111
address_family_(address_family),
112112
socket_type_(socket_type) {

src/core/ext/filters/client_channel/resolver/xds/xds_resolver.cc

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,6 @@ void XdsResolver::StartLocked() {
144144

145145
class XdsResolverFactory : public ResolverFactory {
146146
public:
147-
explicit XdsResolverFactory(const char* scheme) : scheme_(scheme) {}
148-
149147
bool IsValidUri(const grpc_uri* uri) const override {
150148
if (GPR_UNLIKELY(0 != strcmp(uri->authority, ""))) {
151149
gpr_log(GPR_ERROR, "URI authority not supported");
@@ -159,26 +157,16 @@ class XdsResolverFactory : public ResolverFactory {
159157
return MakeOrphanable<XdsResolver>(std::move(args));
160158
}
161159

162-
const char* scheme() const override { return scheme_; }
163-
164-
private:
165-
const char* scheme_;
160+
const char* scheme() const override { return "xds"; }
166161
};
167162

168-
constexpr char kXdsScheme[] = "xds";
169-
constexpr char kXdsExperimentalScheme[] = "xds-experimental";
170-
171163
} // namespace
172164

173165
} // namespace grpc_core
174166

175167
void grpc_resolver_xds_init() {
176168
grpc_core::ResolverRegistry::Builder::RegisterResolverFactory(
177-
absl::make_unique<grpc_core::XdsResolverFactory>(grpc_core::kXdsScheme));
178-
// TODO(roth): Remov this in the 1.31 release.
179-
grpc_core::ResolverRegistry::Builder::RegisterResolverFactory(
180-
absl::make_unique<grpc_core::XdsResolverFactory>(
181-
grpc_core::kXdsExperimentalScheme));
169+
absl::make_unique<grpc_core::XdsResolverFactory>());
182170
}
183171

184172
void grpc_resolver_xds_shutdown() {}

src/core/lib/surface/server.cc

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1600,13 +1600,6 @@ void grpc_server_shutdown_and_notify(grpc_server* server,
16001600

16011601
channel_broadcaster_shutdown(&broadcaster, true /* send_goaway */,
16021602
GRPC_ERROR_NONE);
1603-
1604-
if (server->default_resource_user != nullptr) {
1605-
grpc_resource_quota_unref(
1606-
grpc_resource_user_quota(server->default_resource_user));
1607-
grpc_resource_user_shutdown(server->default_resource_user);
1608-
grpc_resource_user_unref(server->default_resource_user);
1609-
}
16101603
}
16111604

16121605
void grpc_server_cancel_all_calls(grpc_server* server) {
@@ -1637,6 +1630,12 @@ void grpc_server_destroy(grpc_server* server) {
16371630
GPR_ASSERT(server->listeners_destroyed == server->listeners.size());
16381631
gpr_mu_unlock(&server->mu_global);
16391632

1633+
if (server->default_resource_user != nullptr) {
1634+
grpc_resource_quota_unref(
1635+
grpc_resource_user_quota(server->default_resource_user));
1636+
grpc_resource_user_shutdown(server->default_resource_user);
1637+
grpc_resource_user_unref(server->default_resource_user);
1638+
}
16401639
server_unref(server);
16411640
}
16421641

0 commit comments

Comments
 (0)