Showing
1 changed file
with
14 additions
and
0 deletions
@@ -71,7 +71,13 @@ public class OneJob implements Callable { | @@ -71,7 +71,13 @@ public class OneJob implements Callable { | ||
71 | 71 | ||
72 | protected void fecthJedis() { | 72 | protected void fecthJedis() { |
73 | JedisPool jedisPool = JEDIS_POOL_MAP.get(jedisUrl); | 73 | JedisPool jedisPool = JEDIS_POOL_MAP.get(jedisUrl); |
74 | + if(jedisUrl.indexOf("172.31.16.99")>=0){ | ||
75 | + DEBUG.error("begin fetch redis url {} ",jedisUrl); | ||
76 | + } | ||
74 | if (null == jedisPool) { | 77 | if (null == jedisPool) { |
78 | + if(jedisUrl.indexOf("172.31.16.99")>=0){ | ||
79 | + DEBUG.error("begin fetch redis jedisPool is null "); | ||
80 | + } | ||
75 | JedisPoolConfig jedisPoolConfig = new JedisPoolConfig(); | 81 | JedisPoolConfig jedisPoolConfig = new JedisPoolConfig(); |
76 | jedisPoolConfig.setMaxIdle(2); | 82 | jedisPoolConfig.setMaxIdle(2); |
77 | jedisPoolConfig.setMaxTotal(2); | 83 | jedisPoolConfig.setMaxTotal(2); |
@@ -79,6 +85,14 @@ public class OneJob implements Callable { | @@ -79,6 +85,14 @@ public class OneJob implements Callable { | ||
79 | JEDIS_POOL_MAP.put(jedisUrl, jedisPool); | 85 | JEDIS_POOL_MAP.put(jedisUrl, jedisPool); |
80 | } | 86 | } |
81 | 87 | ||
88 | + else{ | ||
89 | + if(jedisUrl.indexOf("172.31.16.99")>=0){ | ||
90 | + DEBUG.error("begin fetch redis jedisPool is existed ");} | ||
91 | + } | ||
92 | + if(jedisUrl.indexOf("172.31.16.99")>=0){ | ||
93 | + DEBUG.error("begin fetch redis after jedisPool {} ",jedisPool); | ||
94 | + } | ||
95 | + | ||
82 | try { | 96 | try { |
83 | this.jedis = jedisPool.getResource(); | 97 | this.jedis = jedisPool.getResource(); |
84 | } catch (Exception e) { | 98 | } catch (Exception e) { |
-
Please register or login to post a comment