analytics
analytics copied to clipboard
Clear sessions cache on transfer
Changes
This PR implements clearing session cache on complete transfer in order to avoid making the already transferred session stale. To further prevent this, both, session and event WriteBuffer processes are blocked for the duration of the transfer.
The feature is behind an ENV feature flag, CLICKHOUSE_SESSION_LOCK_ENABLED which defaults to false. Enabling it will require adjusting config on infra level.
Tests
- [x] Automated tests have been added
| Preview environment👷🏼♀️🏗️ |
|---|
| PR-5608 |