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.

(cherry picked from commit e093716)
  • Loading branch information
ibelyakov committed Jul 5, 2019
1 parent ad9070d commit 3616b6a
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 @@ -2173,7 +2173,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 @@ -60,10 +60,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 @@ -78,7 +78,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 3616b6a

Please sign in to comment.