kcmvp commented on a change in pull request #6884: Ignite 12088
URL: https://github.com/apache/ignite/pull/6884#discussion_r326240046
##########
File path:
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheUtils.java
##########
@@ -1578,6 +1581,17 @@ public static TransactionConfiguration
transactionConfiguration(@Nullable final
*/
public static void validateCacheName(String name) throws
IllegalArgumentException {
A.ensure(name != null && !name.isEmpty(), "Cache name must not be null
or empty.");
+ A.ensure(name.length() <= MAX_FILE_NAME_LENGTH, "Length of cache name
can not exceed "+ MAX_FILE_NAME_LENGTH +".");
+ }
+
+ /**
+ *
+ * @param name
+ * @throws IllegalArgumentException In case group name is not valid
+ */
+ public static void validateCacheGroupName(String name) throws
IllegalArgumentException {
+ if (name != null)
+ A.ensure(name.length() <= MAX_FILE_NAME_LENGTH, "Length of cache
group name can not exceed "+ MAX_FILE_NAME_LENGTH +".");
Review comment:
done!
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services