mesos / elasticsearch

Elasticsearch on Mesos
Apache License 2.0
242 stars 90 forks source link

Minuteman not able to parse ElasticSearch executor tasks #595

Closed jrx closed 7 years ago

jrx commented 7 years ago

Hi!

While testing the ElasticSearch framework on DC/OS. I encountered an issue with Minuteman. VIPs are not used by this framework but still Minuteman will fail while parsing the tasks:

minuteman-env[5274]: 15:47:59.123 [error] Failed to parse task: {function_clause,[{mesos_state_client,protocol,[<<"TCP">>],

I looked into the Mesos state.json and found:

          "discovery": {
            "visibility": "EXTERNAL",
            "name": "elasticsearch-executor",
            "ports": {
              "ports": [
                {
                  "number": 1025,
                  "name": "CLIENT_PORT",
                  "protocol": "TCP"
                },
                {
                  "number": 1026,
                  "name": "TRANSPORT_PORT",
                  "protocol": "TCP"
                }
              ]
            }
          },

Seems like simply converting TCP to lowercase tcp for the protocol used by the executors will fix this issue.

Regards, Jan

brndnmtthws commented 7 years ago

Perhaps Minuteman should also downcase the string?

jrx commented 7 years ago

Yes, I agree.

frankscholten commented 7 years ago

Thanks guys! Fixed by https://github.com/mesos/elasticsearch/pull/596