mongo 2.16.0.alpha1 → 2.16.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3112358aa696aa5d05305642f004ad5b32bbab28162dea03b96572ed546fc932
4
- data.tar.gz: fa983d69caf1b98e44b035fd43d264df4e2c76fa1cb0761d8798e83af2173f92
3
+ metadata.gz: 803953b133578a0014b611609e6b334196ebe25484ee4db3fc3299cf1911445f
4
+ data.tar.gz: 368a07676afa5d71f41e86b9a288b4691f99b0549d041d87d6c4a8cf771d6ff5
5
5
  SHA512:
6
- metadata.gz: c38dca4384567fa492f8ecea2b357c4e72178bb70fcf1a1da9b3b932c56848f209e3c637ad5c40cb95bcb8b9e0a8017e389ea95e610cf45078108fff5bcbf49a
7
- data.tar.gz: 8b2fe87f2f589c2af5ebb67a195d981cc4cf0c08c19f7090cbffe35fe270d56cd0ea6d6fa9dd304c444a8480b0793bba639787e7545bc84e18dd42fd9b7f22e3
6
+ metadata.gz: dd6d240f340e8ea904028bf7d3a9cc2ef6ee6d0e54d181a45c2e083f8e71dc29fab942d265425f5eeb98c0e5f81786f8d0ade460e90ffe2da7af69038f22155f
7
+ data.tar.gz: 4474efb5b33f984b4900bd702f05d1c012b5827b09b33281da60c9e07f3c416953292d2d2e9b463ed3c015f8a5e607de9da9aafcf8452b9568373dae49dbd880
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/mongo/version.rb CHANGED
@@ -20,5 +20,5 @@ module Mongo
20
20
  # The current version of the driver.
21
21
  #
22
22
  # @since 2.0.0
23
- VERSION = '2.16.0.alpha1'.freeze
23
+ VERSION = '2.16.0'.freeze
24
24
  end
@@ -208,12 +208,20 @@ module Unified
208
208
  else
209
209
  raise
210
210
  end
211
+ rescue Interrupt
212
+ raise
211
213
  rescue => e
212
- if store_errors
214
+ if store_failures
215
+ STDERR.puts "Error: #{e.class}: #{e} (reporting as failure)"
216
+ entities.get(:failure_list, store_failures) << {
217
+ error: "#{e.class}: #{e}",
218
+ time: Time.now.to_f,
219
+ }
220
+ elsif store_errors
213
221
  STDERR.puts "Error: #{e.class}: #{e}"
214
222
  entities.get(:error_list, store_errors) << {
215
223
  error: "#{e.class}: #{e}",
216
- observedAt: Time.now.to_f,
224
+ time: Time.now.to_f,
217
225
  }
218
226
  else
219
227
  raise
@@ -209,7 +209,12 @@ module Mrss
209
209
  @server_version = build_info['version']
210
210
  @enterprise = build_info['modules'] && build_info['modules'].include?('enterprise')
211
211
 
212
- @server_parameters = client.use(:admin).command(getParameter: '*').first
212
+ @server_parameters = begin
213
+ client.use(:admin).command(getParameter: '*').first
214
+ rescue => e
215
+ STDERR.puts("WARNING: Failed to obtain server parameters: #{e.class}: #{e.message}")
216
+ {}
217
+ end
213
218
 
214
219
  if !sharded_ish? && short_server_version >= '3.4'
215
220
  rv = @server_parameters['featureCompatibilityVersion']
@@ -55,7 +55,7 @@ FROM <%= base_image %>
55
55
  # Ruby runtime dependencies: libyaml-0-2
56
56
  # Compiling ruby libraries: gcc make
57
57
  # Compiling pyhton packages: python2.7-dev
58
- # JRuby: openjdk-8-jre-headless
58
+ # JRuby: openjdk-8-jdk-headless
59
59
  # Server dependencies: libsnmp30 libcurl3/libcurl4
60
60
  # Determining OS we are running on: lsb-release
61
61
  # Load balancer testing: haproxy
@@ -104,11 +104,11 @@ FROM <%= base_image %>
104
104
  <% end %>
105
105
 
106
106
  <% if distro =~ /debian10/ %>
107
- <% packages << 'openjdk-11-jre-headless' %>
107
+ <% packages << 'openjdk-11-jdk-headless' %>
108
108
  <% elsif distro =~ /ubuntu1404/ %>
109
109
  # Ubuntu 14.04 only has openjdk 7, this is too old to be useful
110
110
  <% else %>
111
- <% packages << 'openjdk-8-jre-headless' %>
111
+ <% packages << 'openjdk-8-jdk-headless' %>
112
112
  <% end %>
113
113
 
114
114
  # ubuntu1404, ubuntu1604: libcurl3
@@ -13,7 +13,7 @@ class SpecConfig
13
13
  @uri_options = {}
14
14
  @ruby_options = {}
15
15
  if ENV['MONGODB_URI']
16
- @mongodb_uri = Mongo::URI.new(ENV['MONGODB_URI'])
16
+ @mongodb_uri = Mongo::URI.get(ENV['MONGODB_URI'])
17
17
  @uri_options = Mongo::Options::Mapper.transform_keys_to_symbols(@mongodb_uri.uri_options)
18
18
  if ENV['TOPOLOGY'] == 'load-balanced'
19
19
  @addresses = @mongodb_uri.servers
data.tar.gz.sig CHANGED
Binary file