Skip to content

Commit 3fe5278

Browse files
authored
Merge pull request #1067 from bodo-hugo-barwich/no-1048_verify-mappings
Verify Indices Mappings
2 parents d1b8c19 + 2e69f2a commit 3fe5278

File tree

5 files changed

+520
-79
lines changed

5 files changed

+520
-79
lines changed

lib/MetaCPAN/Role/Script.pm

+15
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,9 @@ After C<await> seconds the Application will fail with an Exception and the Exit
405405
406406
bin/metacpan <script_name> --await 15
407407
408+
B<Exit Code:> If the I<ElasticSearch> service does not become available
409+
within C<await> seconds it exits the Script with Exit Code C< 112 >.
410+
408411
See L<Method C<await()>>
409412
410413
=back
@@ -425,7 +428,12 @@ Exception from the C<Search::Elasticsearch::Client> and sets C< $! > to C< 112 >
425428
The C<Search::Elasticsearch::Client> generates a C<"Search::Elasticsearch::Error::NoNodes"> Exception.
426429
When the service is available it will populate the C<cluster_info> C<HASH> structure with the basic information
427430
about the cluster.
431+
432+
B<Exceptions:> It will throw an exceptions when the I<ElasticSearch> service does not become available
433+
within C<arg_await_timeout> seconds (as described above).
434+
428435
See L<Option C<--await 15>>
436+
429437
See L<Method C<check_health()>>
430438
431439
=item C<check_health( [ refresh ] )>
@@ -443,6 +451,13 @@ The method returns C< 1 > when the C<cluster_info> is populated, none of the ind
443451
the Health State I<red> and at least one alias is created in C<aliases_info>
444452
otherwise the method returns C< 0 >
445453
454+
B<Parameters:>
455+
456+
C<refresh> - Integer evaluated as boolean when set to C< 1 > the cluster info structures
457+
will always be updated.
458+
459+
See L<Method C<await()>>
460+
446461
=item C<are_you_sure()>
447462
448463
Requests the user to confirm the operation with "I< YES >"

0 commit comments

Comments
 (0)