forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
57124: importccl: refactor import processor to use ProcessorBase r=pbardea a=pbardea This commit refactors the import processor to use ProcessorBase. Although this processor doesn't have any inputs and the main utility that ProcessorBase provides is management of draining inputs, there is still some utility for this processor to embed a ProcessorBase. As tracing and other infrastructural improvements are made to ProcessorBase, this allows the import processor to stay up to date with these changes. The way that this processor works is that it kicks off a goroutine on start that will begin the import and start sending progress updates over an internally maintained channel. Next() will continually read from that channel until it is fully consumed, and then read the returned summary generated by the goroutine. Import is build this way so that it can manage concurrency internally to the processor. Relates to cockroachdb#57293. Release note: None Co-authored-by: Paul Bardea <[email protected]>
- Loading branch information
Showing
4 changed files
with
82 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters