Page MenuHomeSoftware Heritage

logstash: Fix the closed index's error filtering
ClosedPublic

Authored by vsellier on May 9 2022, 3:57 PM.

Details

Test Plan
diff origin/production/logstash0.internal.softwareheritage.org current/logstash0.internal.softwareheritage.org
*******************************************
  File[/usr/local/bin/es_reopen_closed_indexes.sh] =>
   parameters =>
     content =>
      @@ -23,8 +23,9 @@
      _
       function log_indices() {
      +    local CONDITION="index_closed_exception"
           if [ -z "$1" ]; then
      -        journalctl -x -u logstash | grep "cluster_block" | filter_index_name
      +        journalctl -x -u logstash | grep ${CONDITION} | filter_index_name
           else
      -        tail -n$1 $LOGFILE | grep "cluster_block" | filter_index_name
      +        tail -n$1 $LOGFILE | grep ${CONDITION} | filter_index_name
           fi
       }
*******************************************
*** End octocatalog-diff on logstash0.internal.softwareheritage.org

Diff Detail

Repository
rSPSITE puppet-swh-site
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.