Skip to content

[INLONG-12064][Audit] Static ScheduledExecutorService in PulsarSink causes ClassLoader leaks and shared state corruption#12085

Merged
doleyzi merged 1 commit intoapache:masterfrom
doleyzi:INLONG-12064
Feb 26, 2026
Merged

[INLONG-12064][Audit] Static ScheduledExecutorService in PulsarSink causes ClassLoader leaks and shared state corruption#12085
doleyzi merged 1 commit intoapache:masterfrom
doleyzi:INLONG-12064

Conversation

@doleyzi
Copy link
Copy Markdown
Contributor

@doleyzi doleyzi commented Feb 26, 2026

Motivation

The current implementation of scheduleWithFixedDelay in the pulsarsink class has multi-threading safety issues that may cause inconsistent behavior or race conditions during task scheduling, potentially leading to memory leaks.

Modifications

  • Reworked the scheduleWithFixedDelay scheduler implementation in pulsarsink.
  • Added thread-safe mechanisms to avoid race conditions.
  • Ensured proper handling of task scheduling and cancellation to prevent concurrent access issues.

@doleyzi doleyzi self-assigned this Feb 26, 2026
@doleyzi doleyzi added this to the 2.4.0 milestone Feb 26, 2026
@github-actions github-actions Bot added the service/ci Automatically confirm that the code is error-free label Feb 26, 2026
…auses ClassLoader leaks and shared state corruption
@github-actions github-actions Bot removed the service/ci Automatically confirm that the code is error-free label Feb 26, 2026
@doleyzi doleyzi merged commit 5c0fec2 into apache:master Feb 26, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug][Audit] Static ScheduledExecutorService in PulsarSink causes ClassLoader leaks and shared state corruption

5 participants