Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,10 @@ And Carmine-sentinel subcribes `+switch-master` channel in sentinel.When the mas

At last, carmine-sentinel will refresh the sentinel instance list by the response from command `SENTINEL sentinels [name]`.

In the case where a cached master is not working correctly and the failure has not been detected by the sentinels (for whatever reason) the library will not automatically remove it's cache.

Therefore it is suggested that you call `remove-invalid-resolved-master-specs!` periodically to avoid this situation.

## API docs

* [Carmine-sentinel APIs](http://fnil.net/docs/carmine_sentinel/)
Expand Down
2 changes: 1 addition & 1 deletion src/carmine_sentinel/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@
(try
(when-not (master-role? (:master master-specs))
(swap! sentinel-resolved-specs dissoc-in [group-id master-name]))
(catch EOFException _
(catch Exception _
(swap! sentinel-resolved-specs dissoc-in [group-id master-name]))))))

(defn register-listener!
Expand Down