Fix for 3764 : Changing the replication configuration during a total update hangs
This fix prevents the hang from happening by rejecting replication configuration changes
whenever a total update is in progress
| | |
| | | for domain %s. Message: %s |
| | | SEVERE_ERR_RESET_GENERATION_ID_FAILED_152=The generation ID could not be \ |
| | | reset for domain %s |
| | | NOTICE_ERR_CANNOT_CHANGE_CONFIG_DURING_TOTAL_UPDATE_153=Cannot change the \ |
| | | configuration while a total update is in progress |
| | |
| | | public boolean isConfigurationChangeAcceptable( |
| | | ReplicationDomainCfg configuration, List<Message> unacceptableReasons) |
| | | { |
| | | return true; |
| | | if (this.importInProgress() || this.exportInProgress()) |
| | | { |
| | | unacceptableReasons.add( |
| | | NOTE_ERR_CANNOT_CHANGE_CONFIG_DURING_TOTAL_UPDATE.get()); |
| | | return false; |
| | | } |
| | | else |
| | | return true; |
| | | } |
| | | |
| | | /** |
| | |
| | | * @return A boolean indicating if a total update import is currently |
| | | * in Progress. |
| | | */ |
| | | boolean importInProgress() |
| | | public boolean importInProgress() |
| | | { |
| | | if (ieContext == null) |
| | | return false; |
| | |
| | | * @return A boolean indicating if a total update export is currently |
| | | * in Progress. |
| | | */ |
| | | boolean exportInProgress() |
| | | public boolean exportInProgress() |
| | | { |
| | | if (ieContext == null) |
| | | return false; |