test: updates DocsStats with totalSizeInBytes

Relates https://github.com/elastic/elasticsearch/pull/27117

Original commit: elastic/x-pack-elasticsearch@9bf177d90b
This commit is contained in:
Nhat 2017-10-28 12:54:59 -04:00
parent 940eabd5f3
commit ba29971323
3 changed files with 3 additions and 3 deletions

View File

@ -241,7 +241,7 @@ public class IndexStatsMonitoringDocTests extends BaseFilteredMonitoringDocTestC
long iota = 0L; long iota = 0L;
final CommonStats commonStats = new CommonStats(CommonStatsFlags.ALL); final CommonStats commonStats = new CommonStats(CommonStatsFlags.ALL);
commonStats.getDocs().add(new DocsStats(++iota, no)); commonStats.getDocs().add(new DocsStats(++iota, no, randomNonNegativeLong()));
commonStats.getFieldData().add(new FieldDataStats(++iota, ++iota, null)); commonStats.getFieldData().add(new FieldDataStats(++iota, ++iota, null));
commonStats.getMerge().add(no, no, no, ++iota, no, no, no, no, no, no); commonStats.getMerge().add(no, no, no, ++iota, no, no, no, no, no, no);
commonStats.getQueryCache().add(new QueryCacheStats(++iota, ++iota, ++iota, ++iota, no)); commonStats.getQueryCache().add(new QueryCacheStats(++iota, ++iota, ++iota, ++iota, no));

View File

@ -153,7 +153,7 @@ public class IndicesStatsMonitoringDocTests extends BaseFilteredMonitoringDocTes
private CommonStats mockCommonStats() { private CommonStats mockCommonStats() {
final CommonStats commonStats = new CommonStats(CommonStatsFlags.ALL); final CommonStats commonStats = new CommonStats(CommonStatsFlags.ALL);
commonStats.getDocs().add(new DocsStats(1L, -1L)); commonStats.getDocs().add(new DocsStats(1L, -1L, randomNonNegativeLong()));
commonStats.getStore().add(new StoreStats(2L)); commonStats.getStore().add(new StoreStats(2L));
final IndexingStats.Stats indexingStats = new IndexingStats.Stats(3L, 4L, -1L, -1L, -1L, -1L, -1L, -1L, true, 5L); final IndexingStats.Stats indexingStats = new IndexingStats.Stats(3L, 4L, -1L, -1L, -1L, -1L, -1L, -1L, true, 5L);

View File

@ -294,7 +294,7 @@ public class NodeStatsMonitoringDocTests extends BaseFilteredMonitoringDocTestCa
// Indices // Indices
final CommonStats indicesCommonStats = new CommonStats(CommonStatsFlags.ALL); final CommonStats indicesCommonStats = new CommonStats(CommonStatsFlags.ALL);
indicesCommonStats.getDocs().add(new DocsStats(++iota, no)); indicesCommonStats.getDocs().add(new DocsStats(++iota, no, randomNonNegativeLong()));
indicesCommonStats.getFieldData().add(new FieldDataStats(++iota, ++iota, null)); indicesCommonStats.getFieldData().add(new FieldDataStats(++iota, ++iota, null));
indicesCommonStats.getStore().add(new StoreStats(++iota)); indicesCommonStats.getStore().add(new StoreStats(++iota));