Skip to content

Commit

Permalink
More tweaks.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonhyman committed Oct 6, 2015
1 parent d499c57 commit aca3d07
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mongo/server_selector.rb
Expand Up @@ -36,7 +36,7 @@ module ServerSelector
# How long to block for server selection before throwing an exception.
#
# @since 2.0.0
SERVER_SELECTION_TIMEOUT = 30.freeze
SERVER_SELECTION_TIMEOUT = 10.freeze

# Primary read preference.
#
Expand Down
1 change: 1 addition & 0 deletions lib/mongo/server_selector/selectable.rb
Expand Up @@ -85,6 +85,7 @@ def select_server(cluster)
server = servers.first
return server if server.connectable?
end
Mongo::Logger.logger.info("[jontest] could not get server for cluster #{cluster.inspect}: servers #{cluster.servers.inspect}, round trip time is #{cluster.servers.map(&:average_round_trip_time)}")
cluster.scan!
end
raise Error::NoServerAvailable.new(self)
Expand Down

0 comments on commit aca3d07

Please sign in to comment.