-
Notifications
You must be signed in to change notification settings - Fork 98
feat: Receipt modack #1540
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
Merged
Merged
feat: Receipt modack #1540
Changes from all commits
Commits
Show all changes
69 commits
Select commit
Hold shift + click to select a range
76539e8
receipt-modack for exactly once
maitrimangal a06a4b7
changing setup
maitrimangal d8a1779
changing the pendingReceipt List
maitrimangal 680ac2d
using scheduled fixed rate
maitrimangal ec652a6
using blocked queues
maitrimangal 4236363
using blocked queues
maitrimangal 88dfc84
using blocked queues
maitrimangal 1741342
adding null safety
maitrimangal b5d9706
adding null safety
maitrimangal baa470b
removing list
maitrimangal d7adf96
adding list back
maitrimangal 349d0c4
if permanent failure, remove outstandingmsg from queue
maitrimangal 3f877d5
adding snippet of test
maitrimangal 1423c01
adding method to streaming subscriber
maitrimangal 2f8a408
adding method to streaming subscriber
maitrimangal aa35b97
adding notifyAcks
maitrimangal 71a90df
changing notifyAckFailed calls
maitrimangal 4dfa1fd
addressing some comments
maitrimangal a893dd6
changed logic to use one datastructure
maitrimangal 3193b81
fixing notifyFailed
maitrimangal bb0c2a9
fixing notifyFailed
maitrimangal 60de4e1
changing Pair to custom class
maitrimangal 0d9d41b
removing the not needed data structure
maitrimangal 19c51db
Fixing test
maitrimangal ba5f30b
Fixing test
maitrimangal 9d808eb
Fixing test
maitrimangal 1a16d9a
Fixing test
maitrimangal e5718ab
fixing format
maitrimangal 3a520ed
fixing test to call receiveMessage
maitrimangal 6ca0337
testing test failure
maitrimangal 5553ded
testing test failure
maitrimangal 85bb43d
testing test failure
maitrimangal c8c4b63
increasing timestamp to test
maitrimangal aed52a1
increasing timestamp to test
maitrimangal d8fb0fa
adding log statement for testing
maitrimangal b90a6b6
Fixing lint
maitrimangal 0681eca
Adding more logs
maitrimangal 6ebd401
batch size log
maitrimangal 10a43f3
changing method to syncronized
maitrimangal ead3c51
fixing for loop to not remove as we are iterating
maitrimangal bb35726
trying a concurrent map
maitrimangal f9abf69
fix: syncronizing notifyFailed
maitrimangal 551528b
fix: removing unused import
maitrimangal 04124fe
fix: reformat
maitrimangal 7dcc8bc
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] f4ca8a5
fix: removing System.out.println statements
maitrimangal e1c251a
Merge branch 'main' of https://github.com/googleapis/java-pubsub into…
maitrimangal f156c4a
Merge branch 'ReceiptModack' of https://github.com/maitrimangal/java-…
maitrimangal fc9b8a8
fix: reviewign comments
maitrimangal 3091823
fix: lint
maitrimangal 1cc0365
adding another ordering key test example
maitrimangal d906e11
fix: trying to run this test again
maitrimangal 46c2511
fix: trying to run this test again
maitrimangal b8edb54
fix: removing commented code
maitrimangal 14e7292
fix: removing commented code
maitrimangal eb780ca
resolving the comments from review
maitrimangal aa5848b
adding custom matcher
maitrimangal ac3840e
adding custom matcher
maitrimangal e201ae4
adding custom matcher
maitrimangal 1c94e57
adding custom matcher
maitrimangal 3e9c83f
adding custom matcher correcting the matching statement
maitrimangal 3aef16b
lint
maitrimangal f8db409
removing comments
maitrimangal 11af2a0
removing comments
maitrimangal 3200173
removing comments
maitrimangal e06b968
changing messageMatcher to messageDataMatcher, and fixing other nit t…
maitrimangal 1846eb6
lint
maitrimangal 3e45ca5
addressing review comments
maitrimangal a2336bd
addressing review comments
maitrimangal 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 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
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
35 changes: 35 additions & 0 deletions
35
google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDataMatcher.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* | ||
* Copyright 2017 Google LLC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package com.google.cloud.pubsub.v1; | ||
|
||
import com.google.protobuf.ByteString; | ||
import com.google.pubsub.v1.PubsubMessage; | ||
import org.mockito.ArgumentMatcher; | ||
|
||
public class MessageDataMatcher implements ArgumentMatcher<PubsubMessage> { | ||
|
||
private ByteString expectedData; | ||
|
||
public MessageDataMatcher(ByteString expectedData) { | ||
this.expectedData = expectedData; | ||
} | ||
|
||
@Override | ||
public boolean matches(PubsubMessage message2) { | ||
return (expectedData.equals(message2.getData())); | ||
} | ||
} |
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
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.
Uh oh!
There was an error while loading. Please reload this page.