redis_failover 0.9.1 → 0.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Changes.md CHANGED
@@ -1,3 +1,7 @@
1
+ 0.9.2
2
+ -----------
3
+ - Improved exception handling in NodeWatcher.
4
+
1
5
  0.9.1
2
6
  -----------
3
7
  - Improve nested exception handling.
data/README.md CHANGED
@@ -175,7 +175,7 @@ redis_failover uses YARD for its API documentation. Refer to the generated [API
175
175
  - To learn more about ZooKeeper, see the official [ZooKeeper](http://zookeeper.apache.org/) site.
176
176
  - See the [Quick ZooKeeper Guide](https://github.com/ryanlecompte/redis_failover/wiki/Quick-ZooKeeper-Guide) for a quick guide to getting ZooKeeper up and running with redis_failover.
177
177
  - To learn more about how ZooKeeper handles network partitions, see [ZooKeeper Failure Scenarios](http://wiki.apache.org/hadoop/ZooKeeper/FailureScenarios)
178
- - Feel free to join #zk on the IRC freenode network. We're usually hanging out there talking about ZooKeeper and redis_failover.
178
+ - Feel free to join #zk-gem on the IRC freenode network. We're usually hanging out there talking about ZooKeeper and redis_failover.
179
179
 
180
180
 
181
181
  ## License
@@ -59,12 +59,16 @@ module RedisFailover
59
59
  notify(:available)
60
60
  @node.wait
61
61
  end
62
- rescue NodeUnavailableError
62
+ rescue NodeUnavailableError => ex
63
+ logger.debug("Failed to communicate with node #{@node}: #{ex.inspect}")
63
64
  failures += 1
64
65
  if failures >= @max_failures
65
66
  notify(:unavailable)
66
67
  failures = 0
67
68
  end
69
+ rescue => ex
70
+ logger.error("Unexpected error while monitoring node #{@node}: #{ex.inspect}")
71
+ logger.error(ex.backtrace.join("\n"))
68
72
  end
69
73
  end
70
74
  end
@@ -1,3 +1,3 @@
1
1
  module RedisFailover
2
- VERSION = '0.9.1'
2
+ VERSION = '0.9.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redis_failover
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-16 00:00:00.000000000 Z
12
+ date: 2012-08-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: redis
@@ -189,7 +189,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
189
189
  version: '0'
190
190
  segments:
191
191
  - 0
192
- hash: -610590228690809533
192
+ hash: -3297653838576069671
193
193
  required_rubygems_version: !ruby/object:Gem::Requirement
194
194
  none: false
195
195
  requirements:
@@ -198,7 +198,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
198
198
  version: '0'
199
199
  segments:
200
200
  - 0
201
- hash: -610590228690809533
201
+ hash: -3297653838576069671
202
202
  requirements: []
203
203
  rubyforge_project:
204
204
  rubygems_version: 1.8.23