forked from greenplum-db/gpbackup-archive
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Add granular COPY progress reporting for GPDB 7"
Commit 6f71685 adds the GPDB7 feature where using --jobs will show N number of progress bars with the progress of the table each job is currently backing up. Unfortunately this commit also introduces the issue where gpbackup will halt when run in the background using &. e.g. `gpbackup --dbname test &`. The halt happens when the progress bar library gopkg.in/cheggaaa/pb starts printing a pool of progress bars, it will issue a system command to turn off terminal echoing. The default behavior when a background process tries to set a terminal mode is to halt the process [1]. Also included in this commit is a fix is a one-line fix to a --data-only restore bug that surfaced as a result of reverting "granular progress bars". Sequence data restore is a special case because the value of a sequence is set using metadata sql statements. With the introduction of granular progress bars. The number of default database connections was changed from 1 to 2, (conn0 and conn1). This is because granular progress bars requires an additional connection to continuously poll for progress of table backup/restore. Because of this, parallel restore is built with the assumption that conn0 is reserved for this polling. When assigning statements to restore, parallel logic will not assign any metadata statements be restored with conn0. When reverting granular progress bars, the default number of connections came back down to 1 and this causes restore to fail because sequence data restore statements were being assigned to conn1, which now no longer exists. The following gpbackup commits are reverted: 6f71685 - Add granular COPY progress reporting for GPDB 7 greenplum-db/gpbackup@6f716850 08339c0 - Fix unfinished copy progress bars greenplum-db/gpbackup@08339c04 [1] https://www.gnu.org/software/libc/manual/html_node/Job-Control-Signals.html
- Loading branch information
1 parent
8a02587
commit 80c4931
Showing
10 changed files
with
132 additions
and
554 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
Oops, something went wrong.