|
70 | 70 | import org.apache.ignite.internal.util.typedef.internal.U; |
71 | 71 | import org.apache.ignite.lang.IgniteFuture; |
72 | 72 | import org.apache.ignite.lang.IgniteFutureCancelledException; |
73 | | -import org.apache.ignite.lang.IgniteProductVersion; |
74 | 73 | import org.apache.ignite.lang.IgniteUuid; |
75 | 74 | import org.apache.ignite.spi.IgniteNodeValidationResult; |
76 | 75 | import org.apache.ignite.spi.IgniteSpiException; |
|
136 | 135 | */ |
137 | 136 | public class GridEncryptionManager extends GridManagerAdapter<EncryptionSpi> implements EncryptionCacheKeyProvider, |
138 | 137 | MetastorageLifecycleListener, IgniteChangeGlobalStateSupport, IgniteEncryption, PartitionsExchangeAware { |
139 | | - /** |
140 | | - * Cache encryption introduced in this Ignite version. |
141 | | - */ |
142 | | - private static final IgniteProductVersion CACHE_ENCRYPTION_SINCE = IgniteProductVersion.fromString("2.7.0"); |
143 | | - |
144 | 138 | /** Prefix for a master key name. */ |
145 | 139 | public static final String MASTER_KEY_NAME_PREFIX = "encryption-master-key-name"; |
146 | 140 |
|
@@ -1339,22 +1333,6 @@ private void writeTrackedWalIdxsToMetaStore() throws IgniteCheckedException { |
1339 | 1333 | } |
1340 | 1334 | } |
1341 | 1335 |
|
1342 | | - /** |
1343 | | - * Checks cache encryption supported by all nodes in cluster. |
1344 | | - * |
1345 | | - * @throws IgniteCheckedException If check fails. |
1346 | | - */ |
1347 | | - public void checkEncryptedCacheSupported() throws IgniteCheckedException { |
1348 | | - Collection<ClusterNode> nodes = ctx.grid().cluster().nodes(); |
1349 | | - |
1350 | | - for (ClusterNode node : nodes) { |
1351 | | - if (CACHE_ENCRYPTION_SINCE.compareTo(node.version()) > 0) { |
1352 | | - throw new IgniteCheckedException("All nodes in cluster should be 2.7.0 or greater " + |
1353 | | - "to create encrypted cache! [nodeId=" + node.id() + "]"); |
1354 | | - } |
1355 | | - } |
1356 | | - } |
1357 | | - |
1358 | 1336 | /** {@inheritDoc} */ |
1359 | 1337 | @Override public DiscoveryDataExchangeType discoveryDataType() { |
1360 | 1338 | return ENCRYPTION_MGR; |
|
0 commit comments