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 055EC6EC41; Thu, 12 Aug 2021 14:16:43 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 055EC6EC41 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1628767003; bh=lQKXniSPVJtYIXjFQIGacKvFGeZPCy4kbezCYd0kUac=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=odm/DVfaKK3FuygswuGqjt+MPcnrwX4PitBaCByTukmY68u9ZtTghhQlRzwyYVWJJ pgCkIWZNDXvKDH90uYYD6WNljob99mz6RywuSWli1N1PEVC/SInpcmU+VyS2OmVE7t iKfdDiEuJp/b++3O4t8glfYTc0hB9s7hWpmR5tKg= Received: from smtp53.i.mail.ru (smtp53.i.mail.ru [94.100.177.113]) (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 6F6356EC40 for ; Thu, 12 Aug 2021 14:16:41 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 6F6356EC40 Received: by smtp53.i.mail.ru with esmtpa (envelope-from ) id 1mE8hU-00008e-1r; Thu, 12 Aug 2021 14:16:40 +0300 To: tarantool-patches@dev.tarantool.org, vdavydov@tarantool.org, v.shpilevoy@tarantool.org Date: Thu, 12 Aug 2021 14:16:37 +0300 Message-Id: X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-7564579A: B8F34718100C35BD X-77F55803: 4F1203BC0FB41BD92087353F0EC44DD9F9A2272A1D086A28553D1D5C4B4124EF182A05F5380850408E4F2050ADFF065D53B43315E3A23C0B97F04F3DE980499A032F66DD63BFA6FC X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7EC0B1A4921CAE631EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F79006373D58C44ED3182E498638F802B75D45FF36EB9D2243A4F8B5A6FCA7DBDB1FC311F39EFFDF887939037866D6147AF826D817C94BE6726B5D7B0701FE5EF00BCBEA117882F4460429724CE54428C33FAD305F5C1EE8F4F765FCAE9A1BBD95851C5BA471835C12D1D9774AD6D5ED66289B52BA9C0B312567BB23117882F446042972877693876707352033AC447995A7AD1828451B159A507268D2E47CDBA5A96583BA9C0B312567BB2376E601842F6C81A19E625A9149C048EEC8105B04EFE076281B0CC92B5A49C88ED8FC6C240DEA7642DBF02ECDB25306B2B78CF848AE20165D0A6AB1C7CE11FEE3672DC5A730DF09D26E0066C2D8992A16C4224003CC836476EA7A3FFF5B025636E2021AF6380DFAD1A18204E546F3947CB11811A4A51E3B096D1867E19FE1407959CC434672EE6371089D37D7C0E48F6C8AA50765F7900637F42730888E86278DEFF80C71ABB335746BA297DBC24807EABDAD6C7F3747799A X-B7AD71C0: AC4F5C86D027EB782CDD5689AFBDA7A213B5FB47DCBC3458834459D11680B505560B888ADB67126913AD012DD1956226 X-C1DE0DAB: C20DE7B7AB408E4181F030C43753B8183A4AFAF3EA6BDC44C234C8B12C006B7A22924756F2EC2580BDBDB97C960B2C9F1C82574109B1FAA8B1881A6453793CE9C32612AADDFBE0611DACF5C5817E6ED59510FB958DCE06DB6ED91DBE5ABE359AD76C6ED7039589D88D1F0E447259586B93EDB24507CE13387DFF0A840B692CF8 X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D34EA882B598A209811FF2A562C0E24A1D57E34B1919F7011EA459172C81519982B68ED175EF9C1294E1D7E09C32AA3244C1E98D7A16EEACCADAFED6CF83ABC1A463A76366E8A9DE7CA927AC6DF5659F194 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojKW4rnL99YhJd91B/mUUqxA== X-Mailru-Sender: 583F1D7ACE8F49BD29FC049B2A5BF963BC5FC41CB923CA2FD947966D778400F8A87205C077BFC0CFB79567116EAC6FCF4E830D9205DBEA545646F0D3C63A617F27ACC94E9A535D22112434F685709FCF0DA7A0AF5A3A8387 X-Mras: Ok Subject: [Tarantool-patches] [PATCH v5 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 v5: - Fix comment in 'iproto_connection_is_idle' function. 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 | 481 ++- 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, 6023 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