error when writing a data

39 views
Skip to first unread message

Denis Sotnikov

unread,
Apr 14, 2016, 7:31:15 AM4/14/16
to reverbrain
hi there.
i created a simple app(http://pastebin.com/WEnCVpWe). if I run this code, i get errors to stderr:

2016-04-14 14:32:13.406707 0000000000000000/32054/32054 ERROR: 10.240.37.16:1025: 2:b4f33541e0e2...759caa2ae8e7: backend: 0, trans: 2 TIMEOUT/need-exit: stall-check wait-ts: 5, need-exit: -117, cmd: WRITE [4], started: 2016-04-14 14:32:12.406496, attrs: []

2016-04-14 14:32:13.407297 0000000000000000/32054/32054 ERROR: 2:b4f33541e0e2...759caa2ae8e7: handled reply from: 10.240.37.16:1025, cmd: WRITE, flags: 0x1 [need_ack], trans: 0, status: -117, size: 0, client: 1, last: 1, attrs: []

but, if i add ar.wait() in the end - error disappeared. what i do wrong? is it something about async_result destruction?

Kirill Smorodinnikov

unread,
Apr 14, 2016, 7:52:24 AM4/14/16
to Denis Sotnikov, reverbrain
Hi, Denis

You should keep logger, node and session until the end of transaction (until your callback is called).

--
You received this message because you are subscribed to the Google Groups "reverbrain" group.
To unsubscribe from this group and stop receiving emails from it, send an email to reverbrain+...@googlegroups.com.
To post to this group, send email to rever...@googlegroups.com.
Visit this group at https://groups.google.com/group/reverbrain.
For more options, visit https://groups.google.com/d/optout.

Denis Sotnikov

unread,
Apr 14, 2016, 8:10:16 AM4/14/16
to reverbrain, deanso...@gmail.com
damn, you're right. thnx)

четверг, 14 апреля 2016 г., 14:52:24 UTC+3 пользователь Kirill Smorodinnikov написал:
Reply all
Reply to author
Forward
0 new messages