Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,11 @@ private void handleNewMetricName(String metricName) {
*/
private byte[] ensureFollowing(byte[] topRow, byte[] newStart) {
if (WritableComparator.compareBytes(topRow, 0, topRow.length, newStart, 0, newStart.length) >= 0) {
// log a message so that we can determine how often this happens.
StringBuilder builder = new StringBuilder().append("Found a row in which the timestamp significantly differs from the encoded time: ");
Key.appendPrintableString(topRow, 0, topRow.length, topRow.length, builder);
log.warn(builder.toString());

byte[] followingRow = new byte[topRow.length + 1];
System.arraycopy(topRow, 0, followingRow, 0, topRow.length);
followingRow[topRow.length] = (byte) 0x00;
Expand Down