Skip to content
Snippets Groups Projects
  1. Mar 15, 2021
  2. Mar 12, 2021
    • Artem Starshov's avatar
      lua: fix tarantool -e always enters interactive mode · 0787483c
      Artem Starshov authored
      The reason why tarantool -e always enters interactive mode is that
      statement after option -e isn't considered as a script.
      
      In man PUC-Rio lua there are different names for statement -e (stat)
      and script, but they have the same behavior regarding interactive
      mode. (Also cases, when interpreter loads stdin, have the same behaviour).
      
      NOTE: test for this code fix uses errinjs, and the last one  should work only
      in debug mode, so added `release_disabled` in suite.ini. But there is a bug in
      test-run: `release_disable` disables tests at each build type. Partially this
      problem is descripted in tarantool/test-run#199.
      
      Fixes #5040
      0787483c
    • Artem Starshov's avatar
      core: add setting error injections via env · 80f306e6
      Artem Starshov authored
      Sometimes, it's useful to set error injections via environment
      variables and this commit adds this opportunity.
      
      e.g: `ERRINJ_WAL_WRITE=true tarantool` will be launched with
      ERRINJ_WAL_WRITE setted to true.
      
      Errinjs with bool parameters can be set to "true", "false",
      "True", "False", "TRUE", "FALSE", etc. (case-insensitive variable).
      
      Errinjs with int or double parameters should be whole valid ("123s" is invalid).
      e.g. for int or double: "123", "-1", "2.34", "+2.34".
      
      NOTE: errinjs should work only in debug mode, so added `release_disabled` in
      suite.ini. But there is a bug in test-run: `release_disable` disables tests at
      each build type. Partially this problem is descripted in tarantool/test-run#199.
      
      Part of #5040
      80f306e6
  3. Mar 11, 2021
    • Oleg Babin's avatar
      netbox: add "path" to index schema · b3d4648d
      Oleg Babin authored
      Seems previously "path" wasn't installed to index schema. This
      patch fixes it and introduces a test.
      
      Closes #5451
      b3d4648d
    • Alexander Turenko's avatar
      test: update test-run (add misc module to cleaner) · ffab1320
      Alexander Turenko authored
      This commit adds the misc module support into the pretest_clean
      machinery: so `_G.misc` and `package.loaded.misc` are not cleared before
      running of a test of the 'core = tarantool' type. See [1] for details.
      
      [1]: https://github.com/tarantool/test-run/commit/34ea4afd6543d8bc29c371ec2effb756a7460520
      
      Follows up #5187
      Unverified
      ffab1320
    • mechanik20051988's avatar
      Fixed undefined behavior detected by UB sanitizer · 2b748d7e
      mechanik20051988 authored
      Relay structure must have alignas(CACHELINE_SIZE), but when
      we use simple malloc or same function to allocate memory for
      this structure we get pointer with incorrect alignment.
      So now we allocate memory for this struct using aligned_alloc.
      2b748d7e
    • mechanik20051988's avatar
      memxt: add granularity option to box.cfg{} · 53c0e910
      mechanik20051988 authored
      Granularity is an option that allows user to set
      multiplicity of memory allocation in small allocator.
      Granulatiry must be exponent of two and >= 4. By default
      granularity value == sizeof(intptr_t), as it was before,
      when this option was not provided.
      
      @TarantoolBot document
      Title: Add 'granularity' option to box.cfg{}
      Add granularity option that allows user to set multiplicity
      of memory allocation in small allocator. Granularity determines
      not only alignment of objects, but also size of the objects in
      the pool. Thus, the greater the granularity, the greater the
      memory loss per one memory allocation, but tuples with different
      sizes are allocated from the same mempool, and we do not lose
      memory on the slabs, when we have highly distributed tuple sizes.
      This is somewhat similar to a large alloc factor. The smaller the
      granularity, the less memory loss per allocation, if the user has
      many small tuples of approximately the same size, it will be nice
      to set granularity == 4 to save memory.
      
      This option must be set once during start, default value
      == sizeof(intptr_t) (8 on 64 bit platforms), as it was before, when
      this option was not provided. Granularity must be exponent of two
      and >= 4. Together with the slab_alloc_factor, this option gives you
      full control over the behavior of small allocator.
      
      Closes #5518
      53c0e910
  4. Mar 10, 2021
    • Alexander V. Tikhonov's avatar
      github-ci: ubuntu-20.04 misses createrepo package · 3a7c2102
      Alexander V. Tikhonov authored
      Found that ubuntu-latest that switched in Github Actions from
      ubuntu-18.04 to ubuntu-20.04, doesn't have createrepo package
      available in Ubuntu repositories to be installed. It happened
      because createrepo written on python2, which is not supported
      by ubuntu-20.04. Anyway createrepo tool was rewritten on C to
      make it available for the later distributions, its new naming
      is createrepo_c. It is already avaliable in Ubuntu 21.04, but
      still not backported to 20.04 version. So we need to wait its
      avalaibility in Ubuntu 22.04 either its backported version in
      20.04 [1]. As for now we need to use ubuntu-18.04 in Actions.
      
      [1]: https://answers.launchpad.net/createrepo/+question/690448
      3a7c2102
    • Igor Munkin's avatar
      luajit: bump new version · 1458a2b2
      Igor Munkin authored
      LuaJIT submodule is bumped to introduce the following changes:
      * test: adjust LuaJIT test suite for Tarantool
      * test: change LuaJIT test suite to match b4e6bf0
      * test: change LuaJIT test suite to match 5a61e1a
      * test: change LuaJIT test suite to match c198167
      * test: change LuaJIT test suite to match de5568e
      * test: add LuaJIT-test-cleanup test suite
      * test: fix Lua command in utils.selfrun
      * test: fix luacheck invocation for non-real paths
      
      Within this changeset LuaJIT-test-cleanup suite[1] is added to Tarantool
      testing. Considering Tarantool specific changes in runtime the suite
      itself is adjusted in LuaJIT submodule. However, there is <strict>
      module enabled by default in Debug build, so the testing environment
      need to be tweaked via test/luajit-test-init.lua script to be run prior
      to every LuaJIT suite test is started.
      
      [1]: https://github.com/LuaJIT/LuaJIT-test-cleanup/tree/014708b/test
      
      
      
      Closes #4064
      Part of #4473
      
      Reviewed-by: default avatarSergey Kaplun <skaplun@tarantool.org>
      Reviewed-by: default avatarSergey Ostanevich <sergos@tarantool.org>
      Signed-off-by: default avatarIgor Munkin <imun@tarantool.org>
      Unverified
      1458a2b2
  5. Mar 08, 2021
  6. Mar 05, 2021
  7. Mar 04, 2021
  8. Mar 03, 2021
  9. Mar 02, 2021
Loading