mmodzelewski commented on code in PR #4068:
URL: https://github.com/apache/iggy/pull/4068#discussion_r3948955366


##########
foreign/java/java-sdk/src/main/java/org/apache/iggy/message/Partitioning.java:
##########
@@ -38,10 +50,15 @@ public static Partitioning partitionId(Long id) {
     }
 
     public static Partitioning messagesKey(String key) {
-        if (key == null || key.isBlank() || key.length() > 255) {
-            throw new IggyInvalidArgumentException("Key must be non-empty and 
less than 255 characters long");
+        if (key == null || key.isBlank()) {
+            throw new IggyInvalidArgumentException("Key must be non-empty");
+        }
+        byte[] encoded = key.getBytes(StandardCharsets.UTF_8);

Review Comment:
   added info to the PR description



-- 
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