Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-97220

[Test only] collection_catalog_two_phase_drops.js assumes write with journaling will advance the latest timestamp

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Catalog
    • None
    • Catalog and Routing
    • ALL
    • CAR Team 2024-11-25
    • 0
    • 1

      SERVER-89769 added a majority write concern with journaling here and here to ensure the oldest stable timestamp is advanced, however, this is a wrong assumption on how the replication layer works, as pointed out in this bf, so, we need to manually wait for the oldest time to advance in the test before forcing the checkpoint with the fsync command here and here. We could do this, for example, by waiting for the following log line:

      d20290| 2024-10-28T23:05:25.427+01:00 I  WTTS     22430       [JournalFlusher] "WiredTiger message","attr":{"message":{"ts_sec":1730153125,"ts_usec":426297,"thread":"12560:140733228867216","session_name":"WT_CONNECTION.set_timestamp","category":"WT_VERB_TIMESTAMP","category_id":40,"verbose_level":"DEBUG_1","verbose_level_id":1,"msg":"Timestamp (1730153125, 1): Updated global oldest timestamp"}}
      

      This way we will make sure the collection will be reaped.

            Assignee:
            sulabh.mahajan@mongodb.com Sulabh Mahajan
            Reporter:
            marcos.grillo@mongodb.com Marcos José Grillo Ramirez
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: