Skip to content

Commit 515e408

Browse files
committed
Clean up a few more instances of "metaData"
We recently cleaned up the use of the word "metadata" across the codebase. A few more additional uses have trickled in, likely from in-progress work. This commit cleans up these last few additional instances. Relates elastic#54519
1 parent 3a6e013 commit 515e408

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

server/src/test/java/org/elasticsearch/cluster/routing/allocation/AllocationServiceTests.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ public ShardAllocationDecision decideShardAllocation(ShardRouting shard, Routing
149149
nodesBuilder.add(new DiscoveryNode("node2", buildNewFakeTransportAddress(), Version.CURRENT));
150150
nodesBuilder.add(new DiscoveryNode("node3", buildNewFakeTransportAddress(), Version.CURRENT));
151151

152-
final Metadata.Builder metaData = Metadata.builder()
152+
final Metadata.Builder metadata = Metadata.builder()
153153
// create 3 indices with different priorities. The high and low priority indices use the default allocator which (in this test)
154154
// does not allocate any replicas, whereas the medium priority one uses the unrealistic allocator which does allocate replicas
155155
.put(indexMetadata("highPriority", Settings.builder()
@@ -166,14 +166,14 @@ public ShardAllocationDecision decideShardAllocation(ShardRouting shard, Routing
166166
.put(ExistingShardsAllocator.EXISTING_SHARDS_ALLOCATOR_SETTING.getKey(), "unknown")));
167167

168168
final RoutingTable.Builder routingTableBuilder = RoutingTable.builder()
169-
.addAsRecovery(metaData.get("highPriority"))
170-
.addAsRecovery(metaData.get("mediumPriority"))
171-
.addAsRecovery(metaData.get("lowPriority"))
172-
.addAsRecovery(metaData.get("invalid"));
169+
.addAsRecovery(metadata.get("highPriority"))
170+
.addAsRecovery(metadata.get("mediumPriority"))
171+
.addAsRecovery(metadata.get("lowPriority"))
172+
.addAsRecovery(metadata.get("invalid"));
173173

174174
final ClusterState clusterState = ClusterState.builder(ClusterName.DEFAULT)
175175
.nodes(nodesBuilder)
176-
.metadata(metaData)
176+
.metadata(metadata)
177177
.routingTable(routingTableBuilder.build())
178178
.build();
179179

x-pack/plugin/searchable-snapshots/src/test/java/org/elasticsearch/index/store/cache/CachedBlobContainerIndexInputTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@ public void testRandomReads() throws IOException {
5454
final byte[] input = randomUnicodeOfLength(randomIntBetween(1, 100_000)).getBytes(StandardCharsets.UTF_8);
5555

5656
final String blobName = randomUnicodeOfLength(10);
57-
final StoreFileMetadata metaData = new StoreFileMetadata(fileName, input.length, "_na", Version.CURRENT.luceneVersion);
57+
final StoreFileMetadata metadata = new StoreFileMetadata(fileName, input.length, "_na", Version.CURRENT.luceneVersion);
5858

5959
final int partSize = randomBoolean() ? input.length : randomIntBetween(1, input.length);
6060

6161
final BlobStoreIndexShardSnapshot snapshot = new BlobStoreIndexShardSnapshot(
6262
snapshotId.getName(),
6363
0L,
64-
List.of(new BlobStoreIndexShardSnapshot.FileInfo(blobName, metaData, new ByteSizeValue(partSize))),
64+
List.of(new BlobStoreIndexShardSnapshot.FileInfo(blobName, metadata, new ByteSizeValue(partSize))),
6565
0L,
6666
0L,
6767
0,

0 commit comments

Comments
 (0)