anchor.diff:      end.
   
   parse_validate_replica_index(Params, ReplicasNum, true = _IsNew) ->
  -    parse_validate_replica_index(
  -      proplists:get_value("replicaIndex", Params,
  -                          replicas_num_default(ReplicasNum)));
  +    case proplists:get_value("bucketType", Params) =:= "ephemeral" of
  +        true ->
  +            case proplists:is_defined("replicaIndex", Params) of
  +                true ->
  +                    {error, replicaIndex, <<"replicaIndex not supported for ephemeral buckets">>};
  +                false ->
  +                    ignore
  +            end;
  +        false ->
  +            parse_validate_replica_index(
  +              proplists:get_value("replicaIndex", Params,
  +                                  replicas_num_default(ReplicasNum)))
  +    end;
   parse_validate_replica_index(_Params, _ReplicasNum, false = _IsNew) ->
       ignore.
   
  
positive.code:                        | Suffix2]
                end,
  
      FlushEnabled = proplists:get_value(flush_enabled, BucketConfig, false),
      MaybeFlushController =
          case FlushEnabled of
  
negative.code:                                 {nodeStatsListURI, NodeStatsListURI}]}},
                {ddocs, {struct, [{uri, DDocsURI}]}},
                {nodeLocator, ns_bucket:node_locator(BucketConfig)}
                | Suffix4]}.
  
  build_bucket_capabilities(BucketConfig) ->
      Caps =
  