kezhuw commented on code in PR #1260:
URL: https://github.com/apache/curator/pull/1260#discussion_r2027109436
##########
curator-recipes/src/main/java/org/apache/curator/framework/recipes/nodes/PersistentTtlNode.java:
##########
@@ -68,6 +69,7 @@ public class PersistentTtlNode implements Closeable {
private final ScheduledExecutorService executorService;
private final AtomicReference<Future<?>> futureRef = new
AtomicReference<>();
private final String childPath;
+ private volatile boolean skipTouch; // Just for testing
Review Comment:
I would prefer an overridable method(similar to the `deleteNode`) over
unused member. Testing code could make it a nop to skip touch node creation.
--
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]