anchor.diff:                end, Reps).
   
   couchbase_view_stats_descriptions(BucketId) ->
  -    DesignDocIds = capi_ddoc_replication_srv:fetch_ddoc_ids(BucketId),
  +    DesignDocIds = try
  +                       capi_ddoc_replication_srv:fetch_ddoc_ids(BucketId)
  +                   catch
  +                       exit:{noproc, _} ->
  +                           []
  +                   end,
   
       % fold over design docs and get the signature
       DictBySig = lists:foldl(
  
positive.code:     [hd(ets:lookup(ETS, T)) || #stat_entry{timestamp = T} <- MainSamples].
  
  grab_aggregate_op_stats(Bucket, Nodes, Params) ->
      {MainSamples, Replies, ClientTStamp, {Step, _, Window}} = gather_op_stats(Bucket, Nodes, Params),
      RV = merge_all_samples_normally(MainSamples, [S || {N,S} <- Replies, N =/= node()]),
      V = lists:reverse(RV),
      case V =/= [] andalso (hd(V))#stat_entry.timestamp of
          ClientTStamp -> {V, ClientTStamp, Step, Window};
  
negative.code:     end.
  
  gather_op_stats_body(Bucket, Nodes, ClientTStamp,
                       Ref, PeriodParams) ->
      FirstNode = case Nodes of
                      all ->
                          AvailableNodes = ns_bucket:live_bucket_nodes(Bucket),
                          case lists:member(node(), AvailableNodes) of
                              true ->
                                  node();
                              _ ->
                                  case AvailableNodes of
                                      [] ->
                                          none;
                                      [FN | _] ->
                                          FN
                                  end
                          end;
                      [X] -> X
                  end,
  
      RV = case FirstNode of
               none ->
                   [];
               _ ->
                   invoke_archiver(Bucket, FirstNode, PeriodParams)
           end,
  
      case RV of
          [] -> {FirstNode, [], [], ClientTStamp, PeriodParams};
          [_] -> {FirstNode, [], [], ClientTStamp, PeriodParams};
          _ ->
              %% we throw out last sample 'cause it might be missing on other nodes yet
              %% previous samples should be ok on all live nodes
  