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

fix(batch-processing) Fix an issue with interrupting the batch events processing due to SystemUserAuthorizationException. #718

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

SvitlanaKovalova1
Copy link
Contributor

@SvitlanaKovalova1 SvitlanaKovalova1 commented Dec 18, 2024

Purpose

MSEARCH-925 This issue is reproduced in Karate tests FAT-17511. Sometimes events can be consumed by tenants other than the one that produced the events and has a different user credentials. In this case the batch events processing will be interrupted due to SystemUserAuthorizationException exception. After the retries, the data ultimately does not end up in the repository.

Approach

wrap the call to the executeSystemUserScoped method in a try-catch block to skip batch processing for the wrong tenant and continue processing events with the correct tenant.

Changes Checklist

  • API Changes: Document any API paths, methods, request or response bodies changed, added, or removed.
  • Database Schema Changes: Indicate any database schema changes and their impact. Confirm that migration scripts were created.
  • Interface Version Changes: Indicate any changes to interface versions.
  • Interface Dependencies: Document added or removed dependencies.
  • Permissions: Document any changes to permissions.
  • Logging: Confirm that logging is appropriately handled.
  • Unit Testing: Confirm that changed classes were covered by unit tests.
  • Integration Testing: Confirm that changed logic was covered by integration tests.
  • Manual Testing: Confirm that changes were tested on local or dev environment.
  • NEWS: Confirm that the NEWS file is updated with relevant information about the changes made in this pull request.

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.

1 participant