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 D5FED6EC5F; Sat, 17 Apr 2021 01:13:16 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org D5FED6EC5F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1618611196; bh=UDkjWvoTyjZ7DR3Hmlt3QWH0Za4QZmLgbo+7jF6wZq8=; h=To:Cc:References:Date:In-Reply-To:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=AC8qehEDcFluTQb7h+owllg+3D/7dMKTYEyhkHsAtNd0uA5c+xNW3678YaWcKqyRm pDQLpJa+Pxr8hbmZN/VgYchxATPLyUSfppkTVU1cy8kNTqfl1Taa55qgEmCDjM49MQ kw8hTiDNt3R2kGx4s78wEdbGBpPxwVgiL37DX5r0= Received: from smtp42.i.mail.ru (smtp42.i.mail.ru [94.100.177.102]) (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 1B5EC6EC5F for ; Sat, 17 Apr 2021 01:13:05 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 1B5EC6EC5F Received: by smtp42.i.mail.ru with esmtpa (envelope-from ) id 1lXWi0-0005My-CM; Sat, 17 Apr 2021 01:13:04 +0300 To: Serge Petrenko , gorcunov@gmail.com Cc: tarantool-patches@dev.tarantool.org References: <578222e82d897fd042d73afefa14766a0518de09.1618409665.git.sergepetrenko@tarantool.org> <72b60d0e-f657-1102-9129-e9f719af338b@tarantool.org> <42d09549-d7f5-9a44-b1f5-b7a6defe6be5@tarantool.org> Message-ID: Date: Sat, 17 Apr 2021 00:13:03 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.9.1 MIME-Version: 1.0 In-Reply-To: <42d09549-d7f5-9a44-b1f5-b7a6defe6be5@tarantool.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-7564579A: 646B95376F6C166E X-77F55803: 4F1203BC0FB41BD92FFCB8E6708E74800BD71C2E2CF43DDE8CBA234A641A13D4182A05F53808504066ECC7168174A4BB7A382E3ACA6FEFAEF8AA2E041D862B3E0011A948861744CE X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7F65C230EDDCD559EEA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F790063776672C316918EFDB8638F802B75D45FF914D58D5BE9E6BC1A93B80C6DEB9DEE97C6FB206A91F05B267AC3D8F2AAE9E400FFE19CEB1C23AC006708AB62ED68B8ED2E47CDBA5A96583C09775C1D3CA48CF17B107DEF921CE79117882F4460429724CE54428C33FAD30A8DF7F3B2552694AC26CFBAC0749D213D2E47CDBA5A9658378DA827A17800CE77E7E81EEA8A9722B8941B15DA834481F9449624AB7ADAF37BA3038C0950A5D3613377AFFFEAFD2691661749BA6B97735445799C0BE171A437B076A6E789B0E97A8DF7F3B2552694A1E7802607F20496D49FD398EE364050FB28585415E75ADA93D5BA627BF9F2FCFB3661434B16C20AC78D18283394535A9E827F84554CEF50127C277FBC8AE2E8BA83251EDC214901ED5E8D9A59859A8B6A1DCCEB63E2F10FB089D37D7C0E48F6C5571747095F342E88FB05168BE4CE3AF X-B7AD71C0: AC4F5C86D027EB782CDD5689AFBDA7A2368A440D3B0F6089093C9A16E5BC824A2A04A2ABAA09D25379311020FFC8D4ADC9C490B0B7E26B4657A7228AA71A8943 X-C1DE0DAB: 0D63561A33F958A524B5D09744F98ED8D7D01FE020334DB6D5F6075F7B4DF49AD59269BC5F550898D99A6476B3ADF6B47008B74DF8BB9EF7333BD3B22AA88B938A852937E12ACA7502E6951B79FF9A3F410CA545F18667F91A7EA1CDA0B5A7A0 X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D34AC632F0BE69382F3D86CE29D0985EFC4FC65A75DA4088A8D151FBA6A36E440CBB5FF7A4A988D37701D7E09C32AA3244CB37A834DA3409B0D82230FE2F38729B3853296C06374E602FACE5A9C96DEB163 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojr8JA+pXcDuntwA9wnj2wXg== X-Mailru-Sender: 504CC1E875BF3E7D9BC0E5172ADA3110CA9132F2EC38665CE045C607743B2EE75E798E977E28F61B07784C02288277CA03E0582D3806FB6A5317862B1921BA260ED6CFD6382C13A6112434F685709FCF0DA7A0AF5A3A8387 X-Mras: Ok Subject: Re: [Tarantool-patches] [PATCH v3 06/10] raft: keep track of greatest known term and filter replication sources based on that 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: Vladislav Shpilevoy via Tarantool-patches Reply-To: Vladislav Shpilevoy Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" >>> +    /** >>> +     * Latest terms received with PROMOTE entries from remote instances. >>> +     * Raft uses them to determine data from which sources may be applied. >>> +     */ >>> +    struct vclock term_map; >> 7. I have a feeling it is similar to the limbo's LSN map. Like >> they should be merged into something one. Can't formulate that >> properly. I hope we will see it more clear when will move all that >> to the WAL thread someday. > > Yes, they're quite similar. > > Do you mean we should create some new structure instead of using vclock for > these entities? Like something which would incorporate remote state: > a map of ids with their known terms and confirmed lsns? Yes, I think we might end up with that. We already have struct replica doing similar, but they are not in WAL thread.