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

neil_a_wilson
02.35.2007 bf62fe2d81a22e50065a0c682a4ffb2a1308122f
refs
author neil_a_wilson <neil_a_wilson@localhost>
Friday, February 2, 2007 21:35 +0100
committer neil_a_wilson <neil_a_wilson@localhost>
Friday, February 2, 2007 21:35 +0100
commitbf62fe2d81a22e50065a0c682a4ffb2a1308122f
tree 504fe6cdfc7c49002ac1d1e82d9d57c092e7c2ed tree | zip | gz
parent cb237b3fb0059532038d98bfc4ad48419c4472d0 view | diff
Update the code involving change notification listeners to ensure that they are
invoked just before the response is sent to the client rather than just after
the response. This can help avoid race conditions in which the server needs to
use a change notification listener to perform some additional processing for a
given operation, and the client sends a second request that depends on this
processing immediately after receiving a "success" response for the operation
that triggered the change notification.

OpenDS Issue Number: 1200
7 files modified
202 ■■■■■ changed files
opends/src/server/org/opends/server/api/ChangeNotificationListener.java 42 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/core/AddOperation.java 33 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/core/DeleteOperation.java 35 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/core/GroupManager.java 12 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/core/ModifyDNOperation.java 33 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/core/ModifyOperation.java 33 ●●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/core/TestChangeNotificationListener.java 14 ●●●●● diff | view | raw | blame | history