[Tarantool-patches] [PATCH 0/3] Replication status errno

Vladislav Shpilevoy v.shpilevoy at tarantool.org
Tue Nov 5 17:59:49 MSK 2019


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)



More information about the Tarantool-patches mailing list