public boolean isSignatureCompatibleWith(final KylinVersion v) { if (!isCompatibleWith(v)) { return false; } if (v.isSnapshot || isSnapshot) { return false;//for snapshot versions things are undetermined } boolean signatureIncompatible = Iterables.any(Iterables.filter( SIGNATURE_INCOMPATIBLE_REVISIONS, new Predicate<KylinVersion>() { @Override public boolean apply(@Nullable KylinVersion input) { return v.major == input.major && v.minor == input.minor; } }), new Predicate<KylinVersion>() { @Override public boolean apply(@Nullable KylinVersion input) { return input.revision > v.revision; } }); return !signatureIncompatible; }
if (!kylinVersion.isCompatibleWith(cubeVersion)) { logger.info("checkSignature on {} is skipped as the its version {} is different from kylin version {}", getName(), cubeVersion, kylinVersion); if (kylinVersion.isCompatibleWith(cubeVersion) && !kylinVersion.isSignatureCompatibleWith(cubeVersion)) { logger.info( "checkSignature on {} is skipped as the its version is {} (not signature compatible but compatible) ",
public boolean isSignatureCompatibleWith(final KylinVersion v) { if (!isCompatibleWith(v)) { return false; } if (v.isSnapshot || isSnapshot) { return false;//for snapshot versions things are undetermined } boolean signatureIncompatible = Iterables.any(Iterables.filter( SIGNATURE_INCOMPATIBLE_REVISIONS, new Predicate<KylinVersion>() { @Override public boolean apply(@Nullable KylinVersion input) { return v.major == input.major && v.minor == input.minor; } }), new Predicate<KylinVersion>() { @Override public boolean apply(@Nullable KylinVersion input) { return input.revision > v.revision; } }); return !signatureIncompatible; }
if (!kylinVersion.isCompatibleWith(cubeVersion)) { logger.info("checkSignature on {} is skipped as the its version {} is different from kylin version {}", getName(), cubeVersion, kylinVersion); if (kylinVersion.isCompatibleWith(cubeVersion) && !kylinVersion.isSignatureCompatibleWith(cubeVersion)) { logger.info( "checkSignature on {} is skipped as the its version is {} (not signature compatible but compatible) ",