forked from elastic/logstash
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make SafeURI 9k compatible by using java.net.URI internally
Ruby 2.0's stdlib no longer allows relative IPv6 URLs like: //[::1] This is a key feature of the Elasticsearch output. See more in logstash-plugins/logstash-output-elasticsearch#604 The only way to fix this is to use a better URI class which means introducing a slight incompatibility here. I don't believe that anyone is using the URI class other than the ES output, and I don't that there is anyone using any portions of the API here that are no longer compatible. Normally we would only make such a change in a major version, but our hands are tied here. If we are to go with JRuby 9k, which is critical for support we must use a different, better, library. java.net.URI is stable and works well, so its probably superior in the long run anyway. Fixes elastic#7236
- Loading branch information
Showing
3 changed files
with
145 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
class GlobalMetrics | ||
class Stats(metric) | ||
@metric = metric | ||
end | ||
|
||
def initialize(metric) | ||
@metric = metric | ||
|
||
@pipeline_reloads = metric.namespace([:stats, :pipelines]) | ||
end | ||
|
||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters