Add missing builder.endObject() in FsInfo

closes #18433
This commit is contained in:
Tanguy Leroux 2016-05-18 15:19:30 +02:00
parent 1022123f59
commit d7a31c8cf7
2 changed files with 2 additions and 4 deletions

View File

@ -396,12 +396,14 @@ public class FsInfo implements Iterable<FsInfo.Path>, Writeable, ToXContent {
builder.endObject(); builder.endObject();
} }
builder.endArray(); builder.endArray();
builder.startObject("total"); builder.startObject("total");
builder.field(OPERATIONS, totalOperations); builder.field(OPERATIONS, totalOperations);
builder.field(READ_OPERATIONS, totalReadOperations); builder.field(READ_OPERATIONS, totalReadOperations);
builder.field(WRITE_OPERATIONS, totalWriteOperations); builder.field(WRITE_OPERATIONS, totalWriteOperations);
builder.field(READ_KILOBYTES, totalReadKilobytes); builder.field(READ_KILOBYTES, totalReadKilobytes);
builder.field(WRITE_KILOBYTES, totalWriteKilobytes); builder.field(WRITE_KILOBYTES, totalWriteKilobytes);
builder.endObject();
} }
return builder; return builder;
} }

View File

@ -1,9 +1,5 @@
--- ---
"Discovery stats": "Discovery stats":
- skip:
version: "5.0.0 - "
reason: Tracked in issue 18433
- do: - do:
cluster.state: {} cluster.state: {}