Skip to content

fix crash when consume depleted ops - #3194

Merged
AviAvni merged 1 commit into
masterfrom
fix-crash-consume-depleted-ops
Sep 26, 2023
Merged

AviAvni merged 1 commit into
masterfrom
fix-crash-consume-depleted-ops

Conversation

@AviAvni

@AviAvni AviAvni commented Sep 26, 2023

Copy link
Copy Markdown
Contributor

No description provided.

@AviAvni
AviAvni requested a review from swilly22 September 26, 2023 11:09
@codecov

codecov Bot commented Sep 26, 2023

Copy link
Copy Markdown

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
@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
OpCreate *op
) {
return array_pop(op->records);
return (array_len(op->records)) ? array_pop(op->records) : NULL;

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor 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
Copy Markdown
Contributor

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.

2 participants