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

readview: fix garbagecollector #379

Merged
merged 1 commit into from
Oct 4, 2023

Conversation

better0fdead
Copy link
Contributor

@better0fdead better0fdead commented Oct 4, 2023

Added workaround for garbagecollection of readview because for tarantool lua (and lua 5.1) __gc metamethod only works for cdata types.

See tarantool/tarantool#5770

What has been done? Why? What problem is being solved?

I didn't forget about

  • [ x] Tests
  • [ x] Changelog
  • [ not need] Documentation

end, res)
t.assert_equals(res, {["s-1"] = {}, ["s-2"] = {}})
t.assert_equals(res, {{}, {}, {}, {}})
Copy link
Contributor

@oleg-jukovec oleg-jukovec Oct 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is wrong indentation (and at the previous line too.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed

@better0fdead better0fdead force-pushed the better0fdead/gc-fix-readview branch from a73011d to 7dc1adf Compare October 4, 2023 09:32
@better0fdead better0fdead force-pushed the better0fdead/gc-fix-readview branch from 7dc1adf to b465cae Compare October 4, 2023 09:33
@better0fdead better0fdead force-pushed the better0fdead/gc-fix-readview branch from b465cae to 1b5a9ca Compare October 4, 2023 10:16
CHANGELOG.md Outdated Show resolved Hide resolved
Added workaround for 'garbagecollector' of readview because
for tarantool lua (and lua 5.1) '__gc' metamethod only works for cdata types.

See tarantool/tarantool#5770
@better0fdead better0fdead force-pushed the better0fdead/gc-fix-readview branch from 1b5a9ca to 1645e1b Compare October 4, 2023 10:52
@DifferentialOrange DifferentialOrange merged commit 994d9dc into master Oct 4, 2023
26 of 27 checks passed
@DifferentialOrange DifferentialOrange deleted the better0fdead/gc-fix-readview branch October 4, 2023 11:11
DifferentialOrange added a commit that referenced this pull request Oct 16, 2023
Overview

  This release improves experience for VShard clusters users and
  Tarantool 3 users. It also introduces schema introspection API.

New features

  * Space schema introspection API `crud.schema` (#380).

Bugfixes

  * Return explicit error for `*_many` call with
    no tuples/objects (#377).
  * `crud.readview` resource cleanup on garbage collect (#379).
  * VShard storage user have not execution rights for
    internal functions (#366).

Infrastructure

  * `deps.sh` installs the `vshard` instead of the `cartridge`
    by default (#364). You could to specify an environment variable
    `CARTIRDGE_VERSION` to install the `cartridge` and run tests cases
    with it.
  * `doc/playground.lua` does not work with Tarantool 3 (#371).
  * Tests with Tarantool 3 (#364).
  * Quickstart section in the README.md focuses on usage with `vshard`
    instead of `Cartridge` (#366).
@DifferentialOrange DifferentialOrange mentioned this pull request Oct 16, 2023
DifferentialOrange added a commit that referenced this pull request Oct 16, 2023
Overview

  This release improves experience for VShard clusters users and
  Tarantool 3 users. It also introduces schema introspection API.

New features

  * Space schema introspection API `crud.schema` (#380).

Bugfixes

  * Return explicit error for `*_many` call with
    no tuples/objects (#377).
  * `crud.readview` resource cleanup on garbage collect (#379).
  * VShard storage user have not execution rights for
    internal functions (#366).
  * Compatibility with Tarantool 3.0 tuple objects (#387).

Infrastructure

  * `deps.sh` installs the `vshard` instead of the `cartridge`
    by default (#364). You could to specify an environment variable
    `CARTIRDGE_VERSION` to install the `cartridge` and run tests cases
    with it.
  * `doc/playground.lua` does not work with Tarantool 3 (#371).
  * Tests with Tarantool 3 (#364).
  * Quickstart section in the README.md focuses on usage with `vshard`
    instead of `Cartridge` (#366).
DifferentialOrange added a commit that referenced this pull request Oct 16, 2023
Overview

  This release improves experience for VShard clusters users and
  Tarantool 3 users. It also introduces schema introspection API.

New features

  * Space schema introspection API `crud.schema` (#380).

Bugfixes

  * Return explicit error for `*_many` call with
    no tuples/objects (#377).
  * `crud.readview` resource cleanup on garbage collect (#379).
  * VShard storage user have not execution rights for
    internal functions (#366).
  * Compatibility with Tarantool 3.0 tuple objects (#387).

Infrastructure

  * `deps.sh` installs the `vshard` instead of the `cartridge`
    by default (#364). You could to specify an environment variable
    `CARTIRDGE_VERSION` to install the `cartridge` and run tests cases
    with it.
  * `doc/playground.lua` does not work with Tarantool 3 (#371).
  * Tests with Tarantool 3 (#364).
  * Quickstart section in the README.md focuses on usage with `vshard`
    instead of `Cartridge` (#366).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants