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

neil_a_wilson
02.35.2007 20c804510a308ad66a141b9d91acdfb90de6b461
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
commit20c804510a308ad66a141b9d91acdfb90de6b461
tree 4ac2c35a0e950780d055c4181131f87b5ef43518 tree | zip | gz
parent b412922db4890b29983893fbc4b39452846b2fd6 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
opendj-sdk/opends/src/server/org/opends/server/api/ChangeNotificationListener.java 42 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/core/AddOperation.java 33 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/core/DeleteOperation.java 35 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/core/GroupManager.java 12 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/core/ModifyDNOperation.java 33 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/core/ModifyOperation.java 33 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/core/TestChangeNotificationListener.java 14 ●●●●● diff | view | raw | blame | history