Skip to content

Fix race condition in XSD PreparseResult intialization#9959

Merged
nielsm5 merged 1 commit intomasterfrom
issue/9958_ValidatorPreParseRaceCondition
Nov 24, 2025
Merged

Fix race condition in XSD PreparseResult intialization#9959
nielsm5 merged 1 commit intomasterfrom
issue/9958_ValidatorPreParseRaceCondition

Conversation

@tnleeuw
Copy link
Contributor

@tnleeuw tnleeuw commented Nov 24, 2025

Changes

I believe this fixes the race condition, even if the variable might still be initialized twice because I don't want to add locking.
The initialization of the list now happens in each thread independently so different threads don't interfere with each other's work.

Pull Request Checklist

Title

  • Title expresses the business value (who benefits + what outcome)

Issues

Backports

  • Backport PRs created (if needed) and linked

Documentation

  • FF! Doc updated (user-facing behavior/config)
  • FF! Manual updated (if applicable)
  • Javadoc updated/generated (developer-facing APIs)

Tests

  • Unit tests added/updated
  • E2E/Integration tests added/updated (if applicable)

Breaking changes

  • Breaking change recorded in markdown file
  • Migration notes included (if needed)

@tnleeuw tnleeuw self-assigned this Nov 24, 2025
@sonarqubecloud
Copy link

@nielsm5 nielsm5 merged commit a06e84a into master Nov 24, 2025
31 checks passed
@nielsm5 nielsm5 deleted the issue/9958_ValidatorPreParseRaceCondition branch November 24, 2025 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NPE thrown in Json2XmlValidator

2 participants