Skip to content
Snippets Groups Projects
  1. Aug 04, 2022
    • Gleb Kashkin's avatar
      lua: exclude `_` prefix vars from unused check · 39deec83
      Gleb Kashkin authored
      Update luacheckrc to suppress all warnings from lua vars with `_` prefix.
      This allows to declare a function with an expected standardized interface
      without unused var warning.
      Fix luacheck warnings in src/box/console.lua.
      
      Closes #5032
      
      NO_CHANGELOG=warning fix
      NO_DOC=warning fix
      NO_TEST=warning fix
      39deec83
  2. Mar 21, 2022
  3. Oct 22, 2021
    • VitaliyaIoffe's avatar
      ci: make green luacheck · 28479779
      VitaliyaIoffe authored
      There are different warnings after adding checks and luatest submodules.
      
      Follows-up tarantool/test-run#304
      28479779
  4. Sep 09, 2021
    • EvgenyMekhanik's avatar
      iproto: implement getting network statistic per thread · 6fd94e29
      EvgenyMekhanik authored
      Currently getting iproto statistics per thread is possible only
      in debug mode, using `ERRINJ_IPROTO_SINGLE_THREAD_STAT` (it can be
      used only in tests). This way have several disadvantages: first of
      all `errinj` is not a place to get statistics, secondly user may be
      interested in getting iproto statistics per thread. In this patch
      `box.stat.net.thread` was implemented, it can be used for getting
      same statistics as from `box.stat.net` but per thread.
      
      Part of #6293
      
      @TarantoolBot document
      Title: getting network statistic per thread was implemented
      User has possibility to run several iproto threads, but at the moment
      he can get only general statistics, which combines statistics for all
      threads. Now `box.stat.net.thread` has been implemented to get the same
      statistics as when using `box.stat.net`, but for a thread. User can call
      `box.stat.net.thread()` as a function to get general network statistics
      per threads. For example for two iproto threads:
      ---
      - - SENT:
            total: 0
            rps: 0
          CONNECTIONS:
            current: 0
            rps: 0
            total: 0
          REQUESTS:
            current: 0
            rps: 0
            total: 0
          RECEIVED:
            total: 0
            rps: 0
        - SENT:
            total: 0
            rps: 0
          CONNECTIONS:
            current: 0
            rps: 0
            total: 0
          REQUESTS:
            current: 0
            rps: 0
            total: 0
          RECEIVED:
            total: 0
            rps: 0
      ...
      
      Also user can indexed it as a table by thread number. For example
      `box.stat.net.thread[1]` returns network statistics for first iproto
      thread:
      ---
      - SENT:
          total: 0
          rps: 0
        CONNECTIONS:
          current: 0
          rps: 0
          total: 0
        REQUESTS:
          current: 0
          rps: 0
          total: 0
        RECEIVED:
          total: 0
          rps: 0
      ...
      6fd94e29
  5. Apr 13, 2021
    • mechanik20051988's avatar
      iproto: implement ability to run multiple iproto threads · 2ede3be3
      mechanik20051988 authored
      There are users that have specific workloads where iproto thread
      is the bottleneck of throughput: iproto thread's code is 100% loaded
      while TX thread's core is not. For such cases it would be nice to have
      a capability to create several iproto threads.
      
      Closes #5645
      
      @TarantoolBot document
      Title: implement ability to run multiple iproto threads
      Implement ability to run multiple iproto threads, which is useful
      in some specific workloads where iproto thread is the bottleneck
      of throughput. To specify count of iproto threads, user should used
      iproto_threads option in box.cfg. For example if user want to start
      8 iproto threads, he must enter `box.cfg{iproto_threads=8}`. Default
      iproto threads count == 1. This option is not dynamic, so user can't
      change it after first setting, until server restart. Distribution of
      connections per threads is managed by OS kernel.
      2ede3be3
  6. Apr 07, 2021
  7. Mar 08, 2021
  8. Mar 02, 2021
  9. Feb 28, 2021
    • Igor Munkin's avatar
      build: adjust LuaJIT build system · 07c83aab
      Igor Munkin authored
      LuaJIT submodule is bumped to introduce the following changes:
      * test: run luacheck static analysis via CMake
      * test: fix warnings found with luacheck in misclib*
      * test: run LuaJIT tests via CMake
      * build: replace GNU Make with CMake
      * build: preserve the original build system
      
      Since LuaJIT build system is ported to CMake in scope of the changeset
      mentioned above, the module building the LuaJIT bundled in Tarantool is
      completely reworked. There is no option to build Tarantool against
      another prebuilt LuaJIT due to a91962c0
      ('Until Bug#962848 is fixed, don't try to compile with external
      LuaJIT'), so all redundant options defining the libluajit to be used in
      Tarantool are dropped with the related auxiliary files.
      
      To run LuaJIT related tests or static analysis for Lua files within
      LuaJIT repository, <LuaJIT-test> and <LuaJIT-luacheck> targets are used
      respectively as a dependency of the corresponding Tarantool targets.
      
      As an additional dependency to run LuaJIT tests, prove[1] utility is
      required, so the necessary binary packages are added to the lists with
      build requirements.
      
      [1]: https://metacpan.org/pod/TAP::Harness#prove
      
      
      
      Closes #4862
      Closes #5470
      Closes #5631
      
      Reviewed-by: default avatarSergey Kaplun <skaplun@tarantool.org>
      Reviewed-by: default avatarTimur Safin <tsafin@tarantool.org>
      Signed-off-by: default avatarIgor Munkin <imun@tarantool.org>
      07c83aab
  10. Feb 01, 2021
  11. Jan 22, 2021
  12. Jan 21, 2021
  13. Jan 18, 2021
  14. Jan 15, 2021
  15. Jan 14, 2021
  16. Dec 25, 2020
  17. Dec 16, 2020
    • Artem Starshov's avatar
      luacheck: change global vars to local in sql-tap · b1a4fed6
      Artem Starshov authored
      Fixed luacheck warning 111 (setting non-standard global variable)
      in test/sql-tap directory.
      Enabled this directory for checking W111 in
      config file(.luacheckrc).
      
      Changed almost all variables in test/sql-tap from globals
      to locals. In any cases, where variables need to be global,
      added explicit _G. prefix (table of globals).
      
      Fixes #5173
      Part-of #5464
      b1a4fed6
  18. Dec 01, 2020
    • Cyrill Gorcunov's avatar
      console: drop unused serpent module · b53cb2ae
      Cyrill Gorcunov authored
      
      Since the commit ae7e2103 we use internal serializer
      thus we no longer need serpent code.
      
      The patch removes the references from the source code
      and .gitmodules file, still one might need to run
      
       | git submodule deinit -f third_party/serpent
      
      manually to clean up the working tree depending
      on local git version.
      
      Closes #5517
      
      Signed-off-by: default avatarCyrill Gorcunov <gorcunov@gmail.com>
      b53cb2ae
Loading