Skip to content
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

Don't add error log when it is ES version conflicts #6652

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

neil-xie
Copy link
Member

What changed?
Don't add error logs when es encounters version conflicts or doc already deleted, we will ack these messages

Why?
Log improvement

How did you test it?

Potential risks

Release notes

Documentation Changes

@@ -162,6 +156,7 @@ func (p *ESProcessorImpl) bulkAfterAction(id int64, requests []bulk.GenericBulka
tag.WorkflowRunID(rid),
tag.WorkflowDomainID(domainID))
p.ackKafkaMsg(key)
continue
Copy link
Member

Choose a reason for hiding this comment

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

This will miss failure metrics p.scope.IncCounter(metrics.ESProcessorFailures)

Copy link
Member Author

@neil-xie neil-xie Jan 31, 2025

Choose a reason for hiding this comment

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

These might not should be considered as failures, the version conflicts I found are caused by the disordered messages from Kafka, which mean we have short workflows, sometimes for example the closed messages published earlier than the upsert workflow execution calls, we will have version conflicts and we ack to prevent retry on purpose.

Copy link
Member Author

Choose a reason for hiding this comment

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

We used the taskID as the visibility message version, which can make sure the older messages won't override the newer ones. That is why we got these conflicts

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.

2 participants