Skip to content

Commit 65fb32b

Browse files
committed
for test
1 parent 8d4196d commit 65fb32b

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

foundations/foundation-registry/src/main/java/org/apache/servicecomb/registry/consumer/MicroserviceVersions.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,13 @@ public VendorExtensions getVendorExtensions() {
167167
public void pullInstances() {
168168
lastPullTime = System.currentTimeMillis();
169169
MicroserviceInstances microserviceInstances = findServiceInstances();
170+
if (microserviceInstances == null || microserviceInstances.getInstancesResponse() == null
171+
|| microserviceInstances.getInstancesResponse().getInstances().isEmpty()) {
172+
LOGGER.info("=======================> findServiceInstances is empty");
173+
} else {
174+
LOGGER.info("pulledInstances =======================>" +
175+
microserviceInstances.getInstancesResponse().getInstances().get(0).toString());
176+
}
170177
lastPulledResult = microserviceInstances;
171178
if (microserviceInstances == null) {
172179
// pulled failed, did not get anything

foundations/foundation-registry/src/main/java/org/apache/servicecomb/registry/discovery/DiscoveryTree.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public DiscoveryTreeNode discovery(DiscoveryContext context, String appId, Strin
134134
VersionedCache instanceVersionedCache = DiscoveryManager.INSTANCE
135135
.getInstanceCacheManager()
136136
.getOrCreateVersionedCache(appId, microserviceName, versionRule);
137-
LOGGER.info("======================================>" + instanceVersionedCache.data().toString());
137+
138138
return discovery(context, instanceVersionedCache);
139139
}
140140

0 commit comments

Comments
 (0)