Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verify Indices Mappings #1067

Merged
merged 7 commits into from
Dec 20, 2022
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions lib/MetaCPAN/Role/Script.pm
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,9 @@ After C<await> seconds the Application will fail with an Exception and the Exit

bin/metacpan <script_name> --await 15

B<Exit Code:> If the I<ElasticSearch> service does not become available
within C<await> seconds it exits the Script with Exit Code C< 112 >.

See L<Method C<await()>>

=back
Expand All @@ -425,7 +428,12 @@ Exception from the C<Search::Elasticsearch::Client> and sets C< $! > to C< 112 >
The C<Search::Elasticsearch::Client> generates a C<"Search::Elasticsearch::Error::NoNodes"> Exception.
When the service is available it will populate the C<cluster_info> C<HASH> structure with the basic information
about the cluster.

B<Exceptions:> It will throw an exceptions when the I<ElasticSearch> service does not become available
within C<arg_await_timeout> seconds (as described above).

See L<Option C<--await 15>>

See L<Method C<check_health()>>

=item C<check_health( [ refresh ] )>
Expand All @@ -443,6 +451,13 @@ The method returns C< 1 > when the C<cluster_info> is populated, none of the ind
the Health State I<red> and at least one alias is created in C<aliases_info>
otherwise the method returns C< 0 >

B<Parameters:>

C<refresh> - Integer evaluated as boolean when set to C< 1 > the cluster info structures
will always be updated.

See L<Method C<await()>>

=item C<are_you_sure()>

Requests the user to confirm the operation with "I< YES >"
Expand Down
Loading