mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Jean-Noel Rouvignac
10.07.2015 8b25db217598329ad656263fc55d4a48093f031b
refs
author Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Friday, April 10, 2015 11:07 +0200
committer Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Friday, April 10, 2015 11:07 +0200
commit8b25db217598329ad656263fc55d4a48093f031b
tree 488c7d2b555f6ba75a36d1c2fcf1502bf78a1c8e tree | zip | gz
parent 97947ce035cb1c5f669ea4cdcb22ad292fa2a4bf view | diff
OPENDJ-1893 (CR-6600) Do not hardcode Importer threadCount to 1

Problem was due to multiple threads sharing the same Persistit exchanges. Generally speaking DBs do not like mixing transactions and threads.
By using transactions for each DB access, the problem disappears.
Are we losing any performance by using full fledged transactions? Could we somehow do these operations in a thread safe manner without the need to use transactions?

Importer.java:
Use transactions for read/write operations on DN cache.
1 files modified
143 ■■■■■ changed files
opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/Importer.java 143 ●●●●● diff | view | raw | blame | history