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

gbellato
02.47.2009 d54f458902ba8de3503f8cd24e1f30821e151a56
refs
author gbellato <gbellato@localhost>
Friday, October 2, 2009 08:47 +0200
committer gbellato <gbellato@localhost>
Friday, October 2, 2009 08:47 +0200
commitd54f458902ba8de3503f8cd24e1f30821e151a56
tree cd99676c3d6a46c9258fc71eb62e1555f6975f99 tree | zip | gz
parent 4ef06f6db1a70fd27ea878602c5e4a380502f186 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
opendj-sdk/opends/src/server/org/opends/server/replication/server/MessageHandler.java 13 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/server/AssuredReplicationServerTest.java 14 ●●●●● diff | view | raw | blame | history