Skip to content

test: vinyl/errinj flaky fails on high loaded host on box.snapshot() #11

@avtikhon

Description

@avtikhon

Tarantool version:
master
OS version:
Ubuntu 18.04

Bug description:
Failed:

[016] --- vinyl/errinj.result	Mon Jul 15 07:18:57 2019
[016] +++ vinyl/errinj.reject	Mon Jul 15 17:00:21 2019
[016] @@ -86,7 +86,7 @@
[016]  ...
[016]  box.snapshot();
[016]  ---
[016] -- ok
[016] +- error: Error injection 'vinyl dump'
[016]  ...
[016]  num_rows = num_rows + range();
[016]  ---
[009] --- vinyl/errinj.result	Mon Jul 15 07:18:57 2019
[009] +++ vinyl/errinj.reject	Mon Jul 15 17:26:04 2019
[009] @@ -352,7 +352,7 @@
[009]  ...
[009]  box.snapshot();
[009]  ---
[009] -- ok
[009] +- error: Error injection 'xlog write injection'
[009]  ...
[009]  #s:select({1})
[009]  ---

All the fails are common and have the following structure:

-- enabling the error injection
errinj.set("ERRINJ_VY_RUN_WRITE", true);
num_rows = num_rows + range();
-- fails due to error injection
box.snapshot();

-- disabling the error injection
errinj.set("ERRINJ_VY_RUN_WRITE", false);
fiber.sleep(0.06);
num_rows = num_rows + range();
-- FAILS HERE: still fails at the error injection, but in real should pass
box.snapshot();

Steps to reproduce:

l=0 ; while time ./test-run.py -j15 `for r in {1..15} ; do echo vinyl ; done` 2>/dev/null ; do l=$(($l+1)) ; echo ======== $l ============= ; done
l=0 ; while time ./test-run.py -j10 `for r in {1..150} ; do echo vinyl/errinj.test.lua ; done` 2>/dev/null ; do l=$(($l+1)) ; echo ======== $l ============= ; done

Optional (but very desirable):

  • coredump
  • backtrace
  • netstat

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions