You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[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.<init>(SnowflakeIDGenImpl.java:50)
While We set this application name to xxx-xxx like below idgen-server
then newNode will return snowflake.idgen-server.forever.xxxx:xxxx-sequence
So server will be parsed. Then this will cause leaf not start as expected
The text was updated successfully, but these errors were encountered:
I Found that
Leaf/leaf-core/src/main/java/com/sankuai/inf/leaf/snowflake/SnowflakeZookeeperHolder.java
Line 89 in 86a6441
While We set this application name to
xxx-xxx
like belowidgen-server
then
newNode
will returnsnowflake.idgen-server.forever.xxxx:xxxx-sequence
So
server
will be parsed. Then this will cause leaf not start as expectedThe text was updated successfully, but these errors were encountered: