Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jan 06 2016 17:57
    test2
  • Jan 06 2016 17:56
    test
Noteworthy
@LordNoteworthy
Is the couchbase-operator open source ?
My hands are tied :) Need to understand why this happens:
{"level":"error","ts":1613608641.180576,"logger":"controller","msg":"Failed to create Couchbase cluster","cluster":{"namespace":"default","name":"mars-couchbase-cluster"},"error":"unexpected cluster phase: Failed","stacktrace":"github.com/couchbase/couchbase-operator/vendor/github.com/go-logr/zapr.(*zapLogger).Error\n\t/home/couchbase/jenkins/workspace/couchbase-operator-build/goproj/src/github.com/couchbase/couchbase-operator/vendor/github.com/go-logr/zapr/zapr.go:128\ngithub.com/couchbase/couchbase-operator/pkg/controller.(*CouchbaseClusterReconciler).Reconcile\n\t/home/couchbase/jenkins/workspace/couchbase-operator-build/goproj/src/github.com/couchbase/couchbase-operator/pkg/controller/controller.go:73\ngithub.com/couchbase/couchbase-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/home/couchbase/jenkins/workspace/couchbase-operator-build/goproj/src/github.com/couchbase/couchbase-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:215\ngithub.com/couchbase/couchbase-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1\n\t/home/couchbase/jenkins/workspace/couchbase-operator-build/goproj/src/github.com/couchbase/couchbase-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:158\ngithub.com/couchbase/couchbase-operator/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntil.func1\n\t/home/couchbase/jenkins/workspace/couchbase-operator-build/goproj/src/github.com/couchbase/couchbase-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:133\ngithub.com/couchbase/couchbase-operator/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntil\n\t/home/couchbase/jenkins/workspace/couchbase-operator-build/goproj/src/github.com/couchbase/couchbase-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:134\ngithub.com/couchbase/couchbase-operator/vendor/k8s.io/apimachinery/pkg/util/wait.Until\n\t/home/couchbase/jenkins/workspace/couchbase-operator-build/goproj/src/github.com/couchbase/couchbase-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:88"}
Noteworthy
@LordNoteworthy
I believe I am running into this issue: Operator unable to recover custom TLS clusters if all pods go down
Noteworthy
@LordNoteworthy
Is there any way to retrieve data from the .couch files ?
1 reply
image.png
I made a snapshot all the PVs for my 3 nodes cluster, though when I mount that volume, I can only see the .couch files, I tried using cbtransfer, but I am getting:
error: missing vbuckets in source_bucket: files
MohanJagadheeswaran
@MohanJagadheeswaran
Hi
Iam using com.couchbase.client library
Ia trying to auto increment an existing document
Id
Collections are not supported (or enabled) on the cluster
Iam getting the above error
Iam using
bucket.defaultCollection().binary().increment(docKey).content();
Can anyone kindly say, how i can increment id in couchdb java sdk
Matt Ingenthron
@ingenthr
@MohanJagadheeswaran there isn’t an auto-increment in the the system as such. we do have counters and you can use those. https://docs.couchbase.com/java-sdk/current/concept-docs/documents.html#counters
collections are part of 6.6 and 6.5 if you enable developer preview, or part of the 7.0 beta.
https://docs.couchbase.com/server/current/developer-preview/preview-mode.html#how-do-i-enable-the-developer-preview-mode
Leonid Boykov
@leonidboykov

Hello,

I'm using github/couchbase/gocb/v2 client for Go. I'm trying to flush buckets on my server and I need to somehow handle an error in case the bucket does not exist. Shouldn't cluster.Buckets().FlushBucket(bucket, &opts) return something like ErrBucketNotExist just like the GetBucket(bucket, &opts) method? The only error I'm getting is Requested resource not found. from resp.Body (I've checked source code).

Is it a bug or intended behavior?

Charles Dixon
@chvck
Hi @leonidboykov that’s almost certainly a bug, I’ve raised https://issues.couchbase.com/browse/GOCBC-1070
Leonid Boykov
@leonidboykov
@chvck thanks!
bdonnahue
@bdonnahue
hey folks. i just installed couchbase on centos using the official instructions. after th einstall i see a bunch of processes running from /opt/couchbase but systemctl says the service is stopped
is there a bug in the installer?
bdonnahue
@bdonnahue
making progess, the "/opt/couchbase/bin/couchbase-server -k" followed by "systemctl start coucbase-server" allows the service to start
looking at ps and netstat, it does not look likt all the subprocesses start correctly
Pat
@patrick-stephens
Which version? It's probably worth a post on the forums as you can whack in all the detail there for someone to look at. Make sure you do all the prerequisites as well.
Leonid Boykov
@leonidboykov

Hi,

is there any way to get ErrAuthenticationFailure with gocb/v2? When I'm trying to authenticate with the wrong credentials and accessing a bucket, I'm getting only "unambiguous timeout" instead.

gocb/v1 had slightly different behavior and returned auth error on accessing a bucket.
Leonid Boykov
@leonidboykov
It seems "unambiguous timeout" is the only answer we can get from Couchbase in most cases.
Charles Dixon
@chvck
@leonidboykov gocb v2 (and other SDK 3 SDKs) will retry connections until they are successful or shutdown. WaitUntilReady will just wait until the SDK is connected or the WaitUntilready operation itself times out. In v2(/SDK 3) all of the connection bootstrapping happens asynchronously to Connect and any other operations. The general idea here being that credentials etc.. are usually correct and if connecting fails then it's likely a temporary issue and connecting will work if we keep retrying, and if connecting doesn't work then the logs would point to why.
Muneeb Abbas
@muneeb_abbas3_twitter
Hello everyone. Apologies if this isn't the right place to ask this question, but I cannot find any information about the Go SDK getting support for distributed transactions and no discussions related to this anywhere. Just wondering if something like that is even planned?
Charles Dixon
@chvck
@muneeb_abbas3_twitter it is planned but I'm unsure when. If you post in the forums then you'll probably get more information.
sf-eng
@sf-eng
Hello. Is there a built in tokenizer, or can someone recommend a recipe for tokenizing posix style paths in Full Text Search such that a search for "a0100/b020" should match a0100 and b020 but not a0 or b0
actually CONTAINS_TOKEN function may be better for this use case
Zhixiong Chen
@zxcware
Hello, how can I do optimistic locking in updating a field in a subdocument?
Charles Dixon
@chvck
@zxcware you'd have to use the CAS value which is document level. There's isn't any field level locking.
Zhixiong Chen
@zxcware
@chvck I found this https://docs.couchbase.com/go-sdk/current/howtos/subdocument-operations.html#concurrent-modifications. It looks like there is a subdocument level CAS
Charles Dixon
@chvck
@zxcware the CAS value there is actually applied at the document level. If you supply a CAS to MutateIn then the whole operation will fail if the document's CAS doesn't match. Subdoc itself is atomic across the operation so no mutations will actually occur unless all of the mutations would be successful. If you're trying to prevent some racey writes to a single field then you would need to use CAS at the document level though.
Zhixiong Chen
@zxcware
@chvck It's hard to understand "Subdoc itself is atomic across the operation so no mutations will actually occur unless all of the mutations would be successful". Does that mean, "mutating any field in a subdoc is atomic"? It won't end up partial data for any key?
Charles Dixon
@chvck
@zxcware sorry I'll try to rephrase. What I meant was that if you perform say 5 MutateInSpecs in a single MutateIn operation and any of them fail (you do say an InsertSpec on a field that exists) then none of those Specs will be applied to the document.
What is it that you're actually wanting to do here?
Zhixiong Chen
@zxcware
@chvck got it. In my case, I have a campaign service cluster with multiple nodes loading/updating the same state(a subdocument). If the nodes are updating different fields, I guess it won't cause any issue? If they're updating the same field, I guess last write wins and the field value won't end up an undesired value?
Charles Dixon
@chvck
@zxcware "If the nodes are updating different fields, I guess it won't cause any issue?" that's right. "If they're updating the same field, I guess last write wins and the field value won't end up an undesired value?" also right
Zhixiong Chen
@zxcware
@chvck got it. Thanks. Is there a way to implement subdocument level CAS? e.g the client explicitly chooses a subdocument field as CAS key.
Charles Dixon
@chvck
@zxcware I don’t believe that there is no. If you post up a question in the forums (forums.couchbase.com) then you might get some other ideas from other people though.
Zhixiong Chen
@zxcware
@chvck thanks
Zhixiong Chen
@zxcware
Does couchbase support change stream? Is there a way to pipe change stream to kafka?
Charles Dixon
@chvck
@zxcware I don’t know much about this but is https://docs.couchbase.com/kafka-connector/current/index.html of any use?
Zhixiong Chen
@zxcware
@chvck thanks. Let me check