You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Keeps track of remote refresh which happens in {@link org.opensearch.index.shard.RemoteStoreRefreshListener}. This consist of multiple critical metrics.
30
36
*
31
37
* @opensearch.internal
32
38
*/
33
39
publicclassRemoteRefreshSegmentTracker {
34
40
41
+
privatefinalLoggerlogger;
42
+
35
43
/**
36
44
* ShardId for which this instance tracks the remote segment upload metadata.
37
45
*/
@@ -123,14 +131,14 @@ public class RemoteRefreshSegmentTracker {
* Updates the latestLocalFileNameLengthMap by adding file name and it's size to the map. The method is given a function as an argument which is used for determining the file size (length in bytes). This method is also provided the collection of segment files which are the latest refresh local segment files. This method also removes the stale segment files from the map that are not part of the input segment files.
377
+
*
378
+
* @param segmentFiles list of local refreshed segment files
379
+
* @param fileSizeFunction function is used to determine the file size in bytes
380
+
*/
381
+
382
+
/**
383
+
* Updates the latestLocalFileNameLengthMap by adding file name and it's size to the map. The method is given a function as an argument which is used for determining the file size (length in bytes). This method is also provided the collection of segment files which are the latest refresh local segment files. This method also removes the stale segment files from the map that are not part of the input segment files.
384
+
*
385
+
* @param segmentFiles list of local refreshed segment files
386
+
* @param fileSizeFunction function is used to determine the file size in bytes
0 commit comments