-
Notifications
You must be signed in to change notification settings - Fork 4
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
AJ-1485: Ignore redundant AvroUpsert
messages.
#2656
Conversation
core/src/test/scala/org/broadinstitute/dsde/rawls/monitor/AvroUpsertMonitorSpec.scala
Outdated
Show resolved
Hide resolved
220ad76
to
565d3b2
Compare
/jenkins retest |
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.
thank you!
core/src/test/scala/org/broadinstitute/dsde/rawls/monitor/AvroUpsertMonitorSpec.scala
Outdated
Show resolved
Hide resolved
// Publish message on the request topic | ||
services.gpsDAO.publishMessages( | ||
importReadPubSubTopic, | ||
List(MessageRequest(importUuid.toString, testAttributes(importUuid))) | ||
) | ||
|
||
// check that a pubsub message was acked. | ||
eventually(Timeout(scaled(timeout)), Interval(scaled(interval))) { | ||
services.gpsDAO.acks should not be empty | ||
} |
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.
Thinking out loud … I poked at this a bit, and really wanted to find a way to assert that it is acking the second message - the duplicate one - but given the structure of MockGooglePubSubDAO
I couldn't find a way to do that. I don't think it's worth refactoring a whole bunch of stuff to make that test work.
0bd38c1
to
8aa6539
Compare
Double deliveries can happen occasionally: https://cloud.google.com/pubsub/docs/subscription-overview#default_properties Rather than let such redundant messages get stuck in the queue, ack them to clear them out.
8aa6539
to
ab354b0
Compare
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.
LGTM
AJ-1485 Maintenance Ticket
Double deliveries can happen occasionally, per:
https://cloud.google.com/pubsub/docs/subscription-overview#default_properties
Rather than let such redundant messages get stuck in the queue, ack them to clear them out.
This is done as a response to a
Rawls import pub/sub message
alert to prevent future such messages from getting stuck in the queue.