Skip to content

Fix AlreadyClosedException when committing search indexes - #2477

Merged
nscuro merged 2 commits into
DependencyTrack:masterfrom
nscuro:issue-2379
Feb 9, 2023
Merged

nscuro merged 2 commits into
DependencyTrack:masterfrom
nscuro:issue-2379

Conversation

@nscuro

@nscuro nscuro commented Feb 9, 2023

Copy link
Copy Markdown
Member

Description

This PR fixes AlreadyClosedExceptions that occurred when search indexes were committed after the recurring index consistency check executed (every 72h per default). A more detailed analysis of this problem can be found in #2379 (comment)

Addressed Issue

Fixes #2379

Additional Details

N/A

Checklist

  • I have read and understand the contributing guidelines
  • This PR fixes a defect, and I have provided tests to verify that the fix is effective
  • This PR implements an enhancement, and I have provided tests to verify that it works as intended
  • This PR introduces changes to the database model, and I have added corresponding update logic
  • This PR introduces new or alters existing behavior, and I have updated the documentation accordingly

Will cause write locks to be released, should avoid stale lock files.

Signed-off-by: nscuro <[email protected]>
@nscuro
nscuro merged commit 7ed8523 into DependencyTrack:master Feb 9, 2023
@nscuro
nscuro deleted the issue-2379 branch February 25, 2023 14:32
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Mar 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Index commit occasionally fails with AlreadyClosedException in some deployments

1 participant