From ba78676e8603087ebd3bf0ae25cc583def7261bd Mon Sep 17 00:00:00 2001 From: Stephen Rosenthal Date: Tue, 6 Sep 2016 11:04:12 -0400 Subject: [PATCH] Fix ConsistentKeyIDAuthority format string Previously the formatter %d was used for a java.time.Duration. When this code gets executed, instead of throwing the TemporaryLockingException, it would instead throw an IllegalFormatConversionException with the message "d != java.time.Duration". --- .../diskstorage/idmanagement/ConsistentKeyIDAuthority.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/titan-core/src/main/java/com/thinkaurelius/titan/diskstorage/idmanagement/ConsistentKeyIDAuthority.java b/titan-core/src/main/java/com/thinkaurelius/titan/diskstorage/idmanagement/ConsistentKeyIDAuthority.java index a7e4009b0a..11de22b841 100644 --- a/titan-core/src/main/java/com/thinkaurelius/titan/diskstorage/idmanagement/ConsistentKeyIDAuthority.java +++ b/titan-core/src/main/java/com/thinkaurelius/titan/diskstorage/idmanagement/ConsistentKeyIDAuthority.java @@ -345,7 +345,7 @@ public void close() {} } } - throw new TemporaryLockingException(String.format("Reached timeout %d (%s elapsed) when attempting to allocate id block on partition(%d)-namespace(%d)", + throw new TemporaryLockingException(String.format("Reached timeout %s (%s elapsed) when attempting to allocate id block on partition(%d)-namespace(%d)", timeout, methodTime.toString(), partition, idNamespace)); }