Uploaded image for project: 'DC/OS'
  1. DC/OS
  2. DCOS_OSS-3930

dcos_dns crashes if an unknown protocol is encountered

    Details

      Description

      mesos state parser crashes when an unsupported protocol is encountered leading to missing of some of the important records. Instead, the parser should just ignore and move forward.

      Steps to reproduce:
      Run etcd DC/OS package. Following error would be seen in journalctl log of dcos-net

      gen_server dcos_net_mesos_listener terminated with reason: no case clause matching <<"client">> in dcos_net_mesos_listener:handle_protocol/1 line 460
      

      This is due to etcd uses a protocol called "client". Here is the snippet of mesos state causing the issue:

      "discovery": {
          "visibility": "EXTERNAL",
          "name": "etcd-server",
          "ports": {
              "ports": [
                  {
                      "number": 1025,
                      "protocol": "tcp"
                  },
                  {
                      "number": 1026,
                      "protocol": "client"
                   }
                ]
            }
      }
      

        Attachments

          Activity

            People

            • Assignee:
              sergeyurbanovich Sergey Urbanovich
              Reporter:
              dgoel Deepak Goel
              Team:
              Networking Team
              Watchers:
              Deepak Goel, Marco Monaco, Sergey Urbanovich
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: