Skip to content

Commit 8c3c626

Browse files
committed
fix: when server is down, request needs to be handled properly.
1 parent 2d65ad3 commit 8c3c626

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

polaris-plugins/polaris-plugins-connector/connector-composite/src/main/java/com/tencent/polaris/plugins/connector/composite/CompositeServiceUpdateTask.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,11 @@ public void execute() {
126126
|| serviceEventKey.getEventType().equals(EventType.BLOCK_ALLOW_RULE)))) {
127127
return;
128128
}
129+
// when the connector type is grpc, do not notify empty event
130+
if (StringUtils.equals(mainConnectorType, SERVER_CONNECTOR_GRPC)) {
131+
return;
132+
}
133+
129134
boolean svcDeleted = this.notifyServerEvent(
130135
new ServerEvent(serviceEventKey, DiscoverResponse.newBuilder().build(), null));
131136
if (!svcDeleted) {

0 commit comments

Comments
 (0)