Skip to content
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

replicas_status returns Ok even though some tables are readonly #50494

Open
SaltTan opened this issue Jun 2, 2023 · 0 comments
Open

replicas_status returns Ok even though some tables are readonly #50494

SaltTan opened this issue Jun 2, 2023 · 0 comments

Comments

@SaltTan
Copy link
Contributor

SaltTan commented Jun 2, 2023

ClickHouse client version 23.4.2.11 (official build).
Connecting to localhost:9000 as user default.
Connected to ClickHouse server version 23.4.2 revision 54462.

ATTACH TABLE readonly UUID '2f65a60c-7574-4f29-ae3c-138f943bac92'
(
    `f` Int
)
ENGINE = ReplicatedMergeTree('/path', 'rep')
ORDER BY tuple()

Ok.

SELECT count()
FROM system.replicas
WHERE is_readonly

┌─count()─┐
│       1 │
└─────────┘

$ curl http://localhost:8123/replicas_status
Ok.

In 22.8 replicas_status returns Code: 242. DB::Exception: Table is in readonly mode (replica path: /clickhouse/tables/table1/replicas/replica1).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant