ReadTimeout: ошибка сервера: code = 1200 [Время ожидания для узла-координатора в ожидании узлов реплики - PullRequest
0 голосов
/ 20 февраля 2019

Я получаю сообщение об ошибке ниже,

ReadTimeout: Error from server: code=1200 [Coordinator node timed out waiting for replica nodes' responses] message="Operation timed out - received only 0 responses." info={'received_responses': 0, 'required_responses': 1, 'consistency': 'ONE'}

сведения о версии, [cqlsh 5.0.1 |Кассандра 3.11.4 |CQL spec 3.4.4 |Собственный протокол v4]

cqlsh:infinito> select count(id) from list_subscriber;

Эта таблица содержит только 10 записей, а первичный ключ находится в столбце «Id» только с типом int.

Я пытаюсь увеличить некоторые параметры времени ожидания(request_timeout_in_ms:) но не повезло

Любая помощь приветствуется.

1 Ответ

0 голосов
/ 21 февраля 2019

Я закончил тем, что делал ниже параметры, увеличил значение ниже параметров в 10 раз.

отредактировал файл /etc/cassandra/cassandra.yaml

sudo nano /etc/cassandra/cassandra.yaml

# How long the coordinator should wait for read operations to complete
read_request_timeout_in_ms: 50000
# How long the coordinator should wait for seq or index scans to complete
range_request_timeout_in_ms: 100000
# How long the coordinator should wait for writes to complete
write_request_timeout_in_ms: 20000
# How long the coordinator should wait for counter writes to complete
counter_write_request_timeout_in_ms: 50000
# How long a coordinator should continue to retry a CAS operation
# that contends with other proposals for the same row
cas_contention_timeout_in_ms: 10000
# How long the coordinator should wait for truncates to complete
# (This can be much longer, because unless auto_snapshot is disabled
# we need to flush first so we can snapshot before removing the data.)
truncate_request_timeout_in_ms: 600000
# The default timeout for other, miscellaneous operations
request_timeout_in_ms: 100000

# How long before a node logs slow queries. Select queries that take longer than
# this timeout to execute, will generate an aggregated log message, so that slow queries
# can be identified. Set this value to zero to disable slow query logging.
slow_query_log_timeout_in_ms: 5000

А затем открыл терминал и выполнил нижекоманда

cqlsh --request-timeout=6000

Все выглядит хорошо.

...