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

Hang caused by applying "merge this" post-fork #5285

Open
philrz opened this issue Sep 16, 2024 · 0 comments
Open

Hang caused by applying "merge this" post-fork #5285

philrz opened this issue Sep 16, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@philrz
Copy link
Contributor

philrz commented Sep 16, 2024

tl;dr

This hangs for me:

$ for n in $(seq 1 701); do  echo "{ts:$n}"; done | zq -z 'fork (=>pass =>pass) | merge this' -
{ts:1}
{ts:1}
{ts:2}
{ts:2}
...
{ts:699}
{ts:700}

Details

Repro is with Zed commit 491dadf.

The repro shown above runs fine if the upper end of the seq is 700, but once I change it to 701, it hangs. I originally found this in the Zed lake context, where the magic crossover was when the upper end of the seq went from 54656 (works ok) to 54657 (hangs).

I also noticed it doesn't happen if I instead do merge ts, which indeed is probably what a user would have intended here. But #3678 leads me to believe merge this should be acceptable.

@philrz philrz added the bug Something isn't working label Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant