Logstash is shutting down when avro format message is directly sent to kafka topic accidently, throws below error


(Nandha Krishna) #1

[2017-12-22T08:41:10,876][FATAL][logstash.runner ] An unexpected error occurred! {:error=>#<ArgumentError: negative length -36 given>, :backtrace=>["org/jruby/ext/stringio/StringIO.java:829:in read'", "/Data/tools/logstash/vendor/bundle/jruby/1.9/gems/avro-1.8.2/lib/avro/io.rb:106:inread'", "/Data/tools/logstash/vendor/bundle/jruby/1.9/gems/avro-1.8.2/lib/avro/io.rb:93:in read_bytes'", "/Data/tools/logstash/vendor/bundle/jruby/1.9/gems/avro-1.8.2/lib/avro/io.rb:99:inread_string'", "/Data/tools/logstash/vendor/bundle/jruby/1.9/gems/avro-1.8.2/lib/avro/io.rb:299:in read_data'", "/Data/tools/logstash/vendor/bundle/jruby/1.9/gems/avro-1.8.2/lib/avro/io.rb:384:inread_record'", "org/jruby/RubyArray.java:1613:in each'", "/Data/tools/logstash/vendor/bundle/jruby/1.9/gems/avro-1.8.2/lib/avro/io.rb:382:inread_record'", "/Data/tools/logstash/vendor/bundle/jruby/1.9/gems/avro-1.8.2/lib/avro/io.rb:310:in read_data'", "/Data/tools/logstash/vendor/bundle/jruby/1.9/gems/avro-1.8.2/lib/avro/io.rb:275:inread'", "/Data/tools/logstash/vendor/bundle/jruby/1.9/gems/logstash-codec-avro-3.2.1-java/lib/logstash/codecs/avro.rb:77:in decode'", "/Data/tools/logstash/vendor/bundle/jruby/1.9/gems/logstash-input-kafka-4.1.1/lib/logstash/inputs/kafka.rb:163:inthread_runner'", "file:/Data/tools/logstash/vendor/jruby/lib/jruby.jar!/jruby/java/java_ext/java.lang.rb:12:in each'", "/Data/tools/logstash/vendor/bundle/jruby/1.9/gems/logstash-input-kafka-4.1.1/lib/logstash/inputs/kafka.rb:162:inthread_runner'"]}

Any solution to avoid this and not stop Logstash from running?


(system) #2

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.