Skip to content

Commit 6d0bd4c

Browse files
committed
Fix issue in healthcheck API
1 parent 86f77db commit 6d0bd4c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

components/apimgt/org.wso2.carbon.apimgt.gateway/src/main/java/org/wso2/carbon/apimgt/gateway/internal/DataHolder.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ public void markApisAsUnDeployedInTenant(String tenantDomain) {
235235

236236
private void initializeTenantDeploymentStatusMap() {
237237
try {
238-
List<String> tenants = GatewayUtils.getTenantsToBeDeployed();
238+
Set<String> tenants = GatewayUtils.getTenantsToBeDeployed();
239239
tenantDeployStatus = tenants.stream().collect(Collectors.toMap(str -> str, str -> false));
240240
} catch (APIManagementException e) {
241241
log.error("Error while initializing tenant deployment status map", e);

components/apimgt/org.wso2.carbon.apimgt.gateway/src/main/java/org/wso2/carbon/apimgt/gateway/utils/GatewayUtils.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1741,8 +1741,8 @@ public static String getEagerLoadingEnabledTenantsConfig() {
17411741
*
17421742
* @return List of eager loading enabled tenants
17431743
*/
1744-
public static List<String> getTenantsToBeDeployed() throws APIManagementException {
1745-
List<String> tenantsToBeDeployed = new ArrayList<>();
1744+
public static Set<String> getTenantsToBeDeployed() throws APIManagementException {
1745+
Set<String> tenantsToBeDeployed = new HashSet<>();
17461746
tenantsToBeDeployed.add(APIConstants.SUPER_TENANT_DOMAIN);
17471747

17481748
//Read eager loading config from carbon server config, and extract include and exclude tenant lists

0 commit comments

Comments
 (0)