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

Support session settings #215

Closed
oleg-jukovec opened this issue Sep 14, 2022 · 0 comments · Fixed by #247
Closed

Support session settings #215

oleg-jukovec opened this issue Sep 14, 2022 · 0 comments · Fixed by #247
Assignees
Labels
feature A new functionality

Comments

@oleg-jukovec
Copy link
Collaborator

It may be great to support native configuration of:

https://www.tarantool.io/en/doc/latest/reference/reference_lua/box_space/_session_settings/

@oleg-jukovec oleg-jukovec added teamE feature A new functionality labels Sep 14, 2022
DifferentialOrange added a commit that referenced this issue Dec 13, 2022
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 added a commit that referenced this issue Dec 13, 2022
Generate tmp work directories for each new Tarantool instance. It
prevents possible directory clash issues.

Part of #215
DifferentialOrange added a commit that referenced this issue Dec 13, 2022
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 added a commit that referenced this issue Dec 13, 2022
Set up package paths so queue test instances could be run with arbitrary
work_dir.

Part of #215
DifferentialOrange added a commit that referenced this issue Dec 13, 2022
Generate tmp work directories for each new Tarantool instance. 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 added a commit that referenced this issue Dec 13, 2022
SkipIfLess and SkipIfGreaterOrEqual are useful to build custom skip
conditions in subpackage.

Part of #215
DifferentialOrange added a commit that referenced this issue Dec 13, 2022
Set up package paths so queue test instances could be run with arbitrary
work_dir.

Part of #215
DifferentialOrange added a commit that referenced this issue Dec 13, 2022
Generate tmp work directories for each new Tarantool instance. 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 added a commit that referenced this issue Dec 13, 2022
SkipIfLess and SkipIfGreaterOrEqual are useful to build custom skip
conditions in subpackage.

Part of #215
DifferentialOrange added a commit that referenced this issue Dec 13, 2022
Support session settings in a separate subpackage "settings" [1]. It
allows to create a specific Select/Update 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 added a commit that referenced this issue Dec 14, 2022
Generate tmp work directories for each new Tarantool instance. 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 added a commit that referenced this issue Dec 14, 2022
Make skip helpers public. Add more wrappers to reduce code duplication.

Part of #215
DifferentialOrange added a commit that referenced this issue Dec 14, 2022
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 added a commit that referenced this issue Dec 14, 2022
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 added a commit that referenced this issue Dec 14, 2022
Make skip helpers public. Add more wrappers to reduce code duplication.

Part of #215
DifferentialOrange added a commit that referenced this issue Dec 14, 2022
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 added a commit that referenced this issue Dec 15, 2022
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 added a commit that referenced this issue Dec 16, 2022
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
oleg-jukovec pushed a commit that referenced this issue Dec 21, 2022
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
oleg-jukovec pushed a commit that referenced this issue Dec 21, 2022
Set up package paths so queue test instances could be run with arbitrary
work_dir.

Part of #215
oleg-jukovec pushed a commit that referenced this issue Dec 21, 2022
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
oleg-jukovec pushed a commit that referenced this issue Dec 21, 2022
Make skip helpers public. Add more wrappers to reduce code duplication.

Part of #215
oleg-jukovec pushed a commit that referenced this issue Dec 21, 2022
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
oleg-jukovec added a commit that referenced this issue Dec 28, 2022
Overview

    The release improves compatibility with new Tarantool versions.

Breaking changes

    There are no breaking changes in the release.

New features

    Support iproto feature discovery (#120).

    Support errors extended information (#209).

    Support error type in MessagePack (#209).

    Support event subscriptin (#119).

    Support session settings (#215).

    Support pap-sha256 authorization method (Tarantool EE
    feature) (#243).

    Support graceful shutdown (#214).

Bugfixes

    Decimal package uses a test variable DecimalPrecision instead
    of a package-level variable decimalPrecision (#233).

    Flaky test TestClientRequestObjectsWithContext (#244).

    Flaky test multi/TestDisconnectAll (#234).
oleg-jukovec added a commit that referenced this issue Dec 29, 2022
Overview

    The release improves compatibility with new Tarantool versions.

Breaking changes

    There are no breaking changes in the release.

New features

    Support iproto feature discovery (#120).

    Support errors extended information (#209).

    Support error type in MessagePack (#209).

    Support event subscription (#119).

    Support session settings (#215).

    Support pap-sha256 authorization method (Tarantool EE
    feature) (#243).

    Support graceful shutdown (#214).

Bugfixes

    Decimal package uses a test variable DecimalPrecision instead
    of a package-level variable decimalPrecision (#233).

    Flaky test TestClientRequestObjectsWithContext (#244).

    Flaky test multi/TestDisconnectAll (#234).
oleg-jukovec added a commit that referenced this issue Dec 30, 2022
Overview

    The release improves compatibility with new Tarantool versions.

Breaking changes

    There are no breaking changes in the release.

New features

    Support iproto feature discovery (#120).

    Support errors extended information (#209).

    Support error type in MessagePack (#209).

    Support event subscription (#119).

    Support session settings (#215).

    Support pap-sha256 authorization method (Tarantool EE
    feature) (#243).

    Support graceful shutdown (#214).

Bugfixes

    Decimal package uses a test variable DecimalPrecision instead
    of a package-level variable decimalPrecision (#233).

    Flaky test TestClientRequestObjectsWithContext (#244).

    Flaky test multi/TestDisconnectAll (#234).
pull bot pushed a commit to kokizzu/go-tarantool that referenced this issue Jan 1, 2023
Overview

    The release improves compatibility with new Tarantool versions.

Breaking changes

    There are no breaking changes in the release.

New features

    Support iproto feature discovery (tarantool#120).

    Support errors extended information (tarantool#209).

    Support error type in MessagePack (tarantool#209).

    Support event subscription (tarantool#119).

    Support session settings (tarantool#215).

    Support pap-sha256 authorization method (Tarantool EE
    feature) (tarantool#243).

    Support graceful shutdown (tarantool#214).

Bugfixes

    Decimal package uses a test variable DecimalPrecision instead
    of a package-level variable decimalPrecision (tarantool#233).

    Flaky test TestClientRequestObjectsWithContext (tarantool#244).

    Flaky test multi/TestDisconnectAll (tarantool#234).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants