Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Session settings #247

Merged
merged 6 commits into from
Dec 21, 2022
Merged

Commits on Dec 13, 2022

  1. code health: rewrite ext error test skip

    Use skipIfLess helpers like in other test conditions.
    
    Follows #119
    DifferentialOrange committed Dec 13, 2022
    Configuration menu
    Copy the full SHA
    be0642f View commit details
    Browse the repository at this point in the history
  2. test: change space id range

    In Tarantool, user space ids starts from 512. You can set arbitrary id
    or use autoincrement (sequence also starts from 512). Unfortunately,
    mixing spaces with autoincremented ids and spaces with explicit ids may
    cause id conflict [1]. Since there are cases when we cannot explicitly
    set space id (creating a space with SQL), a short range of free ids
    (from 512 to 515) causes problems. This patch increases range of free
    ids (now it's from 512 to 615) so it should be ok until [1] is resolved.
    
    1. tarantool/tarantool#8036
    
    Part of #215
    DifferentialOrange committed Dec 13, 2022
    Configuration menu
    Copy the full SHA
    abcafcf View commit details
    Browse the repository at this point in the history
  3. test: configure module paths for queue init

    Set up package paths so queue test instances could be run with arbitrary
    work_dir.
    
    Part of #215
    DifferentialOrange committed Dec 13, 2022
    Configuration menu
    Copy the full SHA
    6cfd45b View commit details
    Browse the repository at this point in the history

Commits on Dec 14, 2022

  1. test: generate tmp work dirs

    Generate tmp work directories for each new Tarantool instance, if not
    specified. It prevents possible directory clash issues.
    
    Later `ioutil.TempDir` (deprecated since Go 1.17) must be replaced with
    `os.MkdirTemp` (introduced in Go 1.16 as a replacement) when we drop
    support of Go 1.16 an older.
    
    Part of #215
    DifferentialOrange committed Dec 14, 2022
    Configuration menu
    Copy the full SHA
    d092de6 View commit details
    Browse the repository at this point in the history
  2. test: improve skip helpers

    Make skip helpers public. Add more wrappers to reduce code duplication.
    
    Part of #215
    DifferentialOrange committed Dec 14, 2022
    Configuration menu
    Copy the full SHA
    0ce5ea5 View commit details
    Browse the repository at this point in the history

Commits on Dec 16, 2022

  1. api: support session settings

    Support session settings in a separate subpackage "settings" [1]. It
    allows to create a specific requests to get or set session
    settings. Settings are independent for each connection.
    
    1. https://www.tarantool.io/en/doc/latest/reference/reference_lua/box_space/_session_settings/
    
    Closes #215
    DifferentialOrange committed Dec 16, 2022
    Configuration menu
    Copy the full SHA
    7665568 View commit details
    Browse the repository at this point in the history