GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||
GeezerVison is showing github.com — fix: ensure proper cleanup of publisher in tests by hannahrogers-google · Pull Request #310 · googleapis/java-pubsub
This repository was archived by the owner on Aug 13, 2026. It is now read-only.
ConversationAdding delivery attempt count to PubsubMessages as a message attribute, and creating helper function to allow users to get the count without knowing implementation details. lettering is not enabled
|
There was an error while loading. Please reload this page.
Codecov Report
Continue to review full report at Codecov.
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
|
||
| private void shutdownTestPublisher(Publisher publisher) throws InterruptedException { | ||
| publisher.shutdown(); | ||
| fakeExecutor.advanceTime(Duration.ofSeconds(10)); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
How was 10 seconds chosen? Specifically, how long does this test need to execute on average?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
The gax layer implements a Watchdog (https://github.com/googleapis/gax-java/blob/master/gax/src/main/java/com/google/api/gax/rpc/Watchdog.java) that periodically garbage collects idle streams. The check is scheduled at a fixed rate every 10 seconds. So, I chose 10 seconds to ensure that the watchdog check completes, otherwise we have to wait the full timeout.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
Client library tests taking too long to complete
There was an error while loading. Please reload this page.