Skip to content

Commit c908170

Browse files
authored
Remove degraded state from ES status service (#75007) (#75015)
1 parent a4dc0a0 commit c908170

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/core/server/elasticsearch/status.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ describe('calculateStatus', () => {
6565
});
6666
});
6767

68-
it('changes to degraded when isCompatible and warningNodes present', async () => {
68+
it('changes to available with a differemnt message when isCompatible and warningNodes present', async () => {
6969
expect(
7070
await calculateStatus$(
7171
of({
@@ -81,7 +81,7 @@ describe('calculateStatus', () => {
8181
.pipe(take(2))
8282
.toPromise()
8383
).toEqual({
84-
level: ServiceStatusLevels.degraded,
84+
level: ServiceStatusLevels.available,
8585
summary: 'Some nodes are a different version',
8686
meta: {
8787
incompatibleNodes: [],
@@ -188,7 +188,7 @@ describe('calculateStatus', () => {
188188
"summary": "Incompatible with Elasticsearch",
189189
},
190190
Object {
191-
"level": degraded,
191+
"level": available,
192192
"meta": Object {
193193
"incompatibleNodes": Array [],
194194
"warningNodes": Array [

src/core/server/elasticsearch/status.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export const calculateStatus$ = (
5555
};
5656
} else if (warningNodes.length > 0) {
5757
return {
58-
level: ServiceStatusLevels.degraded,
58+
level: ServiceStatusLevels.available,
5959
summary:
6060
// Message should always be present, but this is a safe fallback
6161
message ??

0 commit comments

Comments
 (0)