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

Make query unit test logs less spammy

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Optimization

      We have a ton of logs when running unti tests like db_pipeline_test that are not very useful/ are very repetitive, eg db_pipeline_test mostly has logs like:

      [cpp_unit_test:db_pipeline_test] | 2024-11-26T10:22:18.654Z I  ASIO     6529201     [main] "Network interface redundant shutdown","attr":{"state":"Stopped"}[cpp_unit_test:db_pipeline_test] | 2024-11-26T10:22:18.654Z I  ASIO     6529201     [main] "Network interface redundant shutdown","attr":{"state":"Stopped"}[cpp_unit_test:db_pipeline_test] | 2024-11-26T10:22:18.654Z I  SHARDING 5847201     [main] "Balancer command scheduler stop requested"[cpp_unit_test:db_pipeline_test] | 2024-11-26T10:22:18.654Z I  TEST     23059       [main] "Running","attr":{"test":"Min","rep":1,"reps":1}[cpp_unit_test:db_pipeline_test] | 2024-11-26T10:22:18.655Z I  ASIO     6529201     [main] "Network interface redundant shutdown","attr":{"state":"Stopped"}[cpp_unit_test:db_pipeline_test] | 2024-11-26T10:22:18.655Z I  ASIO     6529201     [main] "Network interface redundant shutdown","attr":{"state":"Stopped"}[cpp_unit_test:db_pipeline_test] | 2024-11-26T10:22:18.655Z I  ASIO     6529201     [main] "Network interface redundant shutdown","attr":{"state":"Stopped"}[cpp_unit_test:db_pipeline_test] | 2024-11-26T10:22:18.655Z I  SHARDING 5847201     [main] "Balancer command scheduler stop requested"[cpp_unit_test:db_pipeline_test] | 2024-11-26T10:22:18.655Z I  TEST     23059       [main] "Running","attr":{"test":"MinRespectsCollation","rep":1,"reps":1}[cpp_unit_test:db_pipeline_test] | 2024-11-26T10:22:18.656Z I  ASIO     6529201     [main] "Network interface redundant shutdown","attr":{"state":"Stopped"}[cpp_unit_test:db_pipeline_test] | 2024-11-26T10:22:18.656Z I  ASIO     6529201     [main] "Network interface redundant shutdown","attr":{"state":"Stopped"}[cpp_unit_test:db_pipeline_test] | 2024-11-26T10:22:18.656Z I  ASIO     6529201     [main] "Network interface redundant shutdown","attr":{"state":"Stopped"}

      We should reduce the logs actually output to those that are useful to query for debugging a test failure.

            Assignee:
            Unassigned Unassigned
            Reporter:
            alya.berciu@mongodb.com Alya Berciu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: