Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-5499

Replace lookaside score statistic with something similar

    • Type: Icon: Task Task
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • 5

      We recently removed the lookaside file from WiredTiger as durable history replaces it. MongoDB relies on a particular statistic to make decisions about how much cache pressure WiredTiger is experiencing. We removed that statistic, and will need to update MongoDB prior to merging this change there, so it no longer uses the stat.

      Compilation failure:

      [2020/01/30 15:11:11.160] In file included from src/mongo/bson/bson_comparator_interface_base.h:40,
      [2020/01/30 15:11:11.160]                  from src/mongo/bson/bsonobj.h:43,
      [2020/01/30 15:11:11.160]                  from src/mongo/db/storage/wiredtiger/wiredtiger_util.h:37,
      [2020/01/30 15:11:11.160]                  from src/mongo/db/storage/wiredtiger/wiredtiger_util.cpp:34:
      [2020/01/30 15:11:11.160] src/mongo/db/storage/wiredtiger/wiredtiger_util.cpp: In static member function 'static void mongo::WiredTigerUtil::appendSnapshotWindowSettings(mongo::WiredTigerKVEngine*, mongo::WiredTigerSession*, mongo::BSONObjBuilder*)':
      [2020/01/30 15:11:11.160] src/mongo/db/storage/wiredtiger/wiredtiger_util.cpp:709:51: error: 'WT_STAT_CONN_CACHE_LOOKASIDE_SCORE' was not declared in this scope
      [2020/01/30 15:11:11.160]          session->getSession(), "statistics:", "", WT_STAT_CONN_CACHE_LOOKASIDE_SCORE));
      [2020/01/30 15:11:11.160]                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      [2020/01/30 15:11:11.160] src/mongo/util/assert_util.h:377:67: note: in definition of macro 'uassertStatusOK'
      [2020/01/30 15:11:11.160]  #define uassertStatusOK(...) ::mongo::uassertStatusOKWithLocation(__VA_ARGS__, __FILE__, __LINE__)
      [2020/01/30 15:11:11.160]                                                                    ^~~~~~~~~~~
      [2020/01/30 15:11:11.172] src/mongo/db/storage/wiredtiger/wiredtiger_util.cpp:709:51: note: suggested alternative: 'WT_STAT_CONN_CACHE_HS_SCORE'
      [2020/01/30 15:11:11.172]          session->getSession(), "statistics:", "", WT_STAT_CONN_CACHE_LOOKASIDE_SCORE));
      [2020/01/30 15:11:11.172]                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      [2020/01/30 15:11:11.172] src/mongo/util/assert_util.h:377:67: note: in definition of macro 'uassertStatusOK'
      [2020/01/30 15:11:11.172]  #define uassertStatusOK(...) ::mongo::uassertStatusOKWithLocation(__VA_ARGS__, __FILE__, __LINE__)
      [2020/01/30 15:11:11.172]                                                                    ^~~~~~~~~~~
      

            Assignee:
            backlog-server-storage-engines [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            alexander.gorrod@mongodb.com Alexander Gorrod
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: