We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa4c896 commit 027a119Copy full SHA for 027a119
hbase-common/src/main/java/org/apache/hadoop/hbase/util/PrettyPrinter.java
@@ -184,7 +184,11 @@ private static long humanReadableIntervalToSec(final String humanReadableInterva
184
hours = matcher.group(6);
185
minutes = matcher.group(8);
186
seconds = matcher.group(10);
187
+ } else {
188
+ LOG.warn("Given interval value '{}' is not a number and does not match human readable format,"
189
+ + " value will be set to 0.", humanReadableInterval);
190
}
191
+
192
ttl = 0;
193
ttl += days != null ? Long.parseLong(days) * HConstants.DAY_IN_SECONDS : 0;
194
ttl += hours != null ? Long.parseLong(hours) * HConstants.HOUR_IN_SECONDS : 0;
0 commit comments