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

TCP FastOpen warning should be a startup warning, not warned on every socket open

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.3.4
    • Affects Version/s: None
    • Component/s: Networking
    • None
    • Fully Compatible
    • ALL
    • Service Arch 2020-03-09

      Currently when I start mongod, I get this warning multiple times:

      {"t":{"$date":"2020-02-28T10:54:37.871-0500"},"s":"I", "c":"CONTROL", "id":23285,"ctx":"main","msg":"Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'"}
      {"t":{"$date":"2020-02-28T10:54:37.923-0500"},"s":"W", "c":"ASIO",    "id":22601,"ctx":"main","msg":"No TransportLayer configured during NetworkInterface startup"}
      {"t":{"$date":"2020-02-28T10:54:37.924-0500"},"s":"I", "c":"NETWORK", "id":23014,"ctx":"main","msg":"{foStatus_reason}","attr":{"foStatus_reason":"TCP FastOpen support requested, but disabled in kernel. Set /proc/sys/net/ipv4/tcp_fastopen to 3"}}
      {"t":{"$date":"2020-02-28T10:54:37.925-0500"},"s":"I", "c":"STORAGE", "id":4615611,"ctx":"initandlisten","msg":"MongoDB starting","attr":{"pid":3049529,"port":27017,"dbpath":"asdfasdf","architecture":"64-bit","host":"lazarus"}}
      {"t":{"$date":"2020-02-28T10:54:37.926-0500"},"s":"I", "c":"CONTROL", "id":20533,"ctx":"initandlisten","msg":"DEBUG build (which is slower)"}
      {"t":{"$date":"2020-02-28T10:54:37.926-0500"},"s":"I", "c":"CONTROL", "id":20719,"ctx":"initandlisten","msg":"{mongodVersion_vii}","attr":{"mongodVersion_vii":"db version v4.3.3"}}
      {"t":{"$date":"2020-02-28T10:54:37.926-0500"},"s":"I", "c":"CONTROL", "id":23399,"ctx":"initandlisten","msg":"git version: {gitVersion}","attr":{"gitVersion":"unknown"}}
      {"t":{"$date":"2020-02-28T10:54:37.926-0500"},"s":"I", "c":"CONTROL", "id":23400,"ctx":"initandlisten","msg":"{openSSLVersion_OpenSSL_version}","attr":{"openSSLVersion_OpenSSL_version":"OpenSSL version: OpenSSL 1.1.1d FIPS  10 Sep 2019"}}
      {"t":{"$date":"2020-02-28T10:54:37.926-0500"},"s":"I", "c":"CONTROL", "id":23401,"ctx":"initandlisten","msg":"allocator: {allocator}","attr":{"allocator":"tcmalloc"}}
      {"t":{"$date":"2020-02-28T10:54:37.926-0500"},"s":"I", "c":"CONTROL", "id":23402,"ctx":"initandlisten","msg":"{ss_str}","attr":{"ss_str":"modules: none"}}
      {"t":{"$date":"2020-02-28T10:54:37.926-0500"},"s":"I", "c":"CONTROL", "id":23403,"ctx":"initandlisten","msg":"build environment:"}
      {"t":{"$date":"2020-02-28T10:54:37.926-0500"},"s":"I", "c":"CONTROL", "id":23404,"ctx":"initandlisten","msg":"    {std_get_0_envDataEntry}: {std_get_1_envDataEntry}","attr":{"std_get_0_envDataEntry":"distarch","std_get_1_envDataEntry":"x86_64"}}
      {"t":{"$date":"2020-02-28T10:54:37.927-0500"},"s":"I", "c":"CONTROL", "id":23404,"ctx":"initandlisten","msg":"    {std_get_0_envDataEntry}: {std_get_1_envDataEntry}","attr":{"std_get_0_envDataEntry":"target_arch","std_get_1_envDataEntry":"x86_64"}}
      {"t":{"$date":"2020-02-28T10:54:37.927-0500"},"s":"I", "c":"CONTROL", "id":51765,"ctx":"initandlisten","msg":"operating system: {name}, version: {version}","attr":{"name":"Fedora release 31 (Thirty One)","version":"Kernel 5.4.15-200.fc31.x86_64"}}
      {"t":{"$date":"2020-02-28T10:54:37.927-0500"},"s":"I", "c":"CONTROL", "id":21951,"ctx":"initandlisten","msg":"options: {serverGlobalParams_parsedOpts}","attr":{"serverGlobalParams_parsedOpts":{"storage":{"dbPath":"asdfasdf"}}}}
      {"t":{"$date":"2020-02-28T10:54:37.928-0500"},"s":"I", "c":"NETWORK", "id":23014,"ctx":"initandlisten","msg":"{foStatus_reason}","attr":{"foStatus_reason":"TCP FastOpen support requested, but disabled in kernel. Set /proc/sys/net/ipv4/tcp_fastopen to 3"}}
      

      It should only appear once per run, and be collected with the other startup warnings. Note that this is important because downstream consumers of mongod collect startup warnings and display them together, whereas randomly appearing warnings will just be ignored.

            Assignee:
            ben.caimano@mongodb.com Benjamin Caimano (Inactive)
            Reporter:
            milkie@mongodb.com Eric Milkie
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: