# Getting tuple by messageId

**URL:** <https://discuss.elastic.co/t/getting-tuple-by-messageid/18199>\
**Category:** Elasticsearch\
**Created:** [June 19, 2014, 5:13am UTC](https://discuss.elastic.co/t/getting-tuple-by-messageid/18199 "2014-06-19T05:13:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Seungjin\_Lee](https://avatars.discourse-cdn.com/v4/letter/s/2acd7d/32.png) [@Seungjin\_Lee](https://discuss.elastic.co/u/Seungjin_Lee)\
**Post date:** [June 19, 2014, 5:13am UTC](https://discuss.elastic.co/t/getting-tuple-by-messageid/18199/1 "2014-06-19T05:13:31Z")

</div>

Hi all,

I'm using BaseRichSpout and to my knowledge, I have to implement the  
replay logic to guarantee message processing.

When I see the fail method of BaseRichSpout,

public void _fail_(java.lang.Object msgId)

it just gives me messageId.

and of course I set collector in open method. so I think if I make  
fail method to do collector.emit(failed tuple), I can guarantee  
exactly-once message processing.

Is there any way to get a tuple in a tuple tree by its Id? or do I  
have to fetch again from some source?

thanks

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAL3\_U40og9VKc3m5uZJF\_3QdyNdbtz9M0BxHonORNtw%2BDO%3DkUg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAL3_U40og9VKc3m5uZJF_3QdyNdbtz9M0BxHonORNtw%2BDO%3DkUg%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 1:21am UTC](https://discuss.elastic.co/t/getting-tuple-by-messageid/18199/2 "2017-07-06T01:21:21Z")

</div>

Closed on July 6, 2017, 1:21am UTC


