private void validateClusterVersionChange ( Version newClusterVersion ) { if ( ! clusterVersion . isUnknown ( ) && clusterVersion . getMajor ( ) != newClusterVersion . getMajor ( ) ) { throw new IllegalArgumentException ( "Transition to requested version " + newClusterVersion + " not allowed for current cluster version " + clusterVersion ) ; } }
validate transition from current to newClusterVersion is allowed