skywalking icon indicating copy to clipboard operation
skywalking copied to clipboard

[Bug] Max length of Endpoint ID in trace and log tables is too short (JDBC storage)

Open elisasalle opened this issue 4 years ago • 7 comments

Skywalking-oap 9.2 error on column endpoint_id

  • [X] I had searched in the issues and found no similar issues.

Apache SkyWalking Component

OAP server (apache/skywalking)

What happened

Hello, I have the skywalking-oap version at 9.2.0 and my java-agents have 8.12.0 with mysql. I'm having this error that it's releated to this one https://github.com/apache/skywalking/issues/6262, can you help me?

image

What you expected to happen

Generate an script to modify this table to solve the error

How to reproduce

This error came from agents that have endpoints longer than the table can support

Anything else

No, thank you

Are you willing to submit PR?

  • [ ] Yes I am willing to submit a PR!

Code of Conduct

elisasalle avatar Nov 10 '22 14:11 elisasalle

Unless you could tell which ID, I am afraid I don't know what is going on.

Like https://github.com/apache/skywalking/issues/6262 mentioned, we had fixed the issue we had known.

wu-sheng avatar Nov 10 '22 14:11 wu-sheng

You submit an empty title and only an error stack. I have to close this as you don't pay enough attention to request help from a community.

For open-source, you should debug first, and try to locate the root cause.

wu-sheng avatar Nov 10 '22 14:11 wu-sheng

The column have the same dimension as the related issue

endpoint_id varchar(200) DEFAULT NULL

This ID can find it in the tables log and segment.

The error from the java-agents is:

ERROR 2022-11-10 14:16:37.849 grpc-default-executor-75 TraceSegmentServiceClient : Send UpstreamSegment to collector fail with a grpc internal exception. org.apache.skywalking.apm.dependencies.io.grpc.StatusRuntimeException: DEADLINE_EXCEEDED: deadline exceeded after 29.999935498s. [closed=[], open=[[remote_addr=skywalking-oap.monitoring.svc/10.0.128.168:11800]]] at org.apache.skywalking.apm.dependencies.io.grpc.Status.asRuntimeException(Status.java:535) at org.apache.skywalking.apm.dependencies.io.grpc.stub.ClientCalls$StreamObserverToCallListenerAdapter.onClose(ClientCalls.java:479) at org.apache.skywalking.apm.dependencies.io.grpc.internal.ClientCallImpl.closeObserver(ClientCallImpl.java:562) at org.apache.skywalking.apm.dependencies.io.grpc.internal.ClientCallImpl.access$300(ClientCallImpl.java:70) at org.apache.skywalking.apm.dependencies.io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInternal(ClientCallImpl.java:743) at org.apache.skywalking.apm.dependencies.io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInContext(ClientCallImpl.java:722) at org.apache.skywalking.apm.dependencies.io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37) at org.apache.skywalking.apm.dependencies.io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:133) 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:834)

elisasalle avatar Nov 10 '22 14:11 elisasalle

OK. I think I know what is going on. Some columns are locked as 200.

wu-sheng avatar Nov 10 '22 15:11 wu-sheng

Please remember to keep the title of the issue completed. Otherwise, we would continue the process in next time.

wu-sheng avatar Nov 10 '22 15:11 wu-sheng

I found for example this is the way that the agents send info into skywalking-oap and save it into the mysql in base64 PG5hbWVhcHB3ZXJ5bG9uZz5iYXNlNjQ6IGVudHJhZGEgaW52w6FsaWRhCg==

I modify it to not show the pod name When I decode it i can see this result: nameappwerylongbase64: entrada inválida

When this info came from a pod that have a longer name or the info that want to send to skywalking-oap is bigger than the capacity of the column.

Hope it will be helpfull

elisasalle avatar Nov 10 '22 15:11 elisasalle

Should be fixed by https://github.com/apache/skywalking/pull/9947

wu-sheng avatar Nov 10 '22 15:11 wu-sheng