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

Check that none of the Opensearch servers, besides NAIF have archive_status==null #183

Closed
tloubrieu-jpl opened this issue Apr 10, 2023 · 2 comments

Comments

@tloubrieu-jpl
Copy link
Member

💡 Description

@jimmie
Copy link
Member

jimmie commented Apr 13, 2023

At this point, ATM (466,589) and NAIF (401) have registry entries w/o archive_status.

curl "https://search-en-prod-di7dor7quy7qwv3husi2wt5tde.us-west-2.es.amazonaws.com/registry,naif-prod-ccs:registry,rms-prod:registry,sbnumd-prod-ccs:registry,geo-prod-ccs:registry,atm-prod-ccs:registry,sbnpsi-prod-ccs:registry,img-prod-ccs:registry,ppi-prod-ccs:registry/_search" \
    -u pdsadmin:$PASS -H "Content-type:application/json" \
    -d'
        {
            "query" : {
                "bool" : {
                    "must_not" : {
                        "exists" : {
                             "field" : "ops:Tracking_Meta/ops:archive_status"
                        }
                    }
                }
            },
            "size" : 0,
            "aggs" : {
                "nodes" : {
                    "terms" : {
                        "field" : "ops:Harvest_Info/ops:node_name"
                    }
                }
            }
        }' | json_pp

{
   "_clusters" : {
      "skipped" : 0,
      "successful" : 9,
      "total" : 9
   },
   "_shards" : {
      "failed" : 0,
      "skipped" : 0,
      "successful" : 29,
      "total" : 29
   },
   "aggregations" : {
      "nodes" : {
         "buckets" : [
            {
               "doc_count" : 466589,
               "key" : "PDS_ATM"
            },
            {
               "doc_count" : 401,
               "key" : "PDS_NAIF"
            }
         ],
         "doc_count_error_upper_bound" : 0,
         "sum_other_doc_count" : 0
      }
   },
   "hits" : {
      "hits" : [],
      "max_score" : null,
      "total" : {
         "relation" : "gte",
         "value" : 10000
      }
   },
   "num_reduce_phases" : 10,
   "timed_out" : false,
   "took" : 380
}

@jimmie
Copy link
Member

jimmie commented Apr 13, 2023

ATM has been contacted to verify their software version. Assuming we'll create another ticket if needed to populate the missing values.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants