Open colinsurprenant opened 9 years ago
:ballot_box_with_check: Code review I haven't run the tests yet.
Running the tests I get:
Run options: exclude {:redis=>true, :socket=>true, :performance=>true, :couchdb=>true, :elasticsearch=>true, :elasticsearch_secure=>true, :broken=>true, :export_cypher=>true, :integration=>true}
.F.........
Failures:
1) LogStash::Filters::Multiline integrations should merge messages arrays as Java ArrayList from json codec using JrJackson
Failure/Error: results += filter.flush(:final => true)
ArgumentError:
wrong number of arguments (1 for 3)
# ./lib/logstash/filters/multiline.rb:271:in `merge'
# ./lib/logstash/filters/multiline.rb:270:in `merge'
# ./lib/logstash/filters/multiline.rb:204:in `flush'
# ./lib/logstash/filters/multiline.rb:202:in `flush'
# ./spec/filters/multiline_spec.rb:299:in `(root)'
Finished in 1.42 seconds
11 examples, 1 failure
Failed examples:
rspec ./spec/filters/multiline_spec.rb:251 # LogStash::Filters::Multiline integrations should merge messages arrays as Java ArrayList from json codec using JrJackson
Randomized with seed 44754
@jsvd could you re test please?
Still getting the same error, that comes from within this cycle:
data = events.inject({}) do |result, event|
self.class.event_hash_merge!(result, event.to_hash_with_metadata, dups_key)
end
@colinsurprenant is this PR still valid? can we fix the test somehow as @jsvd proposed?
@colinsurprenant @jsvd friendly ping to see what the status on this PR is
ok, I'll reassess the need for this PR - it's been lingering for so long.
This is a regression spec for elasticsearch/logstash#2372
This spec does not pass on version < 0.1.4 and is now fixed in 0.1.4