From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from [87.239.111.99] (localhost [127.0.0.1]) by dev.tarantool.org (Postfix) with ESMTP id CFE7F6EC42; Thu, 12 Aug 2021 12:51:24 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org CFE7F6EC42 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1628761884; bh=IK4DjkPVfaeQJYqA1C38yF/D/6zetRs/KwiF+xIcbWE=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=QVsYxznuOjMUmqpCEd6ZJ2caBa6NCFohj6cnQz9wlrAOY9+BuU07UN0haanCbPR1Z QM0ctOYDpiPCx34xk8VGmF6gOGF/9g0w3jEqtUa7Wpul1zXQ75i2Slslv9BRJ7AFJC 2y4xw4RUgt9YE1YIYJ5HxI7MSaAXkuS9HrvaSLS8= Received: from smtp33.i.mail.ru (smtp33.i.mail.ru [94.100.177.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 256A96EC42 for ; Thu, 12 Aug 2021 12:50:50 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 256A96EC42 Received: by smtp33.i.mail.ru with esmtpa (envelope-from ) id 1mE7MN-0005NV-PD; Thu, 12 Aug 2021 12:50:48 +0300 To: tarantool-patches@dev.tarantool.org, vdavydov@tarantool.org, v.shpilevoy@tarantool.org Date: Thu, 12 Aug 2021 12:50:37 +0300 Message-Id: X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-7564579A: 78E4E2B564C1792B X-77F55803: 4F1203BC0FB41BD92087353F0EC44DD9ECFD080E047A606F56291F8739A291D6182A05F5380850400812501C6083E06C1E13B3A4D6037567318E6DBE1CFADE020468EF503912C459 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7F6EE1C40B2E8BE15EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F79006378010A306A5B6F90A8638F802B75D45FF36EB9D2243A4F8B5A6FCA7DBDB1FC311F39EFFDF887939037866D6147AF826D8B60D0C80AB834261BAA947585A236497117882F4460429724CE54428C33FAD305F5C1EE8F4F765FCF80095D1E57F4578A471835C12D1D9774AD6D5ED66289B52BA9C0B312567BB23117882F44604297287769387670735201E561CDFBCA1751F2CC0D3CB04F14752D2E47CDBA5A96583BA9C0B312567BB2376E601842F6C81A19E625A9149C048EE41BF15D38FB6CB3A9735652A29929C6C4AD6D5ED66289B52698AB9A7B718F8C46E0066C2D8992A16725E5C173C3A84C36F919A3A57F3677DBA3038C0950A5D36B5C8C57E37DE458B0BC6067A898B09E46D1867E19FE14079C09775C1D3CA48CF3D321E7403792E342EB15956EA79C166A417C69337E82CC275ECD9A6C639B01B78DA827A17800CE71B8D961A28FB0488731C566533BA786AA5CC5B56E945C8DA X-C1DE0DAB: C20DE7B7AB408E4181F030C43753B8183A4AFAF3EA6BDC44C234C8B12C006B7AB673E04388D63C4849494FC23C252E0DBFEBADAD7BADAB9CB1881A6453793CE9C32612AADDFBE06169C5891BE37D434B9510FB958DCE06DB6ED91DBE5ABE359A805C47957401F4818D1F0E447259586B93EDB24507CE13387DFF0A840B692CF8 X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D34D71B56C992F8AF19CDA76D34A79A45CF97727C945731C19D7AB726DAE807CC528CA94B47540CCCED1D7E09C32AA3244CCA7771923283C221934272E4FD28C39F725D5B54B2FE4575927AC6DF5659F194 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojKW4rnL99YhKZIUkj9KfiRA== X-Mailru-Sender: 583F1D7ACE8F49BD29FC049B2A5BF96395EA2367FC8BA7F52EBD43629C3508C21D779593B1EBD3B9B79567116EAC6FCF4E830D9205DBEA545646F0D3C63A617F27ACC94E9A535D22112434F685709FCF0DA7A0AF5A3A8387 X-Mras: Ok Subject: [Tarantool-patches] [PATCH v4 0/9] implement iproto streams X-BeenThere: tarantool-patches@dev.tarantool.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: mechanik20051988 via Tarantool-patches Reply-To: mechanik20051988 Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" branch: https://github.com/tarantool/tarantool/tree/mechanik20051988/gh-5860-iproto-streams-v1 pr: https://github.com/tarantool/tarantool/pull/6139 Changes in v4: 1 - 4: commits was approved. 5: move 'if (stream == NULL)' check into 'iproto_msg_finish_processing_in_stream' function. 6: - rename test - rename 'local new_stream' function to 'stream_new_stream'. - we unable to use 'self._stream_id' in _request method, because when we call it for spaces and indexes, 'self' == 'remote', which has no stream_id. 7: - add RAFT prefix for all requests types in iproto. 8: - rename 'rollback_on_disconnect_stream_route' ot 'rollback_on_disconnect_route'. - rename 'iproto_stream_push_on_disconnect_msg' to 'iproto_stream_rollback_on_disconnect' - add comment why we need 'mh_size(streams) == 0' check in iproto_connection_is_idle. - add some asserts as indicated in the review. 9: - rename begin, commit, rollback functions to stream_begin, stream_commit and stream_rollback. - add separate test for transactions. Vladimir Davydov (2): xrow: remove unused call_request::header iproto: clear request::header for client requests mechanik20051988 (7): iproto: implement stream id in binary iproto protocol salad: fix segfault in case when mhash table allocation failure iproto: implement streams in iproto net.box: add stream support to net.box iproto: add RAFT prefix for all requests related to 'raft'. iproto: implement interactive transactions over iproto streams net.box: add interactive transaction support in net.box .../gh-5860-implement-streams-in-iproto.md | 26 + src/box/box.cc | 4 +- src/box/call.c | 12 - src/box/errcode.h | 2 + src/box/iproto.cc | 479 ++- src/box/iproto_constants.c | 10 +- src/box/iproto_constants.h | 29 +- src/box/lua/net_box.c | 144 +- src/box/lua/net_box.lua | 240 +- src/box/memtx_engine.c | 4 +- src/box/txn.c | 25 +- src/box/txn.h | 19 + src/box/txn_limbo.c | 18 +- src/box/xrow.c | 9 +- src/box/xrow.h | 13 +- src/lib/core/errinj.h | 2 + src/lib/salad/mhash.h | 99 +- test/box-tap/feedback_daemon.test.lua | 2 +- test/box/access.result | 6 +- test/box/access.test.lua | 6 +- test/box/errinj.result | 2 + test/box/error.result | 2 + test/box/iproto_streams.lua | 13 + test/box/misc.result | 5 +- ...net.box_console_connections_gh-2677.result | 2 +- ...t.box_console_connections_gh-2677.test.lua | 2 +- .../net.box_incorrect_iterator_gh-841.result | 4 +- ...net.box_incorrect_iterator_gh-841.test.lua | 4 +- test/box/net.box_iproto_hangs_gh-3464.result | 2 +- .../box/net.box_iproto_hangs_gh-3464.test.lua | 2 +- test/box/net.box_iproto_streams.result | 473 +++ test/box/net.box_iproto_streams.test.lua | 182 + ...ox_iproto_transactions_over_streams.result | 3009 +++++++++++++++++ ..._iproto_transactions_over_streams.test.lua | 1238 +++++++ .../net.box_long-poll_input_gh-3400.result | 8 +- .../net.box_long-poll_input_gh-3400.test.lua | 8 +- test/box/suite.ini | 2 +- test/unit/mhash_body.c | 4 +- test/unit/xrow.cc | 7 +- test/unit/xrow.result | 168 +- 40 files changed, 6021 insertions(+), 265 deletions(-) create mode 100644 changelogs/unreleased/gh-5860-implement-streams-in-iproto.md create mode 100644 test/box/iproto_streams.lua create mode 100644 test/box/net.box_iproto_streams.result create mode 100644 test/box/net.box_iproto_streams.test.lua create mode 100644 test/box/net.box_iproto_transactions_over_streams.result create mode 100644 test/box/net.box_iproto_transactions_over_streams.test.lua -- 2.20.1