Проблема оператора Couchbase - PullRequest
3 голосов
/ 25 июня 2019

Диаграмма руля оператора Couchbase (предприятие 1.2) с проблемой

С новым кластером couchbase всегда возникает следующая проблема

couchbase-operator couchbase-operator-0.1.2 1.2

time="2019-06-25T04:22:14Z" level=error msg="failed to reconcile: unable to get buckets from cluster: [Client error `unmarshal json response`: json: cannot unmarsh
al number 897.8978978978979 into Go struct field BucketBasicStats.diskFetches of type int], [Client error `unmarshal json response`: json: cannot unmarshal number
897.8978978978979 into Go struct field BucketBasicStats.diskFetches of type int], [Client error `unmarshal json response`: json: cannot unmarshal number 897.897897
8978979 into Go struct field BucketBasicStats.diskFetches of type int]" cluster-name=couchbase-cluster-couchbase-cluster module=cluster
time="2019-06-25T04:22:22Z" level=error msg="failed to reconcile: unable to get buckets from cluster: [Client error `unmarshal json response`: json: cannot unmarsh
al number 575.7622377622378 into Go struct field BucketBasicStats.diskFetches of type int], [Client error `unmarshal json response`: json: cannot unmarshal number
575.7622377622378 into Go struct field BucketBasicStats.diskFetches of type int], [Client error `unmarshal json response`: json: cannot unmarshal number 575.762237
7622378 into Go struct field BucketBasicStats.diskFetches of type int]" cluster-name=couchbase-cluster-couchbase-cluster module=cluster

1 Ответ

3 голосов
/ 25 июня 2019

О, это хорошо! Да, похоже diskFetches на самом деле скорость в секунду, а не целочисленный счетчик, как предполагается клиентским кодом.

На данный момент мы ничего не можем сделать, но я помечен как критическое исправление и скоро буду в 1.2.1. К вашему сведению, оператор гарантирует, что кластер имеет правильный размер, сбалансирован и исправен, прежде чем выполнять какие-либо манипуляции с корзинами (где он не работает), поэтому ваши данные в безопасности.

Что я могу предложить, так это установить для spec.disableBucketManagement значение true в своем определении кластера и создать сегменты либо с помощью пользовательского интерфейса, либо клиентского SDK, это полностью исключит условие, пока мы не получим горячую починить.

...