@@ -128,7 +128,7 @@ public void testSnapshotShardPathInputHashPath() {
128128 assertEquals (BlobPath .cleanPath ().add (SHARD_ID ).add (INDEX_UUID ), input .hashPath ());
129129 }
130130
131- public void testShardDataPathInputWithWriterNodeId () {
131+ public void testShardDataPathInputWithIndexFixedPrefix () {
132132 RemoteStorePathStrategy pathStrategy = new RemoteStorePathStrategy (PathType .FIXED );
133133
134134 RemoteStorePathStrategy .ShardDataPathInput pathInput = RemoteStorePathStrategy .ShardDataPathInput .builder ()
@@ -137,17 +137,17 @@ public void testShardDataPathInputWithWriterNodeId() {
137137 .shardId ("0" )
138138 .dataCategory (DataCategory .SEGMENTS )
139139 .dataType (DataType .DATA )
140- .writerNodeId ("writer-node-1" )
140+ .indexFixedPrefix ("writer-node-1" )
141141 .build ();
142142
143143 BlobPath result = pathStrategy .generatePath (pathInput );
144144 String pathString = result .buildAsString ();
145145
146- assertTrue ("Path should contain writer node ID " , pathString .contains ("writer-node-1" ));
146+ assertTrue ("Path should contain index fixed prefix " , pathString .contains ("writer-node-1" ));
147147 assertTrue ("Path should follow expected structure" , pathString .contains ("test-repo/test-index-uuid/0/writer-node-1/segments/data" ));
148148 }
149149
150- public void testShardDataPathInputWithoutWriterNodeId () {
150+ public void testShardDataPathInputWithoutIndexFixedPrefix () {
151151 RemoteStorePathStrategy pathStrategy = new RemoteStorePathStrategy (PathType .FIXED );
152152
153153 RemoteStorePathStrategy .ShardDataPathInput pathInput = RemoteStorePathStrategy .ShardDataPathInput .builder ()
@@ -161,11 +161,11 @@ public void testShardDataPathInputWithoutWriterNodeId() {
161161 BlobPath result = pathStrategy .generatePath (pathInput );
162162 String pathString = result .buildAsString ();
163163
164- assertFalse ("Path should not contain writer node ID " , pathString .contains ("writer-node-1" ));
164+ assertFalse ("Path should not contain index fixed prefix " , pathString .contains ("writer-node-1" ));
165165 assertTrue ("Path should follow expected structure" , pathString .contains ("test-repo/test-index-uuid/0/segments/data" ));
166166 }
167167
168- public void testShardDataPathInputWithEmptyWriterNodeId () {
168+ public void testShardDataPathInputWithEmptyIndexFixedPrefix () {
169169 RemoteStorePathStrategy pathStrategy = new RemoteStorePathStrategy (PathType .FIXED );
170170
171171 RemoteStorePathStrategy .ShardDataPathInput pathInput = RemoteStorePathStrategy .ShardDataPathInput .builder ()
@@ -174,19 +174,19 @@ public void testShardDataPathInputWithEmptyWriterNodeId() {
174174 .shardId ("0" )
175175 .dataCategory (DataCategory .SEGMENTS )
176176 .dataType (DataType .DATA )
177- .writerNodeId ("" )
177+ .indexFixedPrefix ("" )
178178 .build ();
179179
180180 BlobPath result = pathStrategy .generatePath (pathInput );
181181 String pathString = result .buildAsString ();
182182
183- assertFalse ("Path should not contain empty writer node ID " , pathString .contains ("//" ));
183+ assertFalse ("Path should not contain empty index fixed prefix " , pathString .contains ("//" ));
184184 assertTrue ("Path should contain shard ID" , pathString .contains ("/0/" ));
185185 assertTrue ("Path should contain segments" , pathString .contains ("/segments/" ));
186186 assertTrue ("Path should contain data" , pathString .contains ("/data/" ));
187187 }
188188
189- public void testShardDataPathInputWithWhitespaceOnlyWriterNodeId () {
189+ public void testShardDataPathInputWithWhitespaceOnlyIndexFixedPrefix () {
190190 RemoteStorePathStrategy pathStrategy = new RemoteStorePathStrategy (PathType .FIXED );
191191
192192 RemoteStorePathStrategy .ShardDataPathInput pathInput = RemoteStorePathStrategy .ShardDataPathInput .builder ()
@@ -195,17 +195,17 @@ public void testShardDataPathInputWithWhitespaceOnlyWriterNodeId() {
195195 .shardId ("0" )
196196 .dataCategory (DataCategory .SEGMENTS )
197197 .dataType (DataType .DATA )
198- .writerNodeId (" " )
198+ .indexFixedPrefix (" " )
199199 .build ();
200200
201201 BlobPath result = pathStrategy .generatePath (pathInput );
202202 String pathString = result .buildAsString ();
203203
204- assertFalse ("Path should not contain whitespace-only writer node ID " , pathString .contains ("//" ));
204+ assertFalse ("Path should not contain whitespace-only index fixed prefix " , pathString .contains ("//" ));
205205 assertTrue ("Path should follow expected structure" , pathString .contains ("test-repo/test-index-uuid/0/segments/data" ));
206206 }
207207
208- public void testHashedPathWithWriterNodeId () {
208+ public void testHashedPathWithIndexFixedPrefix () {
209209 RemoteStorePathStrategy pathStrategy = new RemoteStorePathStrategy (PathType .HASHED_PREFIX , PathHashAlgorithm .FNV_1A_BASE64 );
210210
211211 RemoteStorePathStrategy .ShardDataPathInput pathInput = RemoteStorePathStrategy .ShardDataPathInput .builder ()
@@ -214,13 +214,13 @@ public void testHashedPathWithWriterNodeId() {
214214 .shardId ("0" )
215215 .dataCategory (DataCategory .SEGMENTS )
216216 .dataType (DataType .DATA )
217- .writerNodeId ("writer-node-1" )
217+ .indexFixedPrefix ("writer-node-1" )
218218 .build ();
219219
220220 BlobPath result = pathStrategy .generatePath (pathInput );
221221 String pathString = result .buildAsString ();
222222
223- assertTrue ("Path should contain writer node ID " , pathString .contains ("writer-node-1" ));
223+ assertTrue ("Path should contain index fixed prefix " , pathString .contains ("writer-node-1" ));
224224 assertTrue ("Path should follow expected structure" , pathString .contains ("test-repo/test-index-uuid/0/writer-node-1/segments/data" ));
225225 }
226226}
0 commit comments