Changeset 3269
- Timestamp:
- 01/12/09 08:49:34 (14 months ago)
- Author:
- jmoore
- Message:
-
OmeroClustering : Fixing NPEs on early destroy()
(cherry picked from commit cf4827042bb1988a9839c389e5a667b8d83b1791)
- Location:
- trunk/components/blitz
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r3268
|
r3269
|
|
| 209 | 209 | public void destroy() { |
| 210 | 210 | try { |
| 211 | | this.clusterAdapter.deactivate(); |
| | 211 | if (this.clusterAdapter != null) { |
| | 212 | this.clusterAdapter.deactivate(); |
| | 213 | } |
| 212 | 214 | remove(MANAGERS + uuid); |
| 213 | 215 | int count = jdbc.update("delete from session_ring where value = ?", uuid); |
| … |
… |
|
| 217 | 219 | log.error("Error stopping ring " + this, e); |
| 218 | 220 | } finally { |
| 219 | | cluster.down(this.uuid); |
| | 221 | if (cluster != null) { |
| | 222 | cluster.down(this.uuid); |
| | 223 | } |
| 220 | 224 | } |
| 221 | 225 | } |
-
|
r3268
|
r3269
|
|
| 150 | 150 | @Test |
| 151 | 151 | public void testIfRedirectIsDeletedAnotherHostTakesOver() throws Exception { |
| 152 | | fails(); |
| | 152 | fail(); |
| 153 | 153 | } |
| 154 | 154 | } |
Download in other formats:
1.2.1-PRO © 2008-2009
agile42 all
rights reserved
(this page was served in: 0.511312 sec.)