       (future        
         (try (purge-unused-domains! domain-seq local-dir)
              (load-cached-domains! edb-config rw-lock domains-info)
-             (load-and-sync-status! edb-config rw-lock domains-info)
+             (load-and-sync-status! edb-config rw-lock domains-info (map-mapvals domains-info
+                                                                                 domain/host-shards))
              (log-message "Finished loading all updated domains from remote.")
              (catch Throwable t
                (log-error t "Error when syncing data.")

                              (let [remote-path (get remote-path-map domain)
                                    remote-vs (DomainStore. remote-fs remote-path)
                                    local-domain-root (str (path local-dir domain))
                                    local-vs (mk-local-vs remote-vs local-domain-root)
                                    loader-state (or state (mk-loader-state
                                                            {domain (domain/host-shards info)}))]
                                (when-let [new-data (use-cache-or-update domain
                                                                         remote-path
                                                                         edb-config
                                                                         loader-state)]  
                                  (domain/set-domain-data! rw-lock domain info new-data)))
                              (domain/set-domain-status! info (thrift/ready-status))
                              (catch Throwable t
                                (log-error t "Error when loading domain " domain)

    (when-let [e @error]
      (throw e))))

(defn load-and-sync-status!
  "TODO: Only note success for non-failed domains. check thrift status."
  [edb-config rw-lock domains-info loader-state]
  (let [{:keys [hdfs-conf local-dir local-db-conf]} edb-config
        remote-fs (filesystem hdfs-conf)
        remote-path-map (:domains edb-config)
