qixiaobo
qixiaobo
### Is there an existing issue for this? - [X] I have searched the existing issues ### Current Behavior You may refer to this https://issues.apache.org/jira/browse/CURATOR-405 > It's unclear how it...
目前系统中较多应用使用微信token,最好把fastweixin单独部署成服务。(之前部分系统存在实现获取token的逻辑) 但是基于现状,尚未实现。因此希望可以accessToken可以手动刷新。 比如场景:用户手动操作了刷新accessToken之后,fastweixin报错,但是对于报错后不支持直接刷新,反而等到7100s之后才会刷新 ``` public String getAccessToken() { long now = System.currentTimeMillis(); long time = now - this.weixinTokenStartTime; try { /* * 判断优先顺序: * 1.官方给出的超时时间是7200秒,这里用7100秒来做,防止出现已经过期的情况 * 2.刷新标识判断,如果已经在刷新了,则也直接跳过,避免多次重复刷新,如果没有在刷新,则开始刷新 */ if (time...
2017-08-21 11:21:18,917 [ERROR] [http-nio-8080-exec-20] n.o.j.r.RedisCache:109 Error occured when get data from redis2 cache java.io.IOException: java.lang.reflect.InvocationTargetException at org.nustaq.serialization.FSTObjectInput.readObject(FSTObjectInput.java:243) at net.oschina.j2cache.util.FSTSerializer.deserialize(FSTSerializer.java:50) at net.oschina.j2cache.util.SerializationUtils.deserialize(SerializationUtils.java:66) at net.oschina.j2cache.redis.RedisCache.get(RedisCache.java:82) at net.oschina.j2cache.CacheManager.get(CacheManager.java:101) at net.oschina.j2cache.RedisCacheChannel.get(RedisCacheChannel.java:78) at org.nutz.j2cache.shiro.ShiroJ2Cache.get(ShiroJ2Cache.java:32) at...
**What would you like to be added**: ResourceDistribution should support other resource like configmapgenerator with Kustomize **Why is this needed**: In k8s, configmap only used as create. This is not...
**What would you like to be added**: Scenes Support javaagent mount using init-container accomplish 1. The initcontainer defines the specified environment variables, such as JAVA_TOOL_OPTIONS, which is expected to be...
ref to https://github.com/Meituan-Dianping/Leaf/issues/188
```text [ERROR] [main] c.s.i.l.s.SnowflakeZookeeperHolder:? []Start node ERROR {} java.lang.NumberFormatException: For input string: "server" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.Integer.parseInt(Integer.java:580) at java.lang.Integer.parseInt(Integer.java:615) at com.sankuai.inf.leaf.snowflake.SnowflakeZookeeperHolder.init(SnowflakeZookeeperHolder.java:89) at com.sankuai.inf.leaf.snowflake.SnowflakeIDGenImpl.(SnowflakeIDGenImpl.java:50) ``` I Found that https://github.com/Meituan-Dianping/Leaf/blob/86a6441d263497b9f9ee321de13422b9c63f0c06/leaf-core/src/main/java/com/sankuai/inf/leaf/snowflake/SnowflakeZookeeperHolder.java#L89 ```java //表示新启动的节点,创建持久节点...
Why SnowflakeZookeeperHolder use PREFIX_ZK_PATH static? Cannot use more than one SnowFlake instance in one project https://github.com/Meituan-Dianping/Leaf/issues/138
I found code below ```java private static final String PREFIX_ZK_PATH = "/snowflake/" + PropertyFactory.getProperties().getProperty("leaf.name"); private static final String PROP_PATH = System.getProperty("java.io.tmpdir") + File.separator + PropertyFactory.getProperties().getProperty("leaf.name") + "/leafconf/{port}/workerID.properties"; private static final...
[root@f6-web-test opt]# sqladvisor -f sqladvisor.cnf -v 1 2017-05-24 17:01:25 15179 [Note] 第1步: 对SQL解析优化之后得到的SQL:select `*` AS `*` from (select `m`.`pk_id` AS `pk_id`,ifnull(`m`.`service_subtotal`,0) AS `mService`,ifnull(`m`.`partinfo_subtotal`,0) AS `mPart`,ifnull(`s`.`servicePrice`,0) AS `service`,ifnull(`p`.`partPrice`,0) AS `part`,ifnull(`m`.`vip_expense`,0) AS...