Skip to content

Conversation

@rhinof
Copy link
Contributor

@rhinof rhinof commented Apr 23, 2019

No description provided.

@rhinof rhinof requested a review from vladshub April 23, 2019 20:24
@coveralls
Copy link

coveralls commented Apr 24, 2019

Coverage Status

Coverage increased (+1.4%) to 69.782% when pulling 3dc88d3 on diagnose-hang into c1e5d4c on master.

…fails

When the extraction fails it prints out an error however this is due to the fact that the passed in message deaders
do not contain the needed opentrace headers for extraction to work.
This is expected as message producers do not necessarily pass in these headers so log level changed from error to debug in order not to litter the log
outbox.log().WithError(err).WithField("delivery_tag", ack).Error("failed to update delivery tag")
}
case nack := <-outbox.nack:
outbox.log().WithField("deliver_tag", nack).Info("nack received for delivery tag")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't do Nack anymore?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These nacks are the broker sending a negative confirm for the publication so we do not handle them and let the transactional outbox re publish the message the next time it scans for messages that were sent but not yet confirmed (that is done with the scavenging channel/goroutine)

insert_date timestamp DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY(rec_id))`
PRIMARY KEY(rec_id),
INDEX status_delivery (rec_id, status, delivery_attempts))`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you change the order of the index to

Suggested change
INDEX status_delivery (rec_id, status, delivery_attempts))`
INDEX status_delivery (status, delivery_attempts, rec_id))`

you would not need to git the USE INDEX (status_delivery) hint in the query.

@rhinof rhinof merged commit 01f5150 into master Apr 24, 2019
@rhinof rhinof deleted the diagnose-hang branch April 24, 2019 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants