FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix: Use a separate cached thread pool for handling ack and modack response calllbacks for EOD-enabled subscriptions by michaelpri10 · Pull Request #2505 · googleapis/java-pubsub · GitHub

This repository was archived by the owner on Aug 13, 2026. It is now read-only.
/ java-pubsub Public archive

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:mainfrom
michaelpri10:eod-executor-fix
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:mainfrom
michaelpri10:eod-executor-fix

Conversation

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

michaelpri10 requested a review from a team August 4, 2025 21:37
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL