From 282af8ca547c65dba9db83f767fe8e384d9ff62f Mon Sep 17 00:00:00 2001 From: Bodo Hugo Barwich Date: Sun, 28 Aug 2022 13:02:23 +0100 Subject: [PATCH 1/7] set Exit Code and throw Exception on Index Check --- lib/MetaCPAN/Role/Script.pm | 15 ++++++++++++ lib/MetaCPAN/Script/Mapping.pm | 45 ++++++++++++++++++++++++++++++---- 2 files changed, 55 insertions(+), 5 deletions(-) diff --git a/lib/MetaCPAN/Role/Script.pm b/lib/MetaCPAN/Role/Script.pm index 102f80174..c894fc42c 100644 --- a/lib/MetaCPAN/Role/Script.pm +++ b/lib/MetaCPAN/Role/Script.pm @@ -405,6 +405,9 @@ After C seconds the Application will fail with an Exception and the Exit bin/metacpan --await 15 +B If the I service does not become available +within C seconds it exits the Script with Exit Code C< 112 >. + See L> =back @@ -425,7 +428,12 @@ Exception from the C and sets C< $! > to C< 112 > The C generates a C<"Search::Elasticsearch::Error::NoNodes"> Exception. When the service is available it will populate the C C structure with the basic information about the cluster. + +B It will throw an exceptions when the I service does not become available +within C seconds (as described above). + See L