polardb / polardb/polardbx-sql
本地启动报错
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.7k
- Forks
- 337
- PR merge metrics
- No merged PRs in 30d
Description
按照操作手册的方式,拉的是main分支,启动的polardbx-sql,报错如下:
2024-06-12 10:38:10.839 INFO [TDDL] New session: XSession sid=2 status=Init from XClient of X-NIO-Client to my_polarx#1c31783e@127.0.0.1:32886, tddl version: 5.4.19-20240612
2024-06-12 10:38:10.844 INFO [TDDL] New session: XSession sid=3 status=Init from XClient of X-NIO-Client to my_polarx#1c31783e@127.0.0.1:32886, tddl version: 5.4.19-20240612
2024-06-12 10:38:10.844 INFO [TDDL] New session: XSession sid=4 status=Init from XClient of X-NIO-Client to my_polarx#1c31783e@127.0.0.1:32886, tddl version: 5.4.19-20240612
2024-06-12 10:38:10.845 INFO [TDDL] New session: XSession sid=5 status=Init from XClient of X-NIO-Client to my_polarx#1c31783e@127.0.0.1:32886, tddl version: 5.4.19-20240612
2024-06-12 10:38:10.845 INFO [TDDL] New session: XSession sid=6 status=Init from XClient of X-NIO-Client to my_polarx#1c31783e@127.0.0.1:32886, tddl version: 5.4.19-20240612
2024-06-12 10:38:10.845 INFO [TDDL] New session: XSession sid=7 status=Init from XClient of X-NIO-Client to my_polarx#1c31783e@127.0.0.1:32886, tddl version: 5.4.19-20240612
2024-06-12 10:38:10.845 INFO [TDDL] New session: XSession sid=8 status=Init from XClient of X-NIO-Client to my_polarx#1c31783e@127.0.0.1:32886, tddl version: 5.4.19-20240612
2024-06-12 10:38:10.845 INFO [TDDL] New session: XSession sid=9 status=Init from XClient of X-NIO-Client to my_polarx#1c31783e@127.0.0.1:32886, tddl version: 5.4.19-20240612
2024-06-12 10:38:10.845 INFO [TDDL] New session: XSession sid=10 status=Init from XClient of X-NIO-Client to my_polarx#1c31783e@127.0.0.1:32886, tddl version: 5.4.19-20240612
2024-06-12 10:38:10.845 INFO [TDDL] New session: XSession sid=11 status=Init from XClient of X-NIO-Client to my_polarx#1c31783e@127.0.0.1:32886, tddl version: 5.4.19-20240612
2024-06-12 10:38:10.846 INFO [TDDL] New session: XSession sid=12 status=Init from XClient of X-NIO-Client to my_polarx#1c31783e@127.0.0.1:32886, tddl version: 5.4.19-20240612
2024-06-12 10:38:10.846 INFO [TDDL] New session: XSession sid=13 status=Init from XClient of X-NIO-Client to my_polarx#1c31783e@127.0.0.1:32886, tddl version: 5.4.19-20240612
2024-06-12 10:38:10.846 INFO [TDDL] New session: XSession sid=14 status=Init from XClient of X-NIO-Client to my_polarx#1c31783e@127.0.0.1:32886, tddl version: 5.4.19-20240612
2024-06-12 10:38:10.846 INFO [TDDL] New session: XSession sid=15 status=Init from XClient of X-NIO-Client to my_polarx#1c31783e@127.0.0.1:32886, tddl version: 5.4.19-20240612
2024-06-12 10:38:10.846 INFO [TDDL] New session: XSession sid=16 status=Init from XClient of X-NIO-Client to my_polarx#1c31783e@127.0.0.1:32886, tddl version: 5.4.19-20240612
2024-06-12 10:38:10.847 INFO [TDDL] New session: XSession sid=17 status=Init from XClient of X-NIO-Client to my_polarx#1c31783e@127.0.0.1:32886, tddl version: 5.4.19-20240612
2024-06-12 10:38:10.847 INFO [TDDL] New session: XSession sid=18 status=Init from XClient of X-NIO-Client to my_polarx#1c31783e@127.0.0.1:32886, tddl version: 5.4.19-20240612
2024-06-12 10:38:10.848 INFO [TDDL] New session: XSession sid=19 status=Init from XClient of X-NIO-Client to my_polarx#1c31783e@127.0.0.1:32886, tddl version: 5.4.19-20240612
2024-06-12 10:38:10.848 INFO [TDDL] New session: XSession sid=20 status=Init from XClient of X-NIO-Client to my_polarx#1c31783e@127.0.0.1:32886, tddl version: 5.4.19-20240612
2024-06-12 10:38:10.848 INFO [TDDL] New session: XSession sid=21 status=Init from XClient of X-NIO-Client to my_polarx#1c31783e@127.0.0.1:32886, tddl version: 5.4.19-20240612
2024-06-12 10:38:10.848 INFO [TDDL] New session: XSession sid=22 status=Init from XClient of X-NIO-Client to my_polarx#1c31783e@127.0.0.1:32886, tddl version: 5.4.19-20240612
2024-06-12 10:38:15.447 INFO [TDDL] XProtocol NIOWorker start with 20 threads and 13421772 bytes buf per thread., tddl version: 5.4.19-20240612
2024-06-12 10:38:18.961 INFO [TDDL] XConnectionManager new datasource to my_polarx@127.0.0.1:32886 id is 0 NOW_GLOBAL_SESSION: 0, tddl version: 5.4.19-20240612
2024-06-12 10:39:35.107 ERROR ERR-CODE: [PXC-10003][ERR_X_PROTOCOL_CONNECTION] XClientPool to my_polarx#1c31783e@127.0.0.1:32886 get XConnection timeout. 10000000000ns XClientPool to my_polarx#1c31783e@127.0.0.1:32886 now 0 TCP(0 aging), 0 sessions(0 running, 0 idle), 0 waiting connection.
com.alibaba.polardbx.common.exception.TddlNestableRuntimeException: ERR-CODE: [PXC-10003][ERR_X_PROTOCOL_CONNECTION] XClientPool to my_polarx#1c31783e@127.0.0.1:32886 get XConnection timeout. 10000000000ns XClientPool to my_polarx#1c31783e@127.0.0.1:32886 now 0 TCP(0 aging), 0 sessions(0 running, 0 idle), 0 waiting connection.
at com.alibaba.polardbx.rpc.pool.XConnectionManager.getConnection(XConnectionManager.java:514)
at com.alibaba.polardbx.rpc.compatible.XDataSource.getConnection(XDataSource.java:193)
at com.alibaba.polardbx.gms.metadb.MetaDbDataSource.initTsoServicesX(MetaDbDataSource.java:139)
at com.alibaba.polardbx.gms.metadb.MetaDbDataSource.initXDataSourceByJdbcProps(MetaDbDataSource.java:202)
at com.alibaba.polardbx.gms.metadb.MetaDbDataSource.initMetaDbDataSource(MetaDbDataSource.java:213)
at com.alibaba.polardbx.gms.metadb.MetaDbDataSource.doInit(MetaDbDataSource.java:135)
at com.alibaba.polardbx.common.model.lifecycle.AbstractLifecycle.init(AbstractLifecycle.java:43)
at com.alibaba.polardbx.gms.metadb.MetaDbDataSource.getInstance(MetaDbDataSource.java:530)
at com.alibaba.polardbx.gms.metadb.MetaDbDataSource.initMetaDbDataSource(MetaDbDataSource.java:562)
at com.alibaba.polardbx.config.loader.ServerLoader.initPolarDbXComponents(ServerLoader.java:216)
at com.alibaba.polardbx.config.loader.ServerLoader.load(ServerLoader.java:191)
at com.alibaba.polardbx.config.loader.ServerLoader.doInit(ServerLoader.java:96)
at com.alibaba.polardbx.common.model.lifecycle.AbstractLifecycle.init(AbstractLifecycle.java:43)
at com.alibaba.polardbx.CobarConfig.initCobarConfig(CobarConfig.java:80)
at com.alibaba.polardbx.CobarConfig.(CobarConfig.java:61)
at com.alibaba.polardbx.CobarServer.(CobarServer.java:160)
at com.alibaba.polardbx.CobarServer.(CobarServer.java:114)
at com.alibaba.polardbx.server.TddlLauncher.main(TddlLauncher.java:126)
Caused by: com.alibaba.polardbx.common.exception.TddlRuntimeException: ERR-CODE: [PXC-10003][ERR_X_PROTOCOL_CONNECTION] XClientPool to my_polarx#1c31783e@127.0.0.1:32886 get XConnection timeout. 10000000000ns
at com.alibaba.polardbx.rpc.pool.XClientPool.getConnection(XClientPool.java:446)
at com.alibaba.polardbx.rpc.pool.XClientPool.getConnection(XClientPool.java:287)
at com.alibaba.polardbx.rpc.pool.XConnectionManager.getConnection(XConnectionManager.java:502)
... 17 common frames omitted
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the reported stack trace at com.alibaba.polardbx.rpc.pool.XClientPool.getConnection and com.alibaba.polardbx.gms.metadb.MetaDbDataSource.initTsoServicesX. Reproduce the local startup using the main branch and inspect the X Protocol connection timeout to 127.0.0.1:32886. Done means identifying the startup failure cause and documenting or correcting the required local setup or behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100