Skip to content

Commit 8833764

Browse files
author
Nathan Marz
committed
remove ability to customize HWM, as it's not actually useful
1 parent 83e2eec commit 8833764

File tree

5 files changed

+4
-15
lines changed

5 files changed

+4
-15
lines changed

conf/defaults.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ task.refresh.poll.secs: 10
5454

5555
zmq.threads: 1
5656
zmq.linger.millis: 5000
57-
zmq.high.water.mark: null
5857

5958
### topology.* configs are for specific executing storms
6059
topology.debug: false

src/clj/backtype/storm/daemon/worker.clj

-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@
112112
mq-context
113113
(msg-loader/mk-zmq-context (storm-conf ZMQ-THREADS)
114114
(storm-conf ZMQ-LINGER-MILLIS)
115-
(storm-conf ZMQ-HIGH-WATER-MARK)
116115
(= (conf STORM-CLUSTER-MODE) "local")))
117116
outbound-tasks (worker-outbound-tasks task->component mk-topology-context task-ids)
118117
endpoint-socket-lock (mk-rw-lock)

src/clj/backtype/storm/messaging/zmq.clj

+3-4
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
(.close socket)
1818
))
1919

20-
(deftype ZMQContext [context linger-ms hwm ipc?]
20+
(deftype ZMQContext [context linger-ms ipc?]
2121
Context
2222
(bind [this virtual-port]
2323
(-> context
@@ -32,7 +32,6 @@
3232
(-> context
3333
(mq/socket mq/push)
3434
(mq/set-linger linger-ms)
35-
(mq/set-hwm hwm)
3635
(mq/connect url)
3736
(ZMQConnection.))))
3837
(send-local-task-empty [this virtual-port]
@@ -46,6 +45,6 @@
4645
context))
4746

4847

49-
(defn mk-zmq-context [num-threads linger hwm local?]
50-
(ZMQContext. (mq/context num-threads) linger hwm local?))
48+
(defn mk-zmq-context [num-threads linger local?]
49+
(ZMQContext. (mq/context num-threads) linger local?))
5150

src/clj/zilch/mq.clj

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
[^ZMQ$Socket socket hwm]
6161
(if hwm
6262
(doto socket
63-
(.setHwm (long hwm)))
63+
(.setHWM (long hwm)))
6464
socket
6565
))
6666

src/jvm/backtype/storm/Config.java

-8
Original file line numberDiff line numberDiff line change
@@ -342,14 +342,6 @@ public class Config extends HashMap<String, Object> {
342342
* The number of threads that should be used by the zeromq context in each worker process.
343343
*/
344344
public static String ZMQ_THREADS = "zmq.threads";
345-
346-
/**
347-
* The high water mark for the underlying push sockets used to send messages. If downstream
348-
* tasks to a producer are overloaded, the producer will block until the downstream tasks
349-
* have consumed messages. This configuration can be used to prevent overloading in topologies
350-
* that use unreliable spouts and are thus not controllable with TOPOLOGY_MAX_SPOUT_PENDING.
351-
*/
352-
public static String ZMQ_HIGH_WATER_MARK = "zmq.high.water.mark";
353345

354346
/**
355347
* How long a connection should retry sending messages to a target host when

0 commit comments

Comments
 (0)