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

[META] problems surfacing due switching docker base image #13572

Closed
3 of 5 tasks
kares opened this issue Dec 30, 2021 · 2 comments
Closed
3 of 5 tasks

[META] problems surfacing due switching docker base image #13572

kares opened this issue Dec 30, 2021 · 2 comments

Comments

@kares
Copy link
Contributor

kares commented Dec 30, 2021

Logstash is (recently) switched it's base Docker image from CentOS 7 to Ubuntu 20.04

This issue is meant to track (mostly plugin testing) related issues caused by the switch.

@kares
Copy link
Contributor Author

kares commented Jan 12, 2022

since 94d04f8 this should now be surfacing with 7.x SNAPSHOT builds as well

@kares
Copy link
Contributor Author

kares commented Jun 13, 2022

the interrupt issue is related to the rufus-scheduler update after all, the initialization of Scheduler#start
executing a EoTime.now (rufus 3.0 wasn't using a custom Time impl and did a Time.now) which causes local time-zone detection using tzinfo which has some heavy initialization esp. on CI, the scheduler is still stuck in loading .rb files which we try to shut it down.

a work-around of avoiding execution of such code in a separate thread will be in place:

begin
  # TODO: CI work-around - will most likely be moved to the scheduler mixin
  require 'et-orbi.rb' # a dependency of rufus-scheduler since 3.4
  ::EtOrbi::EoTime.now # might take a long time to initialize - loading time zone
  # data (from tz-info) and thus gets un-predictable on CI, since the scheduler worker
  # thread might be stuck starting while we attempt to shutdown in a given time frame
rescue LoadError
end

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

No branches or pull requests

2 participants