You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* added metrics for transactional outbox
The follwoing metrics were added
outbox_total_records: reports the total amount of records currently in the outbox
outbox_pending_delivery: reports the total amount of records pending delivery currently in the outbox
outbox_pending_removal: reports the total amount of records that were sent and pending removal currently in the outbox
* reading status and count fields in the correct order from rows
selectSQL:="SELECT rec_id, exchange, routing_key, publishing FROM "+getOutboxName(outbox.svcName) +" USE INDEX (status_delivery) WHERE status = 0 AND delivery_attempts < "+strconv.Itoa(maxDeliveryAttempts) +" ORDER BY rec_id ASC LIMIT "+strconv.Itoa(maxPageSize) +" FOR UPDATE SKIP LOCKED"
291
+
selectSQL:="SELECT rec_id, exchange, routing_key, publishing FROM "+getOutboxName(outbox.svcName) +" USE INDEX (status_delivery) WHERE status = "+strconv.Itoa(Pending) +" AND delivery_attempts < "+strconv.Itoa(maxDeliveryAttempts) +" ORDER BY rec_id ASC LIMIT "+strconv.Itoa(maxPageSize) +" FOR UPDATE SKIP LOCKED"
selectSQL:="SELECT rec_id, exchange, routing_key, publishing FROM "+getOutboxName(outbox.svcName) +" WHERE status = 1 ORDER BY rec_id ASC LIMIT ? FOR UPDATE SKIP LOCKED"
296
+
selectSQL:="SELECT rec_id, exchange, routing_key, publishing FROM "+getOutboxName(outbox.svcName) +" WHERE status = "+strconv.Itoa(Sent) +" ORDER BY rec_id ASC LIMIT ? FOR UPDATE SKIP LOCKED"
0 commit comments