yuqi1129 commented on code in PR #9939:
URL: https://github.com/apache/gravitino/pull/9939#discussion_r2786909641


##########
common/src/main/java/org/apache/gravitino/Version.java:
##########
@@ -36,9 +36,10 @@ public class Version {
 
   private static final int VERSION_PART_NUMBER = 3;
   private static final Pattern PATTERN =
-      Pattern.compile("^(\\d+)\\.(\\d+)\\.(\\d+)(?:-.*|\\.([a-zA-Z].*))?$");
+      
Pattern.compile("^(\\d+)\\.(\\d+)\\.(\\d+)(?:rc(\\d{1,4})|-.*|\\.([a-zA-Z].*))?$");
 
   private static final Version INSTANCE = new Version();
+  private static final int MAX_RC_NUMBER = 1000;

Review Comment:
   Just a limit on the max rc number. If this one is not so mandatory, I can 
remove it.  



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to