Skip to content

[BUG] AbstractLogCollector.desensitizeShenyuRequestLog NPE on null boxed Integer/Long (chunked byte responses) #6884

Description

@Aias00

Description

new ThreadPoolExecutor(threadCount, MAX_ALLOW_THREADS, 60000L, TimeUnit.MICROSECONDS, …) — 60000L with TimeUnit.MICROSECONDS = 60 ms, not the intended 60 seconds. Burst-spawned non-core threads die after only 60 ms of idle.

Location

  • shenyu-plugin/shenyu-plugin-logging/shenyu-plugin-logging-tencent-cls/src/main/java/org/apache/shenyu/plugin/tencent/cls/client/TencentClsLogCollectClient.java:163
  • shenyu-plugin/shenyu-plugin-logging/shenyu-plugin-logging-aliyun-sls/src/main/java/org/apache/shenyu/plugin/aliyun/sls/client/AliyunSlsLogCollectClient.java:184

Impact

Callback-executor threads cycle rapidly on any pause in traffic; wasted thread creation/teardown.

Suggested fix

Use TimeUnit.MILLISECONDS (or SECONDS with 60L).

Related existing

None — distinct from #6794 (Logging pools AbortPolicy + unit bug) which covers the send pools in different clients.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions