ctubbsii commented on code in PR #5145:
URL: https://github.com/apache/accumulo/pull/5145#discussion_r1874034092


##########
server/base/src/main/java/org/apache/accumulo/server/AbstractServer.java:
##########
@@ -158,19 +160,26 @@ public String getApplicationName() {
   public abstract ServiceLock getLock();
 
   public void startServiceLockVerificationThread() {
+    Preconditions.checkState(verificationThread == null);
+    Preconditions.checkState(serverThread != null);

Review Comment:
   Could add a description parameter to be used with the resulting 
IllegalStateException if this check fails. I'm not sure I'd know what to do 
with this state trace if there wasn't a description with 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