Skip to content

Commit

Permalink
Merge pull request #4221 from nscuro/issue-4220
Browse files Browse the repository at this point in the history
Fix unintended manual flushing mode due to DataNucleus `ExecutionContext` pooling
  • Loading branch information
nscuro authored Oct 9, 2024
2 parents d84ee0f + 5e56fda commit c98fc03
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,13 @@ alpine.database.pool.max.lifetime=600000
# DO NOT CHANGE UNLESS THERE IS A GOOD REASON TO.
# alpine.datanucleus.cache.level2.type=

# Required
# Controls the maximum number of ExecutionContext objects that are pooled by DataNucleus.
# The default defined by DataNucleus is 20. However, since Dependency-Track occasionally
# tweaks ExecutionContexts (e.g. to disable auto-flushing for insert-heavy tasks),
# they are not safe for reuse. We thus disable EC pooling completely.
alpine.datanucleus.executioncontext.maxidle=0

# Required
# Specifies the number of bcrypt rounds to use when hashing a users password.
# The higher the number the more secure the password, at the expense of
Expand Down

0 comments on commit c98fc03

Please sign in to comment.