Skip to content

[Bug] Length control is not working #7882

@sunwulovelove1

Description

@sunwulovelove1

Search before asking

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

Apache SkyWalking Component

OAP server (apache/skywalking)

What happened

skywalking: 8.5.0
es : 7.8.0
25,000 log errors are reported every day and crashes once a week(may be related it)

2021-10-08 05:16:36,939 - org.apache.skywalking.oap.server.telemetry.api.HealthCheckMetrics - 44 [pool-10-thread-2] ERROR [] - Health check fails
org.elasticsearch.action.ActionRequestValidationException: Validation Failed: 1: id is too long, must be no longer than 512 bytes but was: 518;2: id is too long, must be no longer than 512 bytes but was: 524;3: id is too long, must be no longer than 512 bytes but was: 518;4: id is too long, must be no longer than 512 bytes but was: 525;
at org.elasticsearch.action.bulk.BulkRequest.validate(BulkRequest.java:393) ~[elasticsearch-7.5.0.jar:7.5.0]
at org.elasticsearch.client.RestHighLevelClient.performRequest(RestHighLevelClient.java:1480) ~[elasticsearch-rest-high-level-client-7.5.0.jar:7.5.0]
at org.elasticsearch.client.RestHighLevelClient.performRequestAndParseEntity(RestHighLevelClient.java:1454) ~[elasticsearch-rest-high-level-client-7.5.0.jar:7.5.0]
at org.elasticsearch.client.RestHighLevelClient.bulk(RestHighLevelClient.java:497) ~[elasticsearch-rest-high-level-client-7.5.0.jar:7.5.0]
at org.apache.skywalking.oap.server.storage.plugin.elasticsearch7.client.ElasticSearch7Client.synchronousBulk(ElasticSearch7Client.java:403) ~[storage-elasticsearch7-plugin-8.5.0.jar:8.5.0]
at org.apache.skywalking.oap.server.storage.plugin.elasticsearch.base.BatchProcessEsDAO.synchronous(BatchProcessEsDAO.java:73) ~[storage-elasticsearch-plugin-8.5.0.jar:8.5.0]
at org.apache.skywalking.oap.server.core.storage.PersistenceTimer.lambda$extractDataAndSave$3(PersistenceTimer.java:135) ~[server-core-8.5.0.jar:8.5.0]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_252]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_252]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_252]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_252]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_252]

What you expected to happen

normal

How to reproduce

using es 7.8.0 cluster , skywalking 8.5.0 and about 400 pod agent;

Anything else

企业微信截图_16337628416961

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    backendOAP backend related.bugSomething isn't working and you are sure it's a bug!duplicateThis issue or pull request already exists

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions