From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 719E0250C5 for ; Thu, 1 Aug 2019 07:13:34 -0400 (EDT) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sWpCmHVU0AfP for ; Thu, 1 Aug 2019 07:13:34 -0400 (EDT) Received: from smtpng3.m.smailru.net (smtpng3.m.smailru.net [94.100.177.149]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id 2DEF32504F for ; Thu, 1 Aug 2019 07:13:34 -0400 (EDT) From: Kirill Shcherbatov Subject: [tarantool-patches] [PATCH v1 0/3] box: stacked diagnostics area in fiber Date: Thu, 1 Aug 2019 14:13:25 +0300 Message-Id: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: tarantool-patches-bounce@freelists.org Errors-to: tarantool-patches-bounce@freelists.org Reply-To: tarantool-patches@freelists.org List-Help: List-Unsubscribe: List-software: Ecartis version 1.0.0 List-Id: tarantool-patches List-Subscribe: List-Owner: List-post: List-Archive: To: tarantool-patches@freelists.org, v.shpilevoy@tarantool.org Cc: alexander.turenko@tarantool.org, kostja@tarantool.org, Kirill Shcherbatov Support stacked diagnostics for Tarantool allows to accumulate all occurred errors during processing a request. This allows to better understand what has happened and handle errors correspondingly. http://github.com/tarantool/tarantool/tree/kshch/gh-1148-stacked-errors https://github.com/tarantool/tarantool/issues/1148 Kirill Shcherbatov (3): box: rfc for stacked diagnostic area in Tarantool box: stacked diagnostics area in fiber box: extend ffi error object API src/box/error.h | 23 +++ src/lib/core/diag.h | 45 ++++- src/lib/core/exception.h | 2 +- src/box/key_list.c | 16 +- src/box/lua/call.c | 6 +- src/box/vy_scheduler.c | 6 +- src/lib/core/diag.c | 1 + src/lua/utils.c | 2 +- doc/rfc/1148-stacked-diagnostics.md | 136 ++++++++++++++ extra/exports | 2 + src/box/applier.cc | 2 +- src/box/error.cc | 27 ++- src/box/relay.cc | 4 +- src/lib/core/exception.cc | 2 +- src/lua/error.lua | 75 +++++++- test/app/fiber.result | 12 +- test/box/access.result | 2 +- test/box/access.test.lua | 2 +- test/box/errors.result | 265 ++++++++++++++++++++++++++++ test/box/errors.test.lua | 53 ++++++ test/box/misc.result | 12 +- test/engine/func_index.result | 65 ++++++- test/engine/func_index.test.lua | 4 + 23 files changed, 713 insertions(+), 51 deletions(-) create mode 100644 doc/rfc/1148-stacked-diagnostics.md create mode 100644 test/box/errors.result create mode 100644 test/box/errors.test.lua -- 2.22.0