Skip to content

Commit

Permalink
Spotless fix
Browse files Browse the repository at this point in the history
Signed-off-by: Sandesh Kumar <sandeshkr419@gmail.com>
  • Loading branch information
sandeshkr419 committed Jun 8, 2023
1 parent 01fcd3a commit 59af76e
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1160,7 +1160,7 @@ public Builder(Metadata metadata) {
this.indicesPreviousState = new HashMap<>(metadata.indices); // required for comparing with updated indices
this.templates = new HashMap<>(metadata.templates);
this.customs = new HashMap<>(metadata.customs);
dataStreamPreviousMetadata = (DataStreamMetadata) metadata.customs.get(DataStreamMetadata.TYPE);
this.dataStreamPreviousMetadata = (DataStreamMetadata) metadata.customs.get(DataStreamMetadata.TYPE);
this.indicesLookup = new TreeMap<>(metadata.indicesLookup);
this.allIndices = Arrays.copyOf(metadata.allIndices, metadata.allIndices.length);
this.visibleIndices = Arrays.copyOf(metadata.visibleIndices, metadata.visibleIndices.length);
Expand Down Expand Up @@ -1453,7 +1453,8 @@ public Builder generateClusterUuidIfNeeded() {

public Metadata build() {
TimeValue buildStartTime = TimeValue.timeValueMillis(System.nanoTime());
boolean recomputeRequired = indices.equals(indicesPreviousState) == false || dataStreamPreviousMetadata.equals(this.customs.get(DataStreamMetadata.TYPE)) == false;
boolean recomputeRequired = indices.equals(indicesPreviousState) == false
|| dataStreamPreviousMetadata.equals(this.customs.get(DataStreamMetadata.TYPE)) == false;
TimeValue recomputeEndTime = TimeValue.timeValueMillis(System.nanoTime());
logger.info(
"Recompute required: {}, time taken for comparing indices: {} ms",
Expand Down

0 comments on commit 59af76e

Please sign in to comment.