Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on May 8, 2026. It is now read-only.

fix: Use a separate cached thread pool for handling ack and modack response calllbacks for EOD-enabled subscriptions#2505

Merged
michaelpri10 merged 1 commit into
googleapis:maingoogleapis/java-pubsub:mainfrom
michaelpri10:eod-executor-fixmichaelpri10/java-pubsub:eod-executor-fixCopy head branch name to clipboard
Aug 5, 2025
Merged

fix: Use a separate cached thread pool for handling ack and modack response calllbacks for EOD-enabled subscriptions#2505
michaelpri10 merged 1 commit into
googleapis:maingoogleapis/java-pubsub:mainfrom
michaelpri10:eod-executor-fixmichaelpri10/java-pubsub:eod-executor-fixCopy head branch name to clipboard

Conversation

@michaelpri10

Copy link
Copy Markdown
Contributor

Per the MoreExecutors.directExecutor() docstring, "prefer not to perform any locking inside a task that will be run under {@code directExecutor}: Not only might the wait for a lock be long, but if the running thread was holding a lock, the listener may deadlock or break lock isolation."

A lock is held during notifyAckSuccess when EOD is enabled, which gets executed as a callback using a MoreExecutors.directExecutor(). This PR uses an a cached thread pool for executing this callback when EOD is enabled.

Fixes #2480

…sponse callback for EOD-enabled subscriptions
@michaelpri10 michaelpri10 requested a review from a team August 4, 2025 21:37
@product-auto-label product-auto-label Bot added size: s Pull request size is small. api: pubsub Issues related to the googleapis/java-pubsub API. labels Aug 4, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: pubsub Issues related to the googleapis/java-pubsub API. size: s Pull request size is small.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PubSub: Subscriber not pulling from pubsub queue

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.