xymaqingxiang created STORM-2836:
------------------------------------

             Summary: Backpressure can cause OOM if delete zk node manually
                 Key: STORM-2836
                 URL: https://issues.apache.org/jira/browse/STORM-2836
             Project: Apache Storm
          Issue Type: Bug
            Reporter: xymaqingxiang
         Attachments: oom.jpg

The problem is more easily reproduced with sleep topology, the bolt just sleep, 
not do anything.

I have test storm 1.0.2 ABP in our cluster, it soon reach highWaterMark, and 
slow down the tuple sending speed of the spouts.

If i delete the zookeeper flag node manually, the spouts will continue to 
consume normally, but it cause OOM. That's not what we want to see.

In my  opinion, it should soon reach highWaterMark again, and it would creat a 
new znode to slow down the tuple sending speed of the spouts. But it didn't 
work.

I suspect it was cause "update the worker's backpressure flag to zookeeper only 
when it has changed" in worker.clj, if i transfer "when (not= 
prev-backpressure-flag curr-backpressure-flag)" to "when 
curr-backpressure-flag" in the mk-backpressure-handler method of file 
worker.clj, it works. which may put more load on zookeeper, I will seek a 
better solution.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to