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

oldestRequiredTimestampForCrashRecovery FTDC metric swaps t for i

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Minor - P4 Minor - P4
    • None
    • 4.2.14, 4.4.6, 5.0.0-rc4, 5.0.0-rc5
    • Internal Code
    • ALL
    • Hide

      repro.py

      #!/usr/bin/env python2
      import sys
      from readers import read_ftdc
      # https://github.com/10gen/t2/blob/master/scripts/readers.py
      ftdc = [ ('serverStatus', 'storageEngine', 'oldestRequiredTimestampForCrashRecovery', 't'),
               ('serverStatus', 'storageEngine', 'oldestRequiredTimestampForCrashRecovery', 'i')]
      for chunk in read_ftdc(sys.argv[1]):
          values = chunk.values()
          assert all(len(values[0])==len(v) for v in values)
          for key in ftdc:
              print( key )
              print( values[chunk.keys().index( key )] )
      

      // 5.0, 4.4, 4.2 FTDC metrics files
      $ python2 repro.py metrics50.bson 
      reading metrics50.bson
      ('serverStatus', 'storageEngine', 'oldestRequiredTimestampForCrashRecovery', 't')
      [1, 1, 1, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301]
      ('serverStatus', 'storageEngine', 'oldestRequiredTimestampForCrashRecovery', 'i')
      [1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785]
      

      Show
      repro.py #!/usr/bin/env python2 import sys from readers import read_ftdc # https://github.com/10gen/t2/blob/master/scripts/readers.py ftdc = [ ( 'serverStatus' , 'storageEngine' , 'oldestRequiredTimestampForCrashRecovery' , 't' ), ( 'serverStatus' , 'storageEngine' , 'oldestRequiredTimestampForCrashRecovery' , 'i' )] for chunk in read_ftdc(sys.argv[ 1 ]): values = chunk.values() assert all ( len (values[ 0 ]) = = len (v) for v in values) for key in ftdc: print ( key ) print ( values[chunk.keys().index( key )] ) // 5.0, 4.4, 4.2 FTDC metrics files $ python2 repro.py metrics50.bson reading metrics50.bson ('serverStatus', 'storageEngine', 'oldestRequiredTimestampForCrashRecovery', 't') [1, 1, 1, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301] ('serverStatus', 'storageEngine', 'oldestRequiredTimestampForCrashRecovery', 'i') [1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785, 1623804785]

    Description

      FTDC for oldestRequiredTimestampForCrashRecovery is collected here.

      While testing swapping of t and i values, the repro become intermittent. Reconsidering this as a possible parsed BSON odict behavior.

      Attachments

        Activity

          People

            Unassigned Unassigned
            scott.kurowski@mongodb.com Scott Kurowski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: