Skip to content

RCBC-476: FeatureNotAvailable for cb2 ping/diagnostics #139

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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