cockroach icon indicating copy to clipboard operation
cockroach copied to clipboard

sql: EXPORT should (probably?) have job entries

Open knz opened this issue 8 years ago • 8 comments

A few things things:

  • IMPORT has a job entry, so for symmetry EXPORT should probably too. That would simplify the usability story wrt cancellation too.
  • EXPORT can really last a long time. Would be nice to have that pop up in the job UI.
  • I saw a few crashes of our reg cluster that seem (According to logs) to be associated with EXPORTs. Unfortunately they don't appear in the event log / job table so I could not troubleshoot.
  • if a long export is en-route and the node crashes it would be nice that it restarts. A job would achieve that.

(issue filed on behalf of @nstewart )

Jira issue: CRDB-4919

knz avatar Aug 02 '18 17:08 knz

Have we done any more thinking on this one? Trying to export from a CRDB system of record into a data warehouse and the lack of a job record is a pain

nstewart avatar Oct 26 '19 01:10 nstewart

Specific issue that's come up -- in many cases, I get errors like: pq: unexpected closure of consumer or even just packet_write_wait: Connection to 18.207.54.42 port 22: Broken pipe and I see files in s3, however, I do not know if the EXPORT was successful or not.

nstewart avatar Nov 04 '19 14:11 nstewart

This is a very reasonable ask. I don't think there is a ton of engineering design to be done on this - we just need to make sure that a real job record is created, and that the EXPORT operation records its status and respects pause, resume, and cancel operations. I think we can prioritize this for 20.1.

rolandcrosby avatar Nov 06 '19 18:11 rolandcrosby

See also https://github.com/cockroachdb/cockroach/pull/70057

shermanCRL avatar Jan 28 '22 19:01 shermanCRL

Export is not a job. To give export job entries, it should be refactored into a job.

ajwerner avatar Jan 28 '22 19:01 ajwerner

@ajwerner yep, I’m just doing a bit of linking of GH issues related to the same use case. @miretskiy’s work offers promise in this direction but atm we not too optimistic we can achieve EXPORT semantics (read: no duplicates) with that one.

shermanCRL avatar Jan 28 '22 19:01 shermanCRL

We have marked this issue as stale because it has been inactive for 18 months. If this issue is still relevant, removing the stale label or adding a comment will keep it active. Otherwise, we'll close it in 10 days to keep the issue queue tidy. Thank you for your contribution to CockroachDB!

github-actions[bot] avatar Sep 21 '23 11:09 github-actions[bot]

Closing this issue; if export ever becomes a job it will (very likely) be done by using cdc export underneath.

miretskiy avatar Sep 21 '23 12:09 miretskiy