One thing to note for asynchronous bolt is that "emit" does some magic things regarding to anchors (calculating value for XOR-ing) which affects "ack", so "ack" should be after emitting all the tuples to downstream. AFAIK there's no other restriction at all. (beware tuple timeout even asynchronous)
- Jungtaek Lim (HeartSaVioR) 2017년 12월 22일 (금) 오후 5:36, Jinhua Luo <[email protected]>님이 작성: > Hi All, > > In real cases, chances are that we need to do some async tasks in the > blot's execute(), the async tasks may be completed after execute() > returns, so is it ok to emit tuples to downstream then? And is it ok > to emit tuples anchoring the input tuple at that time? > > Similarly, is it ok to ack the input tuple in async way after execute() > returns? > > I'm newbie to storm, please help, thanks! >
