File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 22Features:
33
44Bug Fixes:
5+ * [ RUBY-219] ( https://datastax-oss.atlassian.net/browse/RUBY-219 ) Sometimes get stack trace in metadata.rb due to failure in SortedSet initialization.
56
67
78# 3.0.0 GA
Original file line number Diff line number Diff line change @@ -834,6 +834,11 @@ def self.validate_and_massage_options(options)
834834# murmur3 hash extension
835835require 'cassandra_murmur3'
836836
837+ # SortedSet has a race condition where it does some class/global initialization when the first instance is created.
838+ # If this is done in a multi-threaded environment, bad things can happen. So force the initialization here,
839+ # when loading the C* module.
840+ ::SortedSet . new
841+
837842module Cassandra
838843 # @private
839844 VOID_STATEMENT = Statements ::Void . new
You can’t perform that action at this time.
0 commit comments