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
@@ -1004,12 +1005,18 @@ final class DbMultiDomainAcsStore[TXE](
1004
1005
action.andThen(updateOffset(offset))
1005
1006
caseSome(lastIngestedOffset) =>
1006
1007
if (offset <= lastIngestedOffset) {
1007
-
logger.warn(
1008
-
s"Update offset $offset <= last ingested offset $lastIngestedOffset for DbMultiDomainAcsStore(storeId=$acsStoreId), skipping database actions. "+
1009
-
"This is expected if the SQL query was automatically retried after a transient database error. "+
1010
-
"Otherwise, this is unexpected and most likely caused by two identical UpdateIngestionService instances "+
1011
-
"ingesting into the same logical database."
1012
-
)
1008
+
/* we can receive an offset equal to the last ingested and that can be safely ignore */
1009
+
if (isOffsetCheckpoint) {
1010
+
if (offset < lastIngestedOffset) {
1011
+
logger.warn(
1012
+
s"Checkpoint offset $offset < last ingested offset $lastIngestedOffset for DbMultiDomainAcsStore(storeId=$acsStoreId), skipping database actions. This is expected if the SQL query was automatically retried after a transient database error. Otherwise, this is unexpected and most likely caused by two identical UpdateIngestionService instances ingesting into the same logical database."
1013
+
)
1014
+
}
1015
+
} else {
1016
+
logger.warn(
1017
+
s"Update offset $offset <= last ingested offset $lastIngestedOffset for DbMultiDomainAcsStore(storeId=$acsStoreId), skipping database actions. This is expected if the SQL query was automatically retried after a transient database error. Otherwise, this is unexpected and most likely caused by two identical UpdateIngestionService instances ingesting into the same logical database."
1018
+
)
1019
+
}
1013
1020
DBIO.successful(())
1014
1021
} else {
1015
1022
action.andThen(updateOffset(offset))
@@ -1183,7 +1190,10 @@ final class DbMultiDomainAcsStore[TXE](
0 commit comments