From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp58.i.mail.ru (smtp58.i.mail.ru [217.69.128.38]) (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 50F36452566 for ; Tue, 5 Nov 2019 17:54:08 +0300 (MSK) From: Vladislav Shpilevoy Date: Tue, 5 Nov 2019 17:59:49 +0300 Message-Id: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH 0/3] Replication status errno List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: tarantool-patches@dev.tarantool.org, kostja.osipov@gmail.com The patchset makes box.info.replication*.upstream/downstream show errno description for system errors. I made that it shows strerror(errno) of the latest system error, but probably it would be better to show errno value, and let a user to translate it manually using Lua errno module. On the other hand my way is simpler for a user when he manually calls box.info in a console to check a replication status. That is discussable. Branch: http://github.com/tarantool/tarantool/tree/gerold103/gh-4402-replication-system-error Issue: https://github.com/tarantool/tarantool/issues/4402 Vladislav Shpilevoy (3): access: fix invalid error type for not found user error: move errno into an error object replication: show errno in replication info src/box/applier.cc | 2 +- src/box/lua/info.c | 29 +++++---- src/box/schema.cc | 5 +- src/box/user.cc | 5 +- src/lib/core/diag.c | 1 + src/lib/core/diag.h | 6 ++ src/lib/core/exception.cc | 22 +++---- src/lib/core/exception.h | 5 -- src/lua/error.lua | 10 ++++ test/box/access.result | 3 +- test/box/misc.result | 19 ++++++ test/box/misc.test.lua | 10 ++++ test/replication/gh-4402-info-errno.result | 63 ++++++++++++++++++++ test/replication/gh-4402-info-errno.test.lua | 25 ++++++++ test/replication/suite.cfg | 1 + 15 files changed, 170 insertions(+), 36 deletions(-) create mode 100644 test/replication/gh-4402-info-errno.result create mode 100644 test/replication/gh-4402-info-errno.test.lua -- 2.21.0 (Apple Git-122.2)