Skip to content

Fork gc code cleanup#4263

Merged
GuyAv46 merged 7 commits intomasterfrom
guyav-fork_gc_cleanup
Dec 27, 2023
Merged

Fork gc code cleanup#4263
GuyAv46 merged 7 commits intomasterfrom
guyav-fork_gc_cleanup

Conversation

@GuyAv46
Copy link
Collaborator

@GuyAv46 GuyAv46 commented Dec 25, 2023

Describe the changes in the pull request

Removing unnecessary context allocation and freeing

Mark if applicable

  • This PR introduces API changes
  • This PR introduces serialization changes

@GuyAv46 GuyAv46 requested a review from meiravgri December 25, 2023 16:05
@codecov
Copy link

codecov bot commented Dec 25, 2023

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (e0c7170) 83.65% compared to head (6d2dce3) 83.63%.
Report is 1 commits behind head on master.

Files Patch % Lines
src/gc.c 90.90% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4263      +/-   ##
==========================================
- Coverage   83.65%   83.63%   -0.03%     
==========================================
  Files         191      191              
  Lines       33529    33523       -6     
==========================================
- Hits        28048    28036      -12     
- Misses       5481     5487       +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@meiravgri meiravgri left a comment

Choose a reason for hiding this comment

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

great
small question and suggestion

@GuyAv46 GuyAv46 requested a review from meiravgri December 26, 2023 09:02
Copy link
Collaborator

@meiravgri meiravgri left a comment

Choose a reason for hiding this comment

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

Did we have a leak where it was debug + the index was freed?
Are there tests that cover each if scenario in threadCallback?
Also, a few more suggestions 😊

@GuyAv46 GuyAv46 requested a review from meiravgri December 26, 2023 12:49
Copy link
Collaborator

@meiravgri meiravgri left a comment

Choose a reason for hiding this comment

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

great work, well done

@GuyAv46 GuyAv46 added this pull request to the merge queue Dec 26, 2023
@GuyAv46 GuyAv46 removed this pull request from the merge queue due to a manual request Dec 26, 2023
@GuyAv46 GuyAv46 added this pull request to the merge queue Dec 26, 2023
@GuyAv46 GuyAv46 removed this pull request from the merge queue due to a manual request Dec 26, 2023
@GuyAv46 GuyAv46 added this pull request to the merge queue Dec 26, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 26, 2023
@GuyAv46 GuyAv46 added this pull request to the merge queue Dec 27, 2023
Merged via the queue into master with commit 0fdd542 Dec 27, 2023
@GuyAv46 GuyAv46 deleted the guyav-fork_gc_cleanup branch December 27, 2023 09:43
raz-mon pushed a commit that referenced this pull request Mar 6, 2024
* remove redundant context allocation from gc periodic CB

* fix tests

* improved comments

* split debug and normal GC runs

* fix test

* move GCDebugTask from h to c file

* improved API
alonre24 pushed a commit that referenced this pull request Dec 27, 2024
…llow the test of marked deleted info to pass
github-merge-queue bot pushed a commit that referenced this pull request Jan 1, 2025
* CP Count Queries - [MOD-6492]

* [2.10] Add metrics of min and max memory consumption of indexes - [MOD-7584] (#5146)

Add metrics of min and max memory consumption of indexes - [MOD-7584] (#5143)

* implement min and max memory usage metrics

* added to info module test

(cherry picked from commit b0d56ad)

Co-authored-by: GuyAv46 <[email protected]>
(cherry picked from commit 094318f)

* [2.10] Add a counter of total query execution time - [MOD-7961] (#5153)

* Add a counter of total query execution time - [MOD-7961] (#5145)

* complete CP of "Count Queries" (#5072) content

* always count query execution time (on non-internal commands)

* add test

* give more time

* review fixes

(cherry picked from commit 97f34e2)

* add missing if

(cherry picked from commit d45365d)

* CP [MOD-8034] expose indexing failures to INFO modules

* [2.10] Add VecSim related metrics - [MOD-7967] (#5169)

Add VecSim related metrics - [MOD-7967] (#5151)

* added vector info

* added a test

* drain work queue before checking memory

* move vector metrics info field statistics section

* fix test

* fix test

* tidy up

* added a flat index to the test

(cherry picked from commit 388f81e)

Co-authored-by: GuyAv46 <[email protected]>
(cherry picked from commit 242f314)

* CP Add Active Indices Metrics - [MOD-7952]

* CP Add global marked deleted to stats [MOD-6053]

* CP Fork gc code cleanup (PR #4263) to enable GC mechanism that will allow the test of marked deleted info to pass

* CP [MOD-8152] rename and move new metrics

* CP [MOD-8035] Add field index error for JSON field indexing failures

* CP [MOD-8039] Reorganize stats files

* [2.10] Improve counting active writes - [MOD-8151] (#5362)

Improve counting active writes - [MOD-8151] (#5354)

* improve counting active writes

* add a test

(cherry picked from commit 2b5182d)

Co-authored-by: GuyAv46 <[email protected]>
(cherry picked from commit a3d447d)

* Update mem usage computation to align to 2.10

* revert bad additions (CR)

* revert bad additions (CR) 2

* Better memory check in info vecsim (since mac failed)

* Fix syntax error

---------

Co-authored-by: redisearch-backport-pull-request[bot] <182669528+redisearch-backport-pull-request[bot]@users.noreply.github.com>
Co-authored-by: GuyAv46 <[email protected]>
Co-authored-by: meiravgri <[email protected]>
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.

2 participants