Github user kirklund commented on a diff in the pull request: https://github.com/apache/incubator-geode/pull/278#discussion_r86038578 --- Diff: geode-core/src/main/java/org/apache/geode/management/internal/cli/commands/CreateAlterDestroyRegionCommands.java --- @@ -907,6 +903,31 @@ private void validateRegionFunctionArgs(Cache cache, RegionFunctionArgs regionFu new Object[] {regionFunctionArgs.getCompressor()})); } } + + if (regionFunctionArgs.hasPartitionAttributes()) { + boolean partitionResolverFailure = false; + if (regionFunctionArgs.isPartitionResolverSet()) { + String partitionResolverClassName = regionFunctionArgs.getPartitionResolver(); + Object partitionResolver = null; + + try { + Class<?> compressorClass = --- End diff -- Variable name is probably wrong(?) or copied from other code. Since the class is of a known type, we should specify that here instead of using '?': String partitionResolverClassName = PRResolver.class.getName(); Class<PartitionResolver> resolverClass = (Class<PartitionResolver>)ClassPathLoader.getLatest().forName(partitionResolverClassName); PartitionResolver partitionResolver = resolverClass.newInstance();
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---