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

Race Condition in Import Jobs #4

Open
clstopher opened this issue Dec 5, 2024 · 0 comments
Open

Race Condition in Import Jobs #4

clstopher opened this issue Dec 5, 2024 · 0 comments

Comments

@clstopher
Copy link

All of the jobs use a similar splitFiles() function. Inside of this function, they each trigger Bloomreach API and then flush and close the file that they just triggered the import for. If the Bloomreach server import job happens to request the file before the SFCC server resumes execution of the job, that means Bloomreach will not download the full file.

These operations should be reordered to flush, close, and then trigger the imports.

Example lines (note that this appears in several other similar functions):

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

No branches or pull requests

1 participant