Skip to content

Commit

Permalink
Fix output plugins blocking startup if remote is not reachable.
Browse files Browse the repository at this point in the history
Resolves elastic#1213
  • Loading branch information
urso committed Apr 27, 2016
1 parent 5bfba72 commit a10a59e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ https://github.com/elastic/beats/compare/v5.0.0-alpha1...master[Check the HEAD d
- Fix bug affecting -cpuprofile, -memprofile, and -httpprof CLI flags {pull}1415[1415]
- Fix race when multiple outputs access the same event with logstash output manipulating event {issue}1410[1410] {pull}1428[1428]
- Seed random number generator using crypto.rand package. {pull}1503{1503]
- Fix beats hanging in -configtest {issue}1213[1213]

*Packetbeat*

Expand Down
1 change: 0 additions & 1 deletion libbeat/outputs/mode/single.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ func NewSingleConnectionMode(
maxAttempts: maxAttempts,
}

_ = s.connect() // try to connect, but ignore errors for now
return s, nil
}

Expand Down
2 changes: 1 addition & 1 deletion libbeat/outputs/mode/single_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func testSingleConnectFailConnectAndSend(t *testing.T, events []eventInfo) {
&mockClient{
connected: false,
close: closeOK,
connect: failConnect(4, errFail), // 3 fails + 1 on create
connect: failConnect(3, errFail), // 3 fails
publish: collectPublish(&collected),
},
},
Expand Down

0 comments on commit a10a59e

Please sign in to comment.