Skip to content

Commit f7c4afb

Browse files
fixed again
1 parent db79de8 commit f7c4afb

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

server/src/main/java/org/elasticsearch/action/admin/cluster/snapshots/status/TransportSnapshotsStatusAction.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,9 @@ private SnapshotsStatusResponse buildResponse(SnapshotsStatusRequest request, Li
198198
SnapshotIndexShardStatus shardStatus = new SnapshotIndexShardStatus(shardEntry.key, stage);
199199
shardStatusBuilder.add(shardStatus);
200200
}
201-
builder.add(new SnapshotStatus(entry.snapshot(), entry.state(),
201+
final SnapshotsInProgress.State state = entry.state();
202+
builder.add(new SnapshotStatus(entry.snapshot(),
203+
state == SnapshotsInProgress.State.SUCCESS ? SnapshotsInProgress.State.STARTED : state,
202204
Collections.unmodifiableList(shardStatusBuilder), entry.includeGlobalState()));
203205
}
204206
}

x-pack/plugin/security/src/test/java/org/elasticsearch/integration/ClusterPrivilegeTests.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@ public void testThatClusterPrivilegesWorkAsExpectedViaHttp() throws Exception {
139139
assertAccessIsDenied("user_d", "PUT", "/_cluster/settings", "{ \"transient\" : { \"search.default_search_timeout\": \"1m\" } }");
140140
}
141141

142-
@AwaitsFix( bugUrl = "https://github.com/elastic/elasticsearch/issues/38030")
143142
public void testThatSnapshotAndRestore() throws Exception {
144143
String repoJson = Strings.toString(jsonBuilder().startObject().field("type", "fs").startObject("settings").field("location",
145144
repositoryLocation.toString()).endObject().endObject());

0 commit comments

Comments
 (0)