Skip to content

Commit

Permalink
[CI] Auto commit changes from spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
elasticsearchmachine committed Jan 16, 2025
1 parent 4e96e9b commit 96943e5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,7 @@ public class TimeSeriesMetricNamesHashFieldMapper extends MetadataFieldMapper {
public static final TimeSeriesMetricNamesHashFieldMapper INSTANCE = new TimeSeriesMetricNamesHashFieldMapper();

public static final TypeParser PARSER = new FixedTypeParser(c -> c.getIndexSettings().getMode().timeSeriesMetricNamesHashFieldMapper());
static final NodeFeature TS_METRIC_NAMES_HASH = new NodeFeature(
"tsdb.ts_metric_names_hash",
true
);
static final NodeFeature TS_METRIC_NAMES_HASH = new NodeFeature("tsdb.ts_metric_names_hash", true);

private TimeSeriesMetricNamesHashFieldMapper() {
super(TimeSeriesMetricNamesHashFieldType.INSTANCE);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public void testSynthesizeIdDifferentMetricName() throws Exception {
assertThat(indexReader.leaves(), hasSize(1));
LeafReader leafReader = indexReader.leaves().get(0).reader();
assertThat(leafReader.numDocs(), equalTo(2));
var leaf = idLoader.leaf(null, leafReader, new int[]{0, 1});
var leaf = idLoader.leaf(null, leafReader, new int[] { 0, 1 });
assertThat(leaf.getId(0), not(equalTo(leaf.getId(1))));
};
prepareIndexReader(indexAndForceMerge(docs, routingHash), verify, false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@

package org.elasticsearch.index.mapper;

import junit.framework.TestCase;

import org.elasticsearch.test.ESTestCase;

import java.io.IOException;

public class TimeSeriesMetricNamesHashFieldMapperTests extends MetadataMapperTestCase {
Expand Down

0 comments on commit 96943e5

Please sign in to comment.