From 6ca6c87fa69fad131ceaaa979d9d82f36952bd29 Mon Sep 17 00:00:00 2001 From: Suman Das <59254445+sumandas0@users.noreply.github.com> Date: Mon, 5 Feb 2024 22:42:20 +0530 Subject: [PATCH] revert: PLT-541: make redis client singleton --- .../org/apache/atlas/service/redis/AbstractRedisService.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/common/src/main/java/org/apache/atlas/service/redis/AbstractRedisService.java b/common/src/main/java/org/apache/atlas/service/redis/AbstractRedisService.java index efa94b867a..62274d8cb1 100644 --- a/common/src/main/java/org/apache/atlas/service/redis/AbstractRedisService.java +++ b/common/src/main/java/org/apache/atlas/service/redis/AbstractRedisService.java @@ -98,11 +98,6 @@ Config getProdConfig() throws AtlasException { config.useSentinelServers() .setReadMode(ReadMode.MASTER_SLAVE) .setCheckSentinelsList(false) - .setKeepAlive(true) - .setMasterConnectionMinimumIdleSize(10) - .setMasterConnectionPoolSize(20) - .setSlaveConnectionMinimumIdleSize(10) - .setSlaveConnectionPoolSize(20) .setMasterName(atlasConfig.getString(ATLAS_REDIS_MASTER_NAME)) .addSentinelAddress(formatUrls(atlasConfig.getStringArray(ATLAS_REDIS_SENTINEL_URLS))) .setUsername(atlasConfig.getString(ATLAS_REDIS_USERNAME))