File tree Expand file tree Collapse file tree 7 files changed +37
-3
lines changed
main/java/org/elasticsearch/repositories
test/java/org/elasticsearch/repositories
test/framework/src/main/java/org/elasticsearch/index/shard
x-pack/plugin/ccr/src/main/java/org/elasticsearch/xpack/ccr/repository Expand file tree Collapse file tree 7 files changed +37
-3
lines changed Original file line number Diff line number Diff line change 26
26
import org .elasticsearch .indices .recovery .RecoveryState ;
27
27
import org .elasticsearch .snapshots .SnapshotId ;
28
28
import org .elasticsearch .snapshots .SnapshotInfo ;
29
+ import org .elasticsearch .telemetry .metric .LongWithAttributes ;
29
30
30
31
import java .io .IOException ;
31
32
import java .util .Collection ;
@@ -175,6 +176,11 @@ public void awaitIdle() {
175
176
in .awaitIdle ();
176
177
}
177
178
179
+ @ Override
180
+ public LongWithAttributes getShardSnapshotsInProgress () {
181
+ return in .getShardSnapshotsInProgress ();
182
+ }
183
+
178
184
@ Override
179
185
public Lifecycle .State lifecycleState () {
180
186
return in .lifecycleState ();
Original file line number Diff line number Diff line change 25
25
import org .elasticsearch .indices .recovery .RecoveryState ;
26
26
import org .elasticsearch .snapshots .SnapshotId ;
27
27
import org .elasticsearch .snapshots .SnapshotInfo ;
28
+ import org .elasticsearch .telemetry .metric .LongWithAttributes ;
28
29
29
30
import java .io .IOException ;
30
31
import java .util .Collection ;
@@ -180,6 +181,11 @@ public void awaitIdle() {
180
181
181
182
}
182
183
184
+ @ Override
185
+ public LongWithAttributes getShardSnapshotsInProgress () {
186
+ return null ;
187
+ }
188
+
183
189
@ Override
184
190
protected void doStart () {
185
191
Original file line number Diff line number Diff line change @@ -361,9 +361,7 @@ static boolean assertSnapshotMetaThread() {
361
361
* @return The current number of shard snapshots in progress metric value, or null if this repository doesn't track that
362
362
*/
363
363
@ Nullable
364
- default LongWithAttributes getShardSnapshotsInProgress () {
365
- return null ;
366
- }
364
+ LongWithAttributes getShardSnapshotsInProgress ();
367
365
368
366
default RepositoriesStats .SnapshotStats getSnapshotStats () {
369
367
return new RepositoriesStats .SnapshotStats (getRestoreThrottleTimeInNanos (), getSnapshotThrottleTimeInNanos ());
Original file line number Diff line number Diff line change 25
25
import org .elasticsearch .indices .recovery .RecoveryState ;
26
26
import org .elasticsearch .snapshots .SnapshotId ;
27
27
import org .elasticsearch .snapshots .SnapshotInfo ;
28
+ import org .elasticsearch .telemetry .metric .LongWithAttributes ;
28
29
29
30
import java .io .IOException ;
30
31
import java .util .Collection ;
@@ -178,6 +179,11 @@ public void awaitIdle() {
178
179
179
180
}
180
181
182
+ @ Override
183
+ public LongWithAttributes getShardSnapshotsInProgress () {
184
+ return null ;
185
+ }
186
+
181
187
@ Override
182
188
protected void doStart () {
183
189
Original file line number Diff line number Diff line change 53
53
import org .elasticsearch .repositories .blobstore .MeteredBlobStoreRepository ;
54
54
import org .elasticsearch .snapshots .SnapshotId ;
55
55
import org .elasticsearch .snapshots .SnapshotInfo ;
56
+ import org .elasticsearch .telemetry .metric .LongWithAttributes ;
56
57
import org .elasticsearch .test .ClusterServiceUtils ;
57
58
import org .elasticsearch .test .ESTestCase ;
58
59
import org .elasticsearch .threadpool .TestThreadPool ;
@@ -772,6 +773,11 @@ public void cloneShardSnapshot(
772
773
@ Override
773
774
public void awaitIdle () {}
774
775
776
+ @ Override
777
+ public LongWithAttributes getShardSnapshotsInProgress () {
778
+ return null ;
779
+ }
780
+
775
781
@ Override
776
782
public Lifecycle .State lifecycleState () {
777
783
return null ;
Original file line number Diff line number Diff line change 31
31
import org .elasticsearch .repositories .SnapshotShardContext ;
32
32
import org .elasticsearch .snapshots .SnapshotId ;
33
33
import org .elasticsearch .snapshots .SnapshotInfo ;
34
+ import org .elasticsearch .telemetry .metric .LongWithAttributes ;
34
35
35
36
import java .util .Collection ;
36
37
import java .util .Collections ;
@@ -175,4 +176,9 @@ public void cloneShardSnapshot(
175
176
176
177
throw new UnsupportedOperationException ("Unsupported for restore-only repository" );
177
178
}
179
+
180
+ @ Override
181
+ public LongWithAttributes getShardSnapshotsInProgress () {
182
+ return null ;
183
+ }
178
184
}
Original file line number Diff line number Diff line change 86
86
import org .elasticsearch .snapshots .SnapshotId ;
87
87
import org .elasticsearch .snapshots .SnapshotInfo ;
88
88
import org .elasticsearch .snapshots .SnapshotState ;
89
+ import org .elasticsearch .telemetry .metric .LongWithAttributes ;
89
90
import org .elasticsearch .threadpool .Scheduler ;
90
91
import org .elasticsearch .threadpool .ThreadPool ;
91
92
import org .elasticsearch .transport .RemoteClusterService ;
@@ -618,6 +619,11 @@ public void cloneShardSnapshot(
618
619
@ Override
619
620
public void awaitIdle () {}
620
621
622
+ @ Override
623
+ public LongWithAttributes getShardSnapshotsInProgress () {
624
+ return null ;
625
+ }
626
+
621
627
private void updateMappings (
622
628
RemoteClusterClient leaderClient ,
623
629
Index leaderIndex ,
You can’t perform that action at this time.
0 commit comments