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:     end.
  
  gather_op_stats_body(Bucket, Nodes, ClientTStamp,
                     Ref, PeriodParams) ->
      FirstNode = case Nodes of
                      all -> node();
                      [X] -> X
                  end,
      RV = invoke_archiver(Bucket, FirstNode, PeriodParams),
      case RV of
          [] -> {[], [], ClientTStamp, PeriodParams};
          [_] -> {[], [], 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
  
negative.code:                                       [] -> Samples;
                                        _ -> lists:reverse(CutSamples)
                                    end,
                      AllBucketNodes = case Nodes of
                                           all -> ns_bucket:live_bucket_nodes(Bucket);
                                           [_] -> []
                                       end,
                      OtherNodes = lists:delete(FirstNode, AllBucketNodes),
  
                      Replies = case OtherNodes of
                                    [] ->
                                        [];
                                    _ ->
                                        invoke_archiver(Bucket, OtherNodes, PeriodParams)
                                end,
  
                      {FirstNode, MainSamples, Replies, ClientTStamp, PeriodParams}
              end
      end.
  
  