You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by GitBox <gi...@apache.org> on 2022/01/25 14:40:53 UTC
[GitHub] [ignite-extensions] nizhikov commented on a change in pull request #98: IGNITE-16386 Set clusterId on node restart
nizhikov commented on a change in pull request #98:
URL: https://github.com/apache/ignite-extensions/pull/98#discussion_r791780709
##########
File path: modules/cdc-ext/src/main/java/org/apache/ignite/cdc/conflictresolve/CacheConflictResolutionManagerImpl.java
##########
@@ -38,22 +39,42 @@
*/
private final String conflictResolveField;
+ /** CLuster Id. */
+ private final byte clusterId;
+
/** Grid cache context. */
private GridCacheContext<K, V> cctx;
/**
* @param conflictResolveField Field to resolve conflicts.
*/
- public CacheConflictResolutionManagerImpl(String conflictResolveField) {
+ public CacheConflictResolutionManagerImpl(String conflictResolveField, byte clusterId) {
this.conflictResolveField = conflictResolveField;
+ this.clusterId = clusterId;
}
/** {@inheritDoc} */
@Override public CacheVersionConflictResolver conflictResolver() {
+ cctx.logger(this.getClass()).info("Conflict resolver created [" +
+ "cache=" + cctx.name() +
+ ", clusterId=" + clusterId +
+ ", conflictResolveField=" + conflictResolveField + ']'
+ );
+
+ IgniteLogger log = cctx.logger(CacheVersionConflictResolverImpl.class);
Review comment:
Fixed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org