Skip to content

Commit

Permalink
RCBC-476: FeatureNotAvailable for cb2 ping/diagnostics
Browse files Browse the repository at this point in the history
  • Loading branch information
DemetrisChr committed Apr 4, 2024
1 parent 73a166e commit 363472b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/couchbase/protostellar/bucket.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ def default_collection
def collections
Management::CollectionManager.new(client: @client, bucket_name: @name)
end

def ping(_options = Options::Ping::DEFAULT)
raise Couchbase::Error::FeatureNotAvailable, "The #{Protostellar::NAME} protocol does not support ping"
end
end
end
end
8 changes: 8 additions & 0 deletions lib/couchbase/protostellar/cluster.rb
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,14 @@ def search_query(index_name, query, options = Couchbase::Options::Search::DEFAUL
ResponseConverter::Search.to_search_result(resp, options)
end

def diagnostics(_options = Options::Diagnostics::DEFAULT)
raise Couchbase::Error::FeatureNotAvailable, "The #{Protostellar::NAME} protocol does not support diagnostics"
end

def ping(_options = Options::Ping::DEFAULT)
raise Couchbase::Error::FeatureNotAvailable, "The #{Protostellar::NAME} protocol does not support ping"
end

private

def initialize(host, options = ConnectOptions.new)
Expand Down

0 comments on commit 363472b

Please sign in to comment.