dlmarion commented on code in PR #5749: URL: https://github.com/apache/accumulo/pull/5749#discussion_r2318795829
########## core/src/main/java/org/apache/accumulo/core/data/ResourceGroupId.java: ########## @@ -18,15 +18,18 @@ */ package org.apache.accumulo.core.data; +import java.util.regex.Pattern; + import org.apache.accumulo.core.Constants; -import org.apache.accumulo.core.conf.cluster.ClusterConfigParser; import org.apache.accumulo.core.util.cache.Caches; import org.apache.accumulo.core.util.cache.Caches.CacheName; import com.github.benmanes.caffeine.cache.Cache; public class ResourceGroupId extends AbstractId<ResourceGroupId> { + public static final Pattern GROUP_NAME_PATTERN = Pattern.compile("^[a-zA-Z]+(_?[a-zA-Z0-9])*$"); Review Comment: IIRC I found the regex somewhere because I ran into the problem of the resource group name including characters that were invalid for a bash variable name. The `cluster.yaml` file is parsed and the contents written out to a file which is then sourced by `accumulo-cluster`. Happy to replace with a different regex, just need to make sure that it's compliant with bash variable names. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@accumulo.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org