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

ChangeFeedProcessor: Fixes log during lease release #2764

Merged
merged 6 commits into from
Oct 4, 2021

Conversation

ealsur
Copy link
Member

@ealsur ealsur commented Oct 1, 2021

Description

During a normal split handling, the Change Feed Processor will create the child leases and delete the parent lease, after that, it releases the current Task processing the deleted lease.

The release process of a lease is generic, it can be called due to a transient error, due to an error processing the changes on the user code, etc.

Releasing a lease stops the processing Task and updates the lease document setting the Owner to null.

In all cases, the lease exists, but on the case where a split happens, the lease is deleted by the split handling process. In this case, it is expected for the lease to not exist during the release.

During CTL validations, this causes an extra error log to be traced due to the exception (404), that is not an error in itself but expected. There is no error on the processing, but the noisy log could be interpreted as an error.

This PR just detects the known case and avoids the unnecessary exception log.

@ealsur ealsur merged commit 919bb3b into master Oct 4, 2021
@ealsur ealsur deleted the users/ealsur/cfplogfix branch October 4, 2021 17:06
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.

3 participants