-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: ensure proper cleanup of publisher in tests #310
Merged
hannahrogers-google
merged 37 commits into
googleapis:master
from
hannahrogers-google:master
Aug 24, 2020
Merged
Changes from 35 commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
19dd129
Modifying Publish example in README to match other examples given, and
hannahrogers-google 4158529
fix: Modifying Publish example in README to match other examples, and
hannahrogers-google 7d704f0
Merge branch 'master' of github.com:hannahrogers-google/java-pubsub
hannahrogers-google 9e0ebc6
Merge branch 'master' of https://github.com/googleapis/java-pubsub
hannahrogers-google 01d41b7
feat: Adding support for DLQs
hannahrogers-google ed3b1ee
Fix formatting
hannahrogers-google 72f7996
fix: making changes requested in pull request
hannahrogers-google 389cb86
Merge branch 'master' of https://github.com/googleapis/java-pubsub
hannahrogers-google c9e4bd2
Merge branch 'master' of https://github.com/googleapis/java-pubsub
hannahrogers-google 3738ec8
fix: creating fix to not populate delivery attempt attribute when dead
hannahrogers-google 4ce1d3b
Merge branch 'master' of https://github.com/googleapis/java-pubsub
hannahrogers-google aecd4ca
Adding unit test for case in which a received message has no delivery…
hannahrogers-google 77fa3b3
Making MessageWaiter class more generic to also be used for outstanding
hannahrogers-google b87023c
Merge branch 'master' of https://github.com/googleapis/java-pubsub
hannahrogers-google 7086b3c
Merge branch 'master' into fix-subscriber-stop
hannahrogers-google da0e355
Waiting for acks to complete before shutting down a streaming subscriber
hannahrogers-google dc55fc1
Fixing formatting error
hannahrogers-google 45beee2
Merge branch 'master' of https://github.com/googleapis/java-pubsub
hannahrogers-google 548b7a7
fix: making sure all publishes complete before shutting down the
hannahrogers-google 76a1de9
Merge branch 'master' of https://github.com/googleapis/java-pubsub
hannahrogers-google a8989f1
Merge branch 'master' of https://github.com/googleapis/java-pubsub
hannahrogers-google b4439fd
adding default max outstanding request bytes
hannahrogers-google 01f607c
Merge branch 'master' of https://github.com/googleapis/java-pubsub
hannahrogers-google c0cddb3
Merge branch 'master' of https://github.com/googleapis/java-pubsub
hannahrogers-google 9a6381d
fix: make push endpoint valid https
hannahrogers-google 0bd165f
Merge branch 'master' of https://github.com/googleapis/java-pubsub
hannahrogers-google 5d47be8
Merge branch 'master' of https://github.com/googleapis/java-pubsub
hannahrogers-google e3b7f6d
Merge branch 'master' of https://github.com/googleapis/java-pubsub in…
hannahrogers-google 6c1a26c
Merge branch 'master' of https://github.com/googleapis/java-pubsub in…
hannahrogers-google f2fa6b8
fix: use default zero value if a flow control setting is not provided
hannahrogers-google 0cd08dc
fix lint issues
hannahrogers-google 9ba9764
Merge branch 'master' of https://github.com/googleapis/java-pubsub in…
hannahrogers-google f52eb61
Merge branch 'master' of https://github.com/googleapis/java-pubsub
hannahrogers-google 78d98e8
fix: better cleanup during publisher test
hannahrogers-google 785c3ee
fix: format issues
hannahrogers-google dbe753f
Merge branch 'master' of https://github.com/googleapis/java-pubsub
hannahrogers-google 35c2c6e
fix: test timeouts should be a minute
hannahrogers-google File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for 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?
There was a problem hiding this comment.
Choose a reason for 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.