Handle other conditions in process-catalogs.

It might be that some random condition is signaled during process-catalogs,
causing the errors reported so far and that I can't reproduce. Let's add
some handler-case protection to have more clues about what could be
happening.

See #865, #800, #810, #859, #824.
This commit is contained in:
Dimitri Fontaine 2018-11-21 17:31:11 +01:00
parent 743769d750
commit 4ab26e5387

View File

@ -341,7 +341,7 @@
(return-from copy-database))
(condition (e)
(log-message :error
"ERROR ~a: ~a"
"~a: ~a"
(conn-type (source-db copy))
e)
(return-from copy-database))))
@ -368,6 +368,10 @@
(citus-rule-is-missing-from-list (e)
(log-message :fatal "~a" e)
(return-from copy-database))
(condition (e)
(log-message :fatal "Failed to process catalogs: ~a" e)
(return-from copy-database)))
;; if asked, first drop/create the tables on the PostgreSQL side