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

Aborted quiet backend connection during long Export #2613

Closed
philrz opened this issue Dec 8, 2022 · 1 comment · Fixed by #2612
Closed

Aborted quiet backend connection during long Export #2613

philrz opened this issue Dec 8, 2022 · 1 comment · Fixed by #2612
Assignees
Labels
bug Something isn't working community

Comments

@philrz
Copy link
Contributor

philrz commented Dec 8, 2022

This issue was originally reported by a community user in a public Slack thread. In their own words:

For the past few Zui releases, I have not been able to export to CSV (currently using v0.30.1-135). Having the same issue with exporting to ZNG. It keeps throwing "Error Exporting" after several seconds.

After some debug, they provided the following DevTools screenshot during the failure:

image

Now having an idea of the root cause, here's own own repro of the problem on Windows 10 using Zui Insiders 0.30.1-136. To prep, I loaded the Zed sample data a couple dozen times to the same pool, then executed the query count() by ts | sort ts | sort count | sort ts | sort count while also asking the app for an Export of the same query response in CSV. What's key about this query is that the aggregation and sorts cause the backend to chew for a long time before returning any data, which keeps the connection quiet and hence vulnerable to timeout. A simple export of a full data set that constantly streams data does not seem to trigger the issue.

Repro.mp4
@philrz
Copy link
Contributor Author

philrz commented Dec 8, 2022

Verified in Zui Insiders 0.30.1-137.

As shown in the attached video, the Export now completes successfully after several minutes with no abort.

Verify.mp4

#2614 has also been opened to track future enhancements here such as adding a "Cancel" option during Export.

Thanks @jameskerr!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working community
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants