Skip to content

Commit

Permalink
GG-19515: GG: destroying of the cache and re-creating with the same n…
Browse files Browse the repository at this point in the history
…ame make DR paused in case of persistence.
  • Loading branch information
AMashenkov committed Jun 27, 2019
1 parent 6ccbbfe commit e093716
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2226,7 +2226,7 @@ private String exchangeTimingsLogMessage(String header, List<String> timings) {

if (drCacheCtx.isDrEnabled()) {
try {
drCacheCtx.dr().onExchange(res, exchId.isLeft(), activateCluster());
drCacheCtx.dr().onExchange(res, exchId.isLeft());
}
catch (IgniteCheckedException e) {
U.error(log, "Failed to notify DR: " + e, e);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,9 @@ public void replicate(KeyCacheObject key,
*
* @param topVer Topology version.
* @param left {@code True} if exchange has been caused by node leave.
* @param activate {@code True} if exchange has been caused by cluster activation.
* @throws IgniteCheckedException If failed.
*/
public void onExchange(AffinityTopologyVersion topVer, boolean left, boolean activate) throws IgniteCheckedException;
public void onExchange(AffinityTopologyVersion topVer, boolean left) throws IgniteCheckedException;

/**
* @return {@code True} is DR is enabled.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public class GridOsCacheDrManager implements GridCacheDrManager {
}

/** {@inheritDoc} */
@Override public void onExchange(AffinityTopologyVersion topVer, boolean left, boolean activate) throws IgniteCheckedException {
@Override public void onExchange(AffinityTopologyVersion topVer, boolean left) throws IgniteCheckedException {
// No-op.
}

Expand Down

0 comments on commit e093716

Please sign in to comment.