Skip to content
This repository was archived by the owner on Jun 20, 2020. It is now read-only.
This repository was archived by the owner on Jun 20, 2020. It is now read-only.

ESConfig.toString() output based on server + port, not esUrl #2

@milesgould

Description

@milesgould

The toString method in ESConfig reads the deprecated server and port properties. These are overridden by the esUrl property, leading to the following problems:

  • if you set esUrl but not server/port, then toString will incorrectly give you "port=9200, server=localhost" (the defaults for server and port)
  • if you set server and port but not esUrl, then toString will tell you "port=9203, server=my.awesome.server", but your ES client will actually connect to http://localhost:9200 (the default for esUrl).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions