Skip to content

Commit

Permalink
fix xds, append 'xds' cluster to url
Browse files Browse the repository at this point in the history
  • Loading branch information
chickenlj committed Jul 11, 2024
1 parent c4a891c commit 7b0952b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public interface Constants {

Set<String> SUPPORT_MESH_TYPE = new HashSet<String>() {
{
addAll(Arrays.asList("istio"));
addAll(Arrays.asList("xds"));
}
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,8 @@ private void checkInvokerAvailable(long timeout) throws IllegalStateException {
long startTime = System.currentTimeMillis();
long checkDeadline = startTime + timeout;
do {
logger.info("Waiting for service " + getUniqueServiceName() + " to be available..., set 'dubbo.consumer.check=false' to skip check.");
logger.info("Waiting for service " + getUniqueServiceName()
+ " to be available..., set 'dubbo.consumer.check=false' to skip check.");
try {
Thread.sleep(100);
} catch (InterruptedException e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,21 +36,21 @@ public XdsServiceDiscovery(ApplicationModel applicationModel, URL registryURL) {
}

public void doInitialize(URL registryURL) {
try {
exchanger = PilotExchanger.initialize(registryURL);
} catch (Throwable t) {
logger.error(REGISTRY_ERROR_INITIALIZE_XDS, "", "", t.getMessage(), t);
}
try {
exchanger = PilotExchanger.initialize(registryURL);
} catch (Throwable t) {
logger.error(REGISTRY_ERROR_INITIALIZE_XDS, "", "", t.getMessage(), t);
}
}

public void doDestroy() {
try {
if (exchanger == null) {
return;
}
exchanger.destroy();
} catch (Throwable t) {
logger.error(REGISTRY_ERROR_INITIALIZE_XDS, "", "", t.getMessage(), t);
}
try {
if (exchanger == null) {
return;
}
exchanger.destroy();
} catch (Throwable t) {
logger.error(REGISTRY_ERROR_INITIALIZE_XDS, "", "", t.getMessage(), t);
}
}
}

0 comments on commit 7b0952b

Please sign in to comment.