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

Fix free_monitoring tests and aws_e2e_assume_role.js on Windows

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.7.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Minor Change
    • ALL
    • Security 2020-06-01

      After the fix for SERVER-47579, "Ensure cat may read files containing NULL bytes", 16 of the free_monitoring tests and the aws_e2e_assume_role.js test started consistently failing on Windows.

      Example from jstests/free_mon/free_mon_register.js:

      [js_test:free_mon_register] 2020-05-20T01:24:22.365+0100 [jsTest] ----[js_test:free_mon_register] 2020-05-20T01:24:22.365+0100 [jsTest] Failed to parse: {"metrics": 1, "registers": 1, "faults": 0}[js_test:free_mon_register] 2020-05-20T01:24:22.365+0100 [jsTest] \0[js_test:free_mon_register] 2020-05-20T01:24:22.365+0100 [jsTest] {"metrics": 1, "registers": 1, "faults": 0}[js_test:free_mon_register] 2020-05-20T01:24:22.365+0100 [jsTest] \0[js_test:free_mon_register] 2020-05-20T01:24:22.366+0100 [jsTest] ---- 

      The cat() function should stop appending a NULL (i.e. '\0') byte to files on Windows.

       

            Assignee:
            adam.cooper@mongodb.com Adam Cooper (Inactive)
            Reporter:
            mark.benvenuto@mongodb.com Mark Benvenuto
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: