File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed
src/clj/backtype/storm/daemon Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change 258
258
(->> (all-supervisor-info storm-cluster-state callback)
259
259
(map-val :hostname )))
260
260
261
+ ; ; TODO: this needs to be mocked out
261
262
(defn- available-slots
262
263
[conf storm-cluster-state callback]
263
264
(let [supervisor-ids (.supervisors storm-cluster-state callback)
264
- supervisor-infos (all-supervisor-info storm-cluster-state callback)
265
- ; ; TODO: this is broken. need to maintain a map since last time
266
- ; ; supervisor hearbeats like is done for tasks
267
- ; ; maybe it's ok to trust ephemeral nodes here?
268
- ; ;[[id info]]
269
- ; ; (when (< (time-delta (:time-secs info))
270
- ; ; (conf NIMBUS-SUPERVISOR-TIMEOUT-SECS))
271
- ; ; [[id info]]
272
- ; ; )
265
+ supervisor-infos (all-supervisor-info storm-cluster-state callback)
273
266
all-slots (map-val (comp set :worker-ports ) supervisor-infos)
274
267
existing-slots (assigned-slots storm-cluster-state)
275
268
]
412
405
413
406
; ; public so it can be mocked out
414
407
(defn compute-new-task->node+port [conf storm-id existing-assignment storm-cluster-state callback task-heartbeats-cache scratch?]
415
- (let [available-slots (available-slots conf storm-cluster-state callback)
408
+ (let [available-slots (available-slots conf storm-cluster-state callback)
416
409
storm-conf (read-storm-conf conf storm-id)
417
410
all-task-ids (set (.task-ids storm-cluster-state storm-id))
418
411
You can’t perform that action at this time.
0 commit comments