File tree Expand file tree Collapse file tree
indexer-app/src/cmr/indexer/services
metadata-db-app/src/cmr/metadata_db/data Expand file tree Collapse file tree Original file line number Diff line number Diff line change 582582 (when (= " small-collections" target)
583583 (let [collection-key (keyword concept-id)
584584 old-separate-index (get-in old-gran-index-set [:index-set :concepts :granule collection-key])]
585- (es/delete-index es-store old-separate-index)))
585+ (if old-separate-index
586+ (es/delete-index es-store old-separate-index)
587+ (warn (format " No separate index found for [%s] in old index-set; skipping deletion." concept-id)))))
586588 (catch Exception e
587589 (error e (format " Failed to finalize rebalancing for [%s] -> [%s]" concept-id target))
588590 (errors/throw-service-error :internal-error
Original file line number Diff line number Diff line change 289289 provider-id (:provider-id provider)
290290 concepts @(:concepts-atom db)
291291 filtered-concepts (concepts/search-with-params concepts (assoc params :provider-id provider-id))
292- sorted-concepts (vec (sort-by :id filtered-concepts))
292+ sorted-concepts (vec (sort-by :concept- id filtered-concepts))
293293 start-index (max requested-start-index 0 )]
294294 (letfn [(find-batch [start-index]
295295 (let [end-index (min (+ start-index batch-size) (count sorted-concepts))
714714 (doseq [batch batches]
715715 (println " Batch:" )
716716 (doseq [concept batch]
717- (println (select-keys concept [:concept-id :native-id ]))) (println ))) (println )))
717+ (println (select-keys concept [:concept-id :native-id ]))) (println ))
718+ )
718719
You can’t perform that action at this time.
0 commit comments