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

gbellato
02.47.2009 eb152f66224f9d6324640059a4d1114f7efa7fe1
refs
author gbellato <gbellato@localhost>
Friday, October 2, 2009 08:47 +0200
committer gbellato <gbellato@localhost>
Friday, October 2, 2009 08:47 +0200
commiteb152f66224f9d6324640059a4d1114f7efa7fe1
tree 2b1aabcdec1eff8340c0537a3f7e3acfc418e055 tree | zip | gz
parent a6708abe2e3544bc206a593ef6e2c68baf676a72 view | diff
Fix for 4265 : Unit test AssuredReplicationServerTest#testSafeDataLevelOne suffers randoms failures

The failures are caused by a real but very rare and minor bug.
When a Directory Server connects to a Replication Server at the same time a change is generated by
another server and this change is the first to be sent to the directory server it can be sent
with the wrong assured status.
This cause no harm in a real deployment but was causing test failure in our case.

This is fixed by using the message from the message queue rather than from the replication log
2 files modified
27 ■■■■■ changed files
opends/src/server/org/opends/server/replication/server/MessageHandler.java 13 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/server/AssuredReplicationServerTest.java 14 ●●●●● diff | view | raw | blame | history