2023-03-30 12:11:21.659 [ManagerExecutor-16-thread-25] WARN com.alibaba.polardbx.manager.ManagerConnection – [user=polardbx_root,host=127.0.0.1,port=36020,schema=null] Index 17 out of bounds for length 17 java.lang.IndexOutOfBoundsException: Index 17 out of bounds for length 17 at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64) at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70) at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:248) at java.base/java.util.Objects.checkIndex(Objects.java:372) at java.base/java.util.ArrayList.get(ArrayList.java:459) at com.alibaba.polardbx.net.packet.RowDataPacket.getPacketLength(RowDataPacket.java:111) at com.alibaba.polardbx.net.packet.RowDataPacket.write(RowDataPacket.java:85) at com.alibaba.polardbx.manager.response.ShowHtc.execute(ShowHtc.java:130) at com.alibaba.polardbx.manager.handler.ShowHandler.handle(ShowHandler.java:93) at com.alibaba.polardbx.manager.ManagerQueryHandler.query(ManagerQueryHandler.java:68) at com.alibaba.polardbx.net.handler.QueryHandler.queryRaw(QueryHandler.java:29) at com.alibaba.polardbx.net.FrontendConnection.query(FrontendConnection.java:454) at com.alibaba.polardbx.net.handler.FrontendCommandHandler.handle(FrontendCommandHandler.java:78) at com.alibaba.polardbx.manager.ManagerConnection.lambda$handleData$0(ManagerConnection.java:68) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:955) at java.base/com.alibaba.wisp.engine.WispTask.runOutsideWisp(WispTask.java:308) at java.base/com.alibaba.wisp.engine.WispTask.runCommand(WispTask.java:297) at java.base/com.alibaba.wisp.engine.WispTask$CacheableCoroutine.run(WispTask.java:269) at java.base/java.dyn.CoroutineBase.startInternal(CoroutineBase.java:74),此反复报这个,回答整理自钉群“阿里云 PolarDB-X 开源交流群”
根据您提供的信息,先执行了 kubectl annotate pod runmode=debug,然后需要进入CN的pod,查看 /home/admin/drds-server/logs/tddl/tddl.log 是否有报错信息。
请按照以下步骤进行操作:
1、使用命令 kubectl get pods -n 查看阿里云PolarDB-X集群的所有Pod状态。
2、使用命令 kubectl exec -it -n /bin/bash 进入CN节点的Pod容器。
3、使用命令 cd /home/admin/drds-server/logs/tddl 查看tddl日志目录下的tddl.log文件。
4、使用命令 tail -f tddl.log 实时查看tddl.log文件的最新日志。注意,需要按住“Ctrl”+“C”退出实时查看模式。
5、查看tddl.log文件中是否包含错误和异常信息。如果存在错误信息,记录下相关信息,并尝试修复相应问题。
2023-03-30 12:11:21.659 [ManagerExecutor-16-thread-25] WARN com.alibaba.polardbx.manager.ManagerConnection – [user=polardbx_root,host=127.0.0.1,port=36020,schema=null] Index 17 out of bounds for length 17 java.lang.IndexOutOfBoundsException: Index 17 out of bounds for length 17 at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64) at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70) at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:248) at java.base/java.util.Objects.checkIndex(Objects.java:372) at java.base/java.util.ArrayList.get(ArrayList.java:459) at com.alibaba.polardbx.net.packet.RowDataPacket.getPacketLength(RowDataPacket.java:111) at com.alibaba.polardbx.net.packet.RowDataPacket.write(RowDataPacket.java:85) at com.alibaba.polardbx.manager.response.ShowHtc.execute(ShowHtc.java:130) at com.alibaba.polardbx.manager.handler.ShowHandler.handle(ShowHandler.java:93) at com.alibaba.polardbx.manager.ManagerQueryHandler.query(ManagerQueryHandler.java:68) at com.alibaba.polardbx.net.handler.QueryHandler.queryRaw(QueryHandler.java:29) at com.alibaba.polardbx.net.FrontendConnection.query(FrontendConnection.java:454) at com.alibaba.polardbx.net.handler.FrontendCommandHandler.handle(FrontendCommandHandler.java:78) at com.alibaba.polardbx.manager.ManagerConnection.lambda$handleData$0(ManagerConnection.java:68) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:955) at java.base/com.alibaba.wisp.engine.WispTask.runOutsideWisp(WispTask.java:308) at java.base/com.alibaba.wisp.engine.WispTask.runCommand(WispTask.java:297) at java.base/com.alibaba.wisp.engine.WispTask$CacheableCoroutine.run(WispTask.java:269) at java.base/java.dyn.CoroutineBase.startInternal(CoroutineBase.java:74),此反复报这个,回答整理自钉群“阿里云 PolarDB-X 开源交流群”