-
Notifications
You must be signed in to change notification settings - Fork 536
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
FIX : Handle checkpoint error and proceed with remaining ops deletion batch #20576
FIX : Handle checkpoint error and proceed with remaining ops deletion batch #20576
Conversation
@tylerbutler @anthony-murphy |
@arafat-java the command you issued was incorrect. Please try again. Examples are:
and
|
0bf4099
to
f002c59
Compare
This PR fixes #20629 |
@@ -45,6 +45,14 @@ export async function deleteSummarizedOps( | |||
doc.documentId, | |||
); | |||
|
|||
if (realDoc === null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should work for this. But maybe we can do something even safer like:
const lastSummarySequenceNumber = JSON.parse(realDoc?.scribe ?? "{}")?.lastSummarySequenceNumber
if (lastSummarySequenceNumber === undefined) }
Lumberjack.error(
`Unable to delete ops. Reason: ....`,
lumberjackProperties,
);
continue;
}
@nmsimons , @CraigMacomber , @tylerbutler |
… batch (microsoft#20576) ## Description Presently when using the deleteSummarizedOps.ts when the aggregated data regarding all the unique documentIds is passed, the process iterates through each of those and then adds soft delete markers to deltas (where applicable) and does hard delete of deltas (where applicable). And this is done in a sequential manner for each of the documents which are passed in. Now the issue is whenever there is an error occurring for any of the documents, all the documents there after are not handled and the loop breaks in between Ideally the error should be logged for the document for which the failure happens and all the subsequent documents deletion should take place This commit intends to handle the checkpoint fetch error for specific documents gracefully, log the details of that document and proceed with processing rest of the batch
Description
Presently when using the deleteSummarizedOps.ts when the aggregated data regarding all the unique documentIds is passed, the process iterates through each of those and then adds soft delete markers to deltas (where applicable) and does hard delete of deltas (where applicable). And this is done in a sequential manner for each of the documents which are passed in.
Now the issue is whenever there is an error occurring for any of the documents, all the documents there after are not handled and the loop breaks in between
Ideally the error should be logged for the document for which the failure happens and all the subsequent documents deletion should take place
This commit intends to handle the checkpoint fetch error for specific documents gracefully, log the details of that document and proceed with processing rest of the batch