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

lutoff
12.59.2009 d24cd9dbc64c0a85f7d4178eadadc1d5cb4f6c44
refs
author lutoff <lutoff@localhost>
Monday, January 12, 2009 10:59 +0100
committer lutoff <lutoff@localhost>
Monday, January 12, 2009 10:59 +0100
commitd24cd9dbc64c0a85f7d4178eadadc1d5cb4f6c44
tree 596c061efc52febbbea92edad1e84d11559abfbd tree | zip | gz
parent 67dd9404996dd5138f80c28ad8f8bab1164a0c19 view | diff
Fix for  issue #2829 (Problems configuring and unconfiguring replication servers)
scenario:
1) configure and start 2 servers s1 and s2
2) enable the replication between them
3) disable replication on server s1
4) disable replication on server s2
5) re-enable the replication between them

we've got an error on step 5

The root cause is actually on step 3, when the replication is disabled
on server s1: all references to s1, including the s1 public instance
key, are removed from "cn=admin data" on all servers. To do that, we
just remove the info on one server, and the replication protocol will
propagate it on all the other.
The drawback (actually the issue) is that this public instance key is
indirectly used by several components. At least, the replication
protocol itself required the key to establish the connection between
replication servers on s1 and s2.
So, when we try to re-enable the replication the s1 public instance
key cannot be found and we've got the error.


fix:
At the end of the disable-replication process, we add again the
previously removed public instance key.

2 files modified
42 ■■■■■ changed files
opends/src/ads/org/opends/admin/ads/ADSContextHelper.java 9 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/tools/dsreplication/ReplicationCliMain.java 33 ●●●●● diff | view | raw | blame | history