You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by GitBox <gi...@apache.org> on 2021/03/05 16:28:33 UTC

[GitHub] [accumulo] EdColeman commented on a change in pull request #1958: Update ZooQueueLock prefix to match ZooLock prefix validation schema

EdColeman commented on a change in pull request #1958:
URL: https://github.com/apache/accumulo/pull/1958#discussion_r588443558



##########
File path: core/src/main/java/org/apache/accumulo/fate/zookeeper/ZooQueueLock.java
##########
@@ -32,7 +33,7 @@
 
 public class ZooQueueLock implements QueueLock {
 
-  private static final String PREFIX = "lock-";
+  private static final String PREFIX = "zlock#" + UUID.randomUUID() + "#";

Review comment:
       If it is required that this PREFIX here and the ZLOCK_PREFIX in ZooLock match, then maybe the definition should be placed in Constants and shared.  (Not saying that the should be the same, that's a different discussion)  




----------------------------------------------------------------
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:
users@infra.apache.org