Description | This article describes how to resolve Clickhouse tables in read-only mode due to Part xxxx intersects Part yyyy in FortiSIEM. |
Scope | FortiSIEM. |
Solution |
The following errors are observed in /opt/clickhouse/log/clickhouse-server.log:
tail -f /opt/clickhouse/log/clickhouse-server.log Code: 49. DB::Exception: Part 20250718_13529_13535_1 intersects previous part 20250718_13500_13533_6. It is a bug or a result of manual intervention in the ZooKeeper data. (LOGICAL_ERROR) (version 22.6.1.1985 (official build))
In the GUI, navigate to Admin -> Health -> Cloud Health to see which tables are in read_only mode by hovering over the Critical status on a given worker.
The contents of the screenshot above indicate that fsiem.events_replicated and mv_events tables are in read-only mode.
The following approach can be followed from the respective Worker Data Node to resolve the errors.
clickhouse-client -q "select * from system.replicas"
Note down the Replica number which will be used in the next steps.
To recover mv_t_events table from read-only mode, enter the following commands:
clickhouse-client -q "DETACH TABLE fsiem.mv_t_events"
To recover events_replicated table from read only mode, enter the following commands:
clickhouse-client -q "DETACH TABLE fsiem.events_replicated"
Use the following command to check if tables are no longer in read_only mode:
clickhouse-client -q "select * from system.replicas" |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.