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

[Test Failure] 7.17 ruby unit test agent_spec is failing #14961

Closed
kaisecheng opened this issue Mar 13, 2023 · 1 comment · Fixed by #15301
Closed

[Test Failure] 7.17 ruby unit test agent_spec is failing #14961

kaisecheng opened this issue Mar 13, 2023 · 1 comment · Fixed by #15301
Assignees

Comments

@kaisecheng
Copy link
Contributor

kaisecheng commented Mar 13, 2023

ci
169
170

flicking test in 7.17.9, agent_spec.rb, when reloading a good config

10:42:49     Failures:
10:42:49 
10:42:49       1) LogStash::Agent using persisted queue behaves like all Agent tests metrics after config reloading when reloading a good config does not set the last reload error
10:42:49          Failure/Error: Unable to find org/logstash/execution/ConvergeResultExt.java to read failed line
10:42:49          
10:42:49          LogStash::Error:
10:42:49            Don't know how to handle `Java::JavaLang::NullPointerException` for `PipelineAction::Reload<main>`
10:42:49          Shared Example Group: "all Agent tests" called from ./logstash-core/spec/logstash/agent_spec.rb:579
10:42:49          # org/logstash/execution/ConvergeResultExt.java:135:in `create'
10:42:50          # org/logstash/execution/ConvergeResultExt.java:60:in `add'
10:42:50          # ./logstash-core/lib/logstash/agent.rb:405:in `block in converge_state'
19:20:54     Failures:
19:20:54 
19:20:54       1) LogStash::Agent using persisted queue behaves like all Agent tests metrics after config reloading when reloading a good config resets the pipeline metric collector
19:20:54          Failure/Error: Unable to find org/logstash/execution/ConvergeResultExt.java to read failed line
19:20:54          
19:20:54          LogStash::Error:
19:20:54            Don't know how to handle `Java::JavaLang::NullPointerException` for `PipelineAction::Reload<main>`
19:20:54          Shared Example Group: "all Agent tests" called from ./logstash-core/spec/logstash/agent_spec.rb:579
19:20:54          # org/logstash/execution/ConvergeResultExt.java:135:in `create'
19:20:54          # org/logstash/execution/ConvergeResultExt.java:60:in `add'
19:20:54          # ./logstash-core/lib/logstash/agent.rb:405:in `block in converge_state'
19:20:54 
19:20:54       2) LogStash::Agent using persisted queue behaves like all Agent tests metrics after config reloading when reloading a good config does not reset the global event count
19:20:54          Failure/Error: Unable to find org/logstash/execution/ConvergeResultExt.java to read failed line
19:20:54          
19:20:54          LogStash::Error:
19:20:54            Don't know how to handle `Java::JavaLang::NullPointerException` for `PipelineAction::Reload<main>`
19:20:54          Shared Example Group: "all Agent tests" called from ./logstash-core/spec/logstash/agent_spec.rb:579
19:20:54          # org/logstash/execution/ConvergeResultExt.java:135:in `create'
19:20:54          # org/logstash/execution/ConvergeResultExt.java:60:in `add'
19:20:54          # ./logstash-core/lib/logstash/agent.rb:405:in `block in converge_state'
19:20:54 
19:20:54       3) LogStash::Agent using persisted queue behaves like all Agent tests metrics after config reloading when reloading a good config increases the successful reload count
19:20:54          Failure/Error: Unable to find org/logstash/execution/ConvergeResultExt.java to read failed line
19:20:54          
19:20:54          LogStash::Error:
19:20:54            Don't know how to handle `Java::JavaLang::NullPointerException` for `PipelineAction::Reload<main>`
19:20:54          Shared Example Group: "all Agent tests" called from ./logstash-core/spec/logstash/agent_spec.rb:579
19:20:54          # org/logstash/execution/ConvergeResultExt.java:135:in `create'
19:20:54          # org/logstash/execution/ConvergeResultExt.java:60:in `add'
19:20:54          # ./logstash-core/lib/logstash/agent.rb:405:in `block in converge_state'
19:20:54 
19:20:54       4) LogStash::Agent using persisted queue behaves like all Agent tests metrics after config reloading when reloading a good config does not set the last reload error
19:20:54          Failure/Error: Unable to find org/logstash/execution/ConvergeResultExt.java to read failed line
19:20:54          
19:20:54          LogStash::Error:
19:20:54            Don't know how to handle `Java::JavaLang::NullPointerException` for `PipelineAction::Reload<main>`
19:20:54          Shared Example Group: "all Agent tests" called from ./logstash-core/spec/logstash/agent_spec.rb:579
19:20:54          # org/logstash/execution/ConvergeResultExt.java:135:in `create'
19:20:54          # org/logstash/execution/ConvergeResultExt.java:60:in `add'
19:20:54          # ./logstash-core/lib/logstash/agent.rb:405:in `block in converge_state'
19:20:54 
19:20:54       5) LogStash::Agent using memory queue behaves like all Agent tests metrics after config reloading when reloading a good config does not set the last reload error
19:20:54          Failure/Error: Unable to find org/logstash/execution/ConvergeResultExt.java to read failed line
19:20:54          
19:20:54          LogStash::Error:
19:20:54            Don't know how to handle `Java::JavaLang::NullPointerException` for `PipelineAction::StopAndDelete<main>`
19:20:54          Shared Example Group: "all Agent tests" called from ./logstash-core/spec/logstash/agent_spec.rb:573
19:20:54          # org/logstash/execution/ConvergeResultExt.java:135:in `create'
19:20:54          # org/logstash/execution/ConvergeResultExt.java:60:in `add'
19:20:54          # ./logstash-core/lib/logstash/agent.rb:405:in `block in converge_state'
19:20:54 
19:20:54       6) LogStash::Agent using memory queue behaves like all Agent tests metrics after config reloading when reloading a good config does not set the failure reload timestamp
19:20:54          Failure/Error: Unable to find org/logstash/execution/ConvergeResultExt.java to read failed line
19:20:54          
19:20:54          LogStash::Error:
19:20:54            Don't know how to handle `Java::JavaLang::NullPointerException` for `PipelineAction::StopAndDelete<main>`
19:20:54          Shared Example Group: "all Agent tests" called from ./logstash-core/spec/logstash/agent_spec.rb:573
19:20:54          # org/logstash/execution/ConvergeResultExt.java:135:in `create'
19:20:54          # org/logstash/execution/ConvergeResultExt.java:60:in `add'
19:20:54          # ./logstash-core/lib/logstash/agent.rb:405:in `block in converge_state'
19:20:54 
19:20:54       7) LogStash::Agent using memory queue behaves like all Agent tests metrics after config reloading when reloading a good config increases the successful reload count
19:20:54          Failure/Error: Unable to find org/logstash/execution/ConvergeResultExt.java to read failed line
19:20:54          
19:20:54          LogStash::Error:
19:20:54            Don't know how to handle `Java::JavaLang::NullPointerException` for `PipelineAction::StopAndDelete<main>`
19:20:54          Shared Example Group: "all Agent tests" called from ./logstash-core/spec/logstash/agent_spec.rb:573
19:20:54          # org/logstash/execution/ConvergeResultExt.java:135:in `create'
19:20:54          # org/logstash/execution/ConvergeResultExt.java:60:in `add'
19:20:54          # ./logstash-core/lib/logstash/agent.rb:405:in `block in converge_state'
19:20:54 
19:20:54     Finished in 16 minutes 5 seconds (files took 11.71 seconds to load)
19:20:54     2918 examples, 7 failures, 20 pending
19:20:54 
19:20:54     Failed examples:
19:20:54 
19:20:54     rspec './logstash-core/spec/logstash/agent_spec.rb[1:2:1:11:1:1]' # LogStash::Agent using persisted queue behaves like all Agent tests metrics after config reloading when reloading a good config resets the pipeline metric collector
19:20:54     rspec './logstash-core/spec/logstash/agent_spec.rb[1:2:1:11:1:2]' # LogStash::Agent using persisted queue behaves like all Agent tests metrics after config reloading when reloading a good config does not reset the global event count
19:20:54     rspec './logstash-core/spec/logstash/agent_spec.rb[1:2:1:11:1:3]' # LogStash::Agent using persisted queue behaves like all Agent tests metrics after config reloading when reloading a good config increases the successful reload count
19:20:54     rspec './logstash-core/spec/logstash/agent_spec.rb[1:2:1:11:1:6]' # LogStash::Agent using persisted queue behaves like all Agent tests metrics after config reloading when reloading a good config does not set the last reload error
19:20:54     rspec './logstash-core/spec/logstash/agent_spec.rb[1:1:1:11:1:6]' # LogStash::Agent using memory queue behaves like all Agent tests metrics after config reloading when reloading a good config does not set the last reload error
19:20:54     rspec './logstash-core/spec/logstash/agent_spec.rb[1:1:1:11:1:4]' # LogStash::Agent using memory queue behaves like all Agent tests metrics after config reloading when reloading a good config does not set the failure reload timestamp
19:20:54     rspec './logstash-core/spec/logstash/agent_spec.rb[1:1:1:11:1:3]' # LogStash::Agent using memory queue behaves like all Agent tests metrics after config reloading when reloading a good config increases the successful reload count
19:20:54 
19:20:54     Randomized with seed 7908
@kaisecheng
Copy link
Contributor Author

The failure can replicate locally SPEC_OPTS="-fd -P logstash-core/spec/logstash/agent_spec.rb" ./gradlew :logstash-core:rubyTests --tests org.logstash.RSpecTests
Fail path: reload.rb old_pipeline.shutdown -> java_pipeline.rb wait_for_shutdown

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

Successfully merging a pull request may close this issue.

1 participant