|
@@ -26,7 +26,6 @@ import org.apache.lucene.search.Sort;
|
|
|
import org.apache.lucene.search.SortField;
|
|
|
import org.apache.lucene.store.Directory;
|
|
|
import org.apache.lucene.util.BytesRef;
|
|
|
-import org.apache.lucene.util.LuceneTestCase.AwaitsFix;
|
|
|
import org.elasticsearch.cluster.metadata.DataStream;
|
|
|
import org.elasticsearch.index.mapper.TimeSeriesIdFieldMapper;
|
|
|
import org.elasticsearch.search.aggregations.BucketCollector;
|
|
@@ -40,7 +39,6 @@ import java.util.concurrent.Executors;
|
|
|
import java.util.concurrent.TimeUnit;
|
|
|
import java.util.concurrent.atomic.AtomicInteger;
|
|
|
|
|
|
-@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/83647")
|
|
|
public class TimeSeriesIndexSearcherTests extends ESTestCase {
|
|
|
|
|
|
// Index a random set of docs with timestamp and tsid with the tsid/timestamp sort order
|
|
@@ -108,13 +106,13 @@ public class TimeSeriesIndexSearcherTests extends ESTestCase {
|
|
|
BytesRef latestTSID = tsid.lookupOrd(tsid.ordValue());
|
|
|
long latestTimestamp = timestamp.longValue();
|
|
|
if (currentTSID != null) {
|
|
|
- assertTrue(latestTSID.compareTo(currentTSID) >= 0);
|
|
|
+ assertTrue(currentTSID + "->" + latestTSID.utf8ToString(), latestTSID.compareTo(currentTSID) >= 0);
|
|
|
if (latestTSID.equals(currentTSID)) {
|
|
|
- assertTrue(latestTimestamp >= currentTimestamp);
|
|
|
+ assertTrue(currentTimestamp + "->" + latestTimestamp, latestTimestamp >= currentTimestamp);
|
|
|
}
|
|
|
}
|
|
|
currentTimestamp = latestTimestamp;
|
|
|
- currentTSID = latestTSID;
|
|
|
+ currentTSID = BytesRef.deepCopyOf(latestTSID);
|
|
|
total++;
|
|
|
}
|
|
|
};
|