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

fix crash when consume depleted ops #3194

Merged
merged 1 commit into from
Sep 26, 2023
Merged

Conversation

AviAvni
Copy link
Collaborator

@AviAvni AviAvni commented Sep 26, 2023

No description provided.

@codecov
Copy link

codecov bot commented Sep 26, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (1e3b249) 90.89% compared to head (a1126b8) 90.89%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3194   +/-   ##
=======================================
  Coverage   90.89%   90.89%           
=======================================
  Files         294      294           
  Lines       30407    30407           
=======================================
  Hits        27639    27639           
  Misses       2768     2768           
Files Coverage Δ
src/execution_plan/ops/op_create.c 100.00% <100.00%> (ø)
src/execution_plan/ops/op_delete.c 99.17% <100.00%> (ø)
src/execution_plan/ops/op_foreach.c 93.33% <100.00%> (ø)

... and 4 files with indirect coverage changes

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

@AviAvni AviAvni merged commit 3e4f953 into master Sep 26, 2023
12 of 13 checks passed
@AviAvni AviAvni deleted the fix-crash-consume-depleted-ops branch September 26, 2023 11:50
AviAvni added a commit that referenced this pull request Sep 26, 2023
@@ -133,7 +133,7 @@ static Record _handoff
(
OpCreate *op
) {
return array_pop(op->records);
return (array_len(op->records)) ? array_pop(op->records) : NULL;
Copy link
Collaborator

Choose a reason for hiding this comment

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

The idea was to place a NULL as a marker
so you pop the last element which is NULL and we're done

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 problem is that op_cond_traverse can call to this consume after it get the marker null and we can't do anything to change it

Copy link
Collaborator

Choose a reason for hiding this comment

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

I wonder why the operation continues on asking for more data after it received NULL

AviAvni added a commit that referenced this pull request Sep 27, 2023
* fix validation regression (#3190)

* fix crash when consume depleted ops (#3194)

* bump version 2.12.10
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.

None yet

2 participants