diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2022-05-04 07:51:28 +0000 |
---|---|---|
committer | gjoranv <gv@verizonmedia.com> | 2022-06-08 11:45:21 +0200 |
commit | 12aeb0727e73905bc25a273859824c39ea33d135 (patch) | |
tree | 7c0ceb565fcef8d04e56a40711e557b7398674b8 /storage/src/tests/persistence/filestorage | |
parent | 4660644a541e4b9d1ec98de02db0c406c5f4dc30 (diff) |
Remove '.sum' form vds sum metrics.
Remove '.sum' from metric names for storage node and also remove the average metrics for the same.
Remove '.sum' from distributor metrics set and remove distributor average metrics.
GC '.sum' from distributor metric names.
Remove '.alldisks' from metric names and update tests.
GC '.alldisks' from filestor metrics.
Diffstat (limited to 'storage/src/tests/persistence/filestorage')
-rw-r--r-- | storage/src/tests/persistence/filestorage/filestormanagertest.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/storage/src/tests/persistence/filestorage/filestormanagertest.cpp b/storage/src/tests/persistence/filestorage/filestormanagertest.cpp index 304720f52b7..4c1b1662f68 100644 --- a/storage/src/tests/persistence/filestorage/filestormanagertest.cpp +++ b/storage/src/tests/persistence/filestorage/filestormanagertest.cpp @@ -201,7 +201,7 @@ struct FileStorTestBase : Test { const Metric& metric); auto& thread_metrics_of(FileStorManager& manager) { - return manager.get_metrics().disk->threads[0]; + return manager.get_metrics().threads[0]; } }; @@ -304,7 +304,7 @@ struct PersistenceHandlerComponents : public FileStorHandlerComponents { std::make_unique<PersistenceHandler>(executor, component, cfg, test._node->getPersistenceProvider(), *filestorHandler, bucketOwnershipNotifier, - *metrics.disk->threads[0]); + *metrics.threads[0]); } ~PersistenceHandlerComponents(); std::unique_ptr<DiskThread> make_disk_thread() { @@ -759,11 +759,11 @@ TEST_F(FileStorManagerTest, priority) { BucketOwnershipNotifier bucketOwnershipNotifier(component, c.messageSender); vespa::config::content::StorFilestorConfig cfg; PersistenceHandler persistenceHandler(_node->executor(), component, cfg, _node->getPersistenceProvider(), - filestorHandler, bucketOwnershipNotifier, *metrics.disk->threads[0]); + filestorHandler, bucketOwnershipNotifier, *metrics.threads[0]); std::unique_ptr<DiskThread> thread(createThread(persistenceHandler, filestorHandler, component)); PersistenceHandler persistenceHandler2(_node->executor(), component, cfg, _node->getPersistenceProvider(), - filestorHandler, bucketOwnershipNotifier, *metrics.disk->threads[1]); + filestorHandler, bucketOwnershipNotifier, *metrics.threads[1]); std::unique_ptr<DiskThread> thread2(createThread(persistenceHandler2, filestorHandler, component)); // Creating documents to test with. Different gids, 2 locations. @@ -813,8 +813,8 @@ TEST_F(FileStorManagerTest, priority) { // Verify that thread 1 gets documents over 50 pri EXPECT_EQ(documents.size(), - metrics.disk->threads[0]->operations.getValue() - + metrics.disk->threads[1]->operations.getValue()); + metrics.threads[0]->operations.getValue() + + metrics.threads[1]->operations.getValue()); // Closing file stor handler before threads are deleted, such that // file stor threads getNextMessage calls returns. filestorHandler.close(); |