Cobar init error
- Dominant language
- Java
- Stars
- 3.2k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
Hi, all
Cobar-server-1.2.7 can not initialize successfully, and error log is as following:
17:26:54,044 INFO Cobar is ready to startup ...
17:26:54,044 INFO Startup processors ...
17:26:54,069 INFO Startup connector ...
17:26:54,070 INFO Initialize dataNodes ...
17:26:54,116 WARN dnTest1:0 init error.
java.util.concurrent.ExecutionException: java.io.UnsupportedEncodingException: maccecias
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:202)
at com.alibaba.cobar.mysql.bio.MySQLChannel.connect(MySQLChannel.java:185)
at com.alibaba.cobar.mysql.MySQLDataSource.getChannel(MySQLDataSource.java:159)
at com.alibaba.cobar.mysql.MySQLDataNode.initSource(MySQLDataNode.java:357)
at com.alibaba.cobar.mysql.MySQLDataNode.init(MySQLDataNode.java:78)
at com.alibaba.cobar.CobarServer.startup(CobarServer.java:124)
at com.alibaba.cobar.CobarStartup.main(CobarStartup.java:36)
Caused by: java.io.UnsupportedEncodingException: maccecias
at java.lang.StringCoding.encode(StringCoding.java:341)
at java.lang.String.getBytes(String.java:916)
at com.alibaba.cobar.mysql.bio.MySQLChannel.sendAuth411(MySQLChannel.java:372)
at com.alibaba.cobar.mysql.bio.MySQLChannel.handshake(MySQLChannel.java:338)
at com.alibaba.cobar.mysql.bio.MySQLChannel.access$000(MySQLChannel.java:66)
at com.alibaba.cobar.mysql.bio.MySQLChannel$1.call(MySQLChannel.java:180)
at com.alibaba.cobar.mysql.bio.MySQLChannel$1.call(MySQLChannel.java:176)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
17:26:54,119 ERROR #!Cobar#dnTest1 init failure
Test environment:
os: linux
jdk: jdk7
mysql: 5.6
Thanks & Best Regards!
Contributor guide
Research direction
Start with com.alibaba.cobar.mysql.bio.MySQLChannel at sendAuth411, handshake, and connect, then review the startup path through MySQLDataNode.initSource. Reproduce the failure in the reported Linux, JDK 7, and MySQL 5.6 environment; done means Cobar initializes the data node without the UnsupportedEncodingException.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, mysql
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100