-
-
Notifications
You must be signed in to change notification settings - Fork 942
Closed
Labels
Milestone
Description
Hi,
Recently we observed that our production log has load error for Digest::SHA256 resulting in,
NotImplementedError: the Digest::SHA256() function is unimplemented on this machine
This is reproducible on master with the following change,
- Add sleep into RubyDigest so that it takes a while to assign metadata,
on 413f5dd, at line 228 of RubyDigest, insert snippet,
try {
System.out.println("sleep 10 seonds before instance v set");
Thread.sleep(10000);
} catch (InterruptedException e) {
e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.
}- Run the following ruby script,
require 'digest'
threads = []
100.times do
threads << (Thread.new do
begin
Digest::SHA256.new
rescue Exception => e
puts "[DEBUG]e => #{e.inspect}"
end
end)
end
threads.each(&:join)I have attached an image of the RubyDigest with sleep code.
Thanks,
Vinay.
Reactions are currently unavailable
