-
Notifications
You must be signed in to change notification settings - Fork 498
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
Ruby 2.5 stream closed in another thread #3229
Milestone
Comments
A dirty workaround for this particular command action is: --- a/src/cli/one_helper/onehost_helper.rb
+++ b/src/cli/one_helper/onehost_helper.rb
@@ -369,9 +369,20 @@ class OneHostHelper < OpenNebulaHelper::OneHelper
" #{host['NAME']}:#{remote_dir} 2> /dev/null"
end
- `#{sync_cmd} 2>/dev/null`
+ retries = 3
+
+ begin
+ `#{sync_cmd} 2>/dev/null`
+ rescue IOError => err
+ # workaround for unpatched Ruby 2.5
+ # https://bugs.ruby-lang.org/projects/ruby-trunk/repository/trunk/revision?utf8=%E2%9C%93&rev=63216
+ if (retries -= 1) > 0
+ sleep 1
+ retry
+ end
+ end
- if !$CHILD_STATUS.success?
+ if $CHILD_STATUS.nil? || !$CHILD_STATUS.success?
error_lock.synchronize do
host_errors << host['NAME']
end (More parts could be affected. And, also it's not possible to do a command retry in most cases.) |
This must be addressed by 5.8.2 for sure, the patch above was provided to the customer. |
vholer
pushed a commit
that referenced
this issue
May 7, 2019
vholer
pushed a commit
that referenced
this issue
May 7, 2019
vholer
pushed a commit
to OpenNebula/docs
that referenced
this issue
May 7, 2019
PRs to merge:
|
vholer
pushed a commit
that referenced
this issue
May 7, 2019
rsmontero
pushed a commit
that referenced
this issue
May 7, 2019
rsmontero
pushed a commit
that referenced
this issue
May 7, 2019
rsmontero
pushed a commit
to OpenNebula/docs
that referenced
this issue
May 7, 2019
rsmontero
pushed a commit
that referenced
this issue
Oct 4, 2024
rsmontero
pushed a commit
that referenced
this issue
Jan 13, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
On Ruby 2.5.x systems (Ubuntu 18.04 + 18.10, Debian 10), we might experience a strange behaviour when running several commands in parallel inside different threads.
For example:
Might be related to this bugfix, which is not applied to Ruby 2.5.x:
Details
Progress Status
The text was updated successfully, but these errors were encountered: