private void checkIgfsOnRemoteNode(ClusterNode rmtNode) throws IgniteCheckedException {
  IgfsAttributes[] locAttrs=ctx.discovery().localNode().attribute(IgniteNodeAttributes.ATTR_IGFS);
  IgfsAttributes[] rmtAttrs=rmtNode.attribute(IgniteNodeAttributes.ATTR_IGFS);
  if (F.isEmpty(locAttrs) || F.isEmpty(rmtAttrs))   return;
  assert rmtAttrs != null && locAttrs != null;
  for (  IgfsAttributes rmtAttr : rmtAttrs)   for (  IgfsAttributes locAttr : locAttrs) {
    if (!F.eq(rmtAttr.igfsName(),locAttr.igfsName())) {
      if (F.eq(rmtAttr.metaCacheName(),locAttr.metaCacheName()))       throw new IgniteCheckedException("Meta cache names should be different for different IGFS instances " + "configuration (fix configuration or set " + "-D" + IGNITE_SKIP_CONFIGURATION_CONSISTENCY_CHECK + "=true system "+ "property) [metaCacheName="+ rmtAttr.metaCacheName()+ ", locNodeId="+ ctx.localNodeId()+ ", rmtNodeId="+ rmtNode.id()+ ", locIgfsName="+ locAttr.igfsName()+ ", rmtIgfsName="+ rmtAttr.igfsName()+ ']');
      if (F.eq(rmtAttr.dataCacheName(),locAttr.dataCacheName()))       throw new IgniteCheckedException("Data cache names should be different for different IGFS instances " + "configuration (fix configuration or set " + "-D" + IGNITE_SKIP_CONFIGURATION_CONSISTENCY_CHECK + "=true system "+ "property)[dataCacheName="+ rmtAttr.dataCacheName()+ ", locNodeId="+ ctx.localNodeId()+ ", rmtNodeId="+ rmtNode.id()+ ", locIgfsName="+ locAttr.igfsName()+ ", rmtIgfsName="+ rmtAttr.igfsName()+ ']');
      continue;
    }
    checkSame("Data block size","BlockSize",rmtNode.id(),rmtAttr.blockSize(),locAttr.blockSize(),rmtAttr.igfsName());
    checkSame("Affinity mapper group size","GrpSize",rmtNode.id(),rmtAttr.groupSize(),locAttr.groupSize(),rmtAttr.igfsName());
    checkSame("Meta cache name","MetaCacheName",rmtNode.id(),rmtAttr.metaCacheName(),locAttr.metaCacheName(),rmtAttr.igfsName());
    checkSame("Data cache name","DataCacheName",rmtNode.id(),rmtAttr.dataCacheName(),locAttr.dataCacheName(),rmtAttr.igfsName());
    checkSame("Default mode","DefaultMode",rmtNode.id(),rmtAttr.defaultMode(),locAttr.defaultMode(),rmtAttr.igfsName());
    checkSame("Path modes","PathModes",rmtNode.id(),rmtAttr.pathModes(),locAttr.pathModes(),rmtAttr.igfsName());
    checkSame("Fragmentizer enabled","FragmentizerEnabled",rmtNode.id(),rmtAttr.fragmentizerEnabled(),locAttr.fragmentizerEnabled(),rmtAttr.igfsName());
  }
}

private void checkIgfsOnRemoteNode ( ClusterNode rmtNode ) throws IgniteCheckedException { IgfsAttributes [ ] locAttrs = ctx . discovery ( ) . localNode ( ) . attribute ( IgniteNodeAttributes . ATTR_IGFS ) ; IgfsAttributes [ ] rmtAttrs = rmtNode . attribute ( IgniteNodeAttributes . ATTR_IGFS ) ; if ( F . isEmpty ( locAttrs ) || F . isEmpty ( rmtAttrs ) ) return ; assert rmtAttrs != null && locAttrs != null ; for ( IgfsAttributes rmtAttr : rmtAttrs ) for ( IgfsAttributes locAttr : locAttrs ) { if ( ! F . eq ( rmtAttr . igfsName ( ) , locAttr . igfsName ( ) ) ) { if ( F . eq ( rmtAttr . metaCacheName ( ) , locAttr . metaCacheName ( ) ) ) throw new IgniteCheckedException ( "Meta cache names should be different for different IGFS instances " + "configuration (fix configuration or set " + "-D" + IGNITE_SKIP_CONFIGURATION_CONSISTENCY_CHECK + "=true system " + "property) [metaCacheName=" + rmtAttr . metaCacheName ( ) + ", locNodeId=" + ctx . localNodeId ( ) + ", rmtNodeId=" + rmtNode . id ( ) + ", locIgfsName=" + locAttr . igfsName ( ) + ", rmtIgfsName=" + rmtAttr . igfsName ( ) + ']' ) ; if ( F . eq ( rmtAttr . dataCacheName ( ) , locAttr . dataCacheName ( ) ) ) throw new IgniteCheckedException ( "Data cache names should be different for different IGFS instances " + "configuration (fix configuration or set " + "-D" + IGNITE_SKIP_CONFIGURATION_CONSISTENCY_CHECK + "=true system " + "property)[dataCacheName=" + rmtAttr . dataCacheName ( ) + ", locNodeId=" + ctx . localNodeId ( ) + ", rmtNodeId=" + rmtNode . id ( ) + ", locIgfsName=" + locAttr . igfsName ( ) + ", rmtIgfsName=" + rmtAttr . igfsName ( ) + ']' ) ; continue ; } checkSame ( "Data block size" , "BlockSize" , rmtNode . id ( ) , rmtAttr . blockSize ( ) , locAttr . blockSize ( ) , rmtAttr . igfsName ( ) ) ; checkSame ( "Affinity mapper group size" , "GrpSize" , rmtNode . id ( ) , rmtAttr . groupSize ( ) , locAttr . groupSize ( ) , rmtAttr . igfsName ( ) ) ; checkSame ( "Meta cache name" , "MetaCacheName" , rmtNode . id ( ) , rmtAttr . metaCacheName ( ) , locAttr . metaCacheName ( ) , rmtAttr . igfsName ( ) ) ; checkSame ( "Data cache name" , "DataCacheName" , rmtNode . id ( ) , rmtAttr . dataCacheName ( ) , locAttr . dataCacheName ( ) , rmtAttr . igfsName ( ) ) ; checkSame ( "Default mode" , "DefaultMode" , rmtNode . id ( ) , rmtAttr . defaultMode ( ) , locAttr . defaultMode ( ) , rmtAttr . igfsName ( ) ) ; checkSame ( "Path modes" , "PathModes" , rmtNode . id ( ) , rmtAttr . pathModes ( ) , locAttr . pathModes ( ) , rmtAttr . igfsName ( ) ) ; checkSame ( "Fragmentizer enabled" , "FragmentizerEnabled" , rmtNode . id ( ) , rmtAttr . fragmentizerEnabled ( ) , locAttr . fragmentizerEnabled ( ) , rmtAttr . igfsName ( ) ) ; } }
check igfs config on remote node .
