Skip to content

Remove an unnecessary assertion - [MOD-8008]#5138

Merged
GuyAv46 merged 2 commits intomasterfrom
guyav-MOD-8008
Oct 31, 2024
Merged

Remove an unnecessary assertion - [MOD-8008]#5138
GuyAv46 merged 2 commits intomasterfrom
guyav-MOD-8008

Conversation

@GuyAv46
Copy link
Collaborator

@GuyAv46 GuyAv46 commented Oct 30, 2024

Describe the changes in the pull request

We removed an unnecessary assertion in the UV thread initialization that verifies the shard has topology information waiting before the first distributed command is sent.
The assertion is unnecessary because we have a mechanism that sets aside jobs until we can send them to all the relevant shards.

Note that still, no command will be sent until the topology is set.

Mark if applicable

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

/* start the event loop side thread */
static void sideThread(void *arg) {
REDISMODULE_NOT_USED(arg);
RedisModule_Assert(__atomic_load_n(&pendingTopo, __ATOMIC_ACQUIRE));
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The redundant assertion

@codecov
Copy link

codecov bot commented Oct 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.34%. Comparing base (205b5d2) to head (ef34900).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5138   +/-   ##
=======================================
  Coverage   86.33%   86.34%           
=======================================
  Files         190      190           
  Lines       34604    34614   +10     
=======================================
+ Hits        29875    29887   +12     
+ Misses       4729     4727    -2     

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

Copy link
Collaborator

@alonre24 alonre24 left a comment

Choose a reason for hiding this comment

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

👍

@GuyAv46 GuyAv46 added this pull request to the merge queue Oct 31, 2024
Merged via the queue into master with commit 8cffbb6 Oct 31, 2024
@GuyAv46 GuyAv46 deleted the guyav-MOD-8008 branch October 31, 2024 09:05
@redisearch-backport-pull-request
Copy link
Contributor

Backport failed for 2.10, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin 2.10
git worktree add -d .worktree/backport-5138-to-2.10 origin/2.10
cd .worktree/backport-5138-to-2.10
git switch --create backport-5138-to-2.10
git cherry-pick -x 8cffbb6171a1c1665f8a07c217e7dd6688188536

@redisearch-backport-pull-request
Copy link
Contributor

Backport failed for 8.0, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin 8.0
git worktree add -d .worktree/backport-5138-to-8.0 origin/8.0
cd .worktree/backport-5138-to-8.0
git switch --create backport-5138-to-8.0
git cherry-pick -x 8cffbb6171a1c1665f8a07c217e7dd6688188536

GuyAv46 added a commit that referenced this pull request Oct 31, 2024
* remove unneeded assertion

* added a test

(cherry picked from commit 8cffbb6)
GuyAv46 added a commit that referenced this pull request Oct 31, 2024
* remove unneeded assertion

* added a test

(cherry picked from commit 8cffbb6)
github-merge-queue bot pushed a commit that referenced this pull request Oct 31, 2024
Remove an unnecessary assertion - [MOD-8008] (#5138)

* remove unneeded assertion

* added a test

(cherry picked from commit 8cffbb6)
github-merge-queue bot pushed a commit that referenced this pull request Oct 31, 2024
Remove an unnecessary assertion - [MOD-8008] (#5138)

* remove unneeded assertion

* added a test

(cherry picked from commit 8cffbb6)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants