mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
- disable agent index request buffering for now (need to debug parser race/halting-bug condition)
- set response code in Indexer's IndexEventRequestHandler
This commit is contained in:
parent
c9fa9c87af
commit
ef35581319
2 changed files with 2 additions and 1 deletions
|
@ -33,7 +33,7 @@ module LogStash; module Net; module Clients
|
|||
ier.metadata["source_host"] = @hostname
|
||||
|
||||
@logger.debug "Indexing #{type}: #{string}"
|
||||
ier.want_buffer(true)
|
||||
#ier.want_buffer(true)
|
||||
sendmsg("logstash", ier)
|
||||
end # def index
|
||||
|
||||
|
|
|
@ -55,6 +55,7 @@ module LogStash; module Net; module Servers
|
|||
|
||||
@indexes[log_type] ||= @config.logs[log_type].get_index
|
||||
@indexes[log_type] << request.log_data
|
||||
response.code = 0
|
||||
yield response
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue