Skip to content

sync matrices on parent process before fork #1931

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

Merged
merged 3 commits into from
Sep 13, 2021
Merged

sync matrices on parent process before fork #1931

merged 3 commits into from
Sep 13, 2021

Conversation

swilly22
Copy link
Contributor

#599
in case a readers is syncing a matrix while BGSAVE is called child process might inherit a lock matrix
this PR moves matrix sync to parent just before forking

@codecov
Copy link

codecov bot commented Sep 13, 2021

Codecov Report

Merging #1931 (8f7c4aa) into master (7a16988) will increase coverage by 0.02%.
The diff coverage is 0.00%.

❗ Current head 8f7c4aa differs from pull request most recent head 0ca8f8a. Consider uploading reports for the commit 0ca8f8a to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1931      +/-   ##
==========================================
+ Coverage   91.91%   91.93%   +0.02%     
==========================================
  Files         239      239              
  Lines       20292    20293       +1     
==========================================
+ Hits        18651    18657       +6     
+ Misses       1641     1636       -5     
Impacted Files Coverage Δ
src/module_event_handlers.c 89.39% <0.00%> (-0.69%) ⬇️
src/query_ctx.c 91.40% <0.00%> (+4.68%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7a16988...0ca8f8a. Read the comment docs.

AviAvni
AviAvni previously approved these changes Sep 13, 2021
@swilly22 swilly22 merged commit 5814ed3 into master Sep 13, 2021
@swilly22 swilly22 deleted the bgsave-locking branch September 13, 2021 10:25
AviAvni pushed a commit that referenced this pull request Sep 14, 2021
* sync matrices on parent process before fork

* formatting
AviAvni pushed a commit that referenced this pull request Sep 14, 2021
* sync matrices on parent process before fork

* formatting
swilly22 added a commit that referenced this pull request Sep 14, 2021
* Error when setting a property to an array containing an invalid type (#1898)

* Emit error when setting a property to an array containing an invalid type

* Address PR comments

* Address PR comments

* Address PR comments

* Address PR comments

Co-authored-by: Roi Lipman <[email protected]>

* Aliases in WITH...ORDER BY must be valid references (#1897)

* Ensure aliases in the ORDER BY segment of a WITH clause are valid references

* Address PR comments

Co-authored-by: Roi Lipman <[email protected]>

* Error when setting a property to an array containing an invalid type (#1898)

* Emit error when setting a property to an array containing an invalid type

* Address PR comments

* Address PR comments

* Address PR comments

* Address PR comments

Co-authored-by: Roi Lipman <[email protected]>

* increase code coverage (#1919)

* clean unused files

* delete v5 decoder

* test decoders

* fix build

* delete unused functions

* add deleted nodes and edges to rdb

* fix unused function

* address review

* Error when setting a property to an array containing an invalid type (#1898)

* Emit error when setting a property to an array containing an invalid type

* Address PR comments

* Address PR comments

* Address PR comments

* Address PR comments

Co-authored-by: Roi Lipman <[email protected]>

* Storing test artifacts for CI runs (#1906)

* Storing test artifacts

* PR comments

Co-authored-by: Roi Lipman <[email protected]>

* Error when setting a property to an array containing an invalid type (#1898)

* Emit error when setting a property to an array containing an invalid type

* Address PR comments

* Address PR comments

* Address PR comments

* Address PR comments

Co-authored-by: Roi Lipman <[email protected]>

* sync matrices on parent process before fork (#1931)

* sync matrices on parent process before fork

* formatting

* Error when setting a property to an array containing an invalid type (#1898)

* Emit error when setting a property to an array containing an invalid type

* Address PR comments

* Address PR comments

* Address PR comments

* Address PR comments

Co-authored-by: Roi Lipman <[email protected]>

Co-authored-by: Jeffrey Lovitz <[email protected]>
Co-authored-by: Roi Lipman <[email protected]>
Co-authored-by: Chayim <[email protected]>
AviAvni pushed a commit that referenced this pull request Sep 14, 2021
* sync matrices on parent process before fork

* formatting
swilly22 added a commit that referenced this pull request Sep 15, 2021
* Error when setting a property to an array containing an invalid type (#1898)

* Emit error when setting a property to an array containing an invalid type

* Address PR comments

* Address PR comments

* Address PR comments

* Address PR comments

Co-authored-by: Roi Lipman <[email protected]>

* Aliases in WITH...ORDER BY must be valid references (#1897)

* Ensure aliases in the ORDER BY segment of a WITH clause are valid references

* Address PR comments

Co-authored-by: Roi Lipman <[email protected]>

* increase code coverage (#1919)

* clean unused files

* delete v5 decoder

* test decoders

* fix build

* delete unused functions

* add deleted nodes and edges to rdb

* fix unused function

* address review

* Storing test artifacts for CI runs (#1906)

* Storing test artifacts

* PR comments

Co-authored-by: Roi Lipman <[email protected]>

* sync matrices on parent process before fork (#1931)

* sync matrices on parent process before fork

* formatting

* fix tests

* fix bgsave

* Error when setting a property to an array containing an invalid type (#1898)

* Emit error when setting a property to an array containing an invalid type

* Address PR comments

* Address PR comments

* Address PR comments

* Address PR comments

Co-authored-by: Roi Lipman <[email protected]>

* Aliases in WITH...ORDER BY must be valid references (#1897)

* Ensure aliases in the ORDER BY segment of a WITH clause are valid references

* Address PR comments

Co-authored-by: Roi Lipman <[email protected]>

* increase code coverage (#1919)

* clean unused files

* delete v5 decoder

* test decoders

* fix build

* delete unused functions

* add deleted nodes and edges to rdb

* fix unused function

* address review

* Storing test artifacts for CI runs (#1906)

* Storing test artifacts

* PR comments

Co-authored-by: Roi Lipman <[email protected]>

* sync matrices on parent process before fork (#1931)

* sync matrices on parent process before fork

* formatting

* fix tests

* fix bgsave

* fix timeout test

Co-authored-by: Jeffrey Lovitz <[email protected]>
Co-authored-by: Roi Lipman <[email protected]>
Co-authored-by: Chayim <[email protected]>
pnxguide pushed a commit to CMU-SPEED/RedisGraph that referenced this pull request Mar 22, 2023
* sync matrices on parent process before fork

* formatting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants