Commit aa7752e94288256d0370072975cf1457f2b0de89
Committed by
Andrew Shvayka
1 parent
b418b08d
fix typo
Showing
1 changed file
with
2 additions
and
0 deletions
@@ -121,6 +121,8 @@ public class JpaPsqlTimeseriesDao extends AbstractChunkedAggregationTimeseriesDa | @@ -121,6 +121,8 @@ public class JpaPsqlTimeseriesDao extends AbstractChunkedAggregationTimeseriesDa | ||
121 | if (ex.getCause() instanceof ConstraintViolationException) { | 121 | if (ex.getCause() instanceof ConstraintViolationException) { |
122 | log.warn("Saving partition [{}] rejected. Timeseries data will save to the ts_kv_indefinite (DEFAULT) partition.", psqlPartition.getPartitionDate()); | 122 | log.warn("Saving partition [{}] rejected. Timeseries data will save to the ts_kv_indefinite (DEFAULT) partition.", psqlPartition.getPartitionDate()); |
123 | partitions.put(psqlPartition.getStart(), psqlPartition); | 123 | partitions.put(psqlPartition.getStart(), psqlPartition); |
124 | + } else { | ||
125 | + throw new RuntimeException(ex); | ||
124 | } | 126 | } |
125 | } finally { | 127 | } finally { |
126 | partitionCreationLock.unlock(); | 128 | partitionCreationLock.unlock(); |