Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schema verification failure due to missing authentication produces inadequate logs #73

Open
robbavey opened this issue Feb 24, 2021 · 0 comments

Comments

@robbavey
Copy link
Contributor

During the process to verify schemas when using the confluent schema registry, failing to authenticate produces the following log entries:

[2021-02-23T07:33:21,086][ERROR][logstash.javapipeline ][test] Pipeline aborted due to error {:pipeline_id=>"test", :exception=>#<TypeError: no implicit conversion of Hash into Array>, :backtrace=>["org/jruby/RubyArray.java:3503:in &'", "org/jruby/RubyMethod.java:131:in call'", "/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/awesome_print-1.7.0/lib/awesome_print/core_ext/array.rb:20:in block in Array'", "/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-integration-kafka-10.7.0-java/lib/logstash/plugin_mixins/common.rb:64:in check_for_schema_registry_connectivity_and_subjects'", "/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-integration-kafka-10.7.0-java/lib/logstash/plugin_mixins/common.rb:32:in check_schema_registry_parameters'", "/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-integration-kafka-10.7.0-java/lib/logstash/inputs/kafka.rb:249:in register'", "/usr/share/logstash/logstash-core/lib/logstash/java_pipeline.rb:216:in block in register_plugins'", "org/jruby/RubyArray.java:1809:in each'", "/usr/share/logstash/logstash-core/lib/logstash/java_pipeline.rb:215:in register_plugins'", "/usr/share/logstash/logstash-core/lib/logstash/java_pipeline.rb:327:in start_inputs'", "/usr/share/logstash/logstash-core/lib/logstash/java_pipeline.rb:287:in start_workers'", "/usr/share/logstash/logstash-core/lib/logstash/java_pipeline.rb:170:in run'", "/usr/share/logstash/logstash-core/lib/logstash/java_pipeline.rb:125:in `block in start'"], "pipeline.sources"=>["central pipeline management"], :thread=>"#<Thread:0x66c7719f run>"}

This is likely happening due to the return payload being different to the expected return value from the /subjects endpoint, and no checks being done on the status code returned when hitting that endpoint.

Related: #72

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant