Skip to content

Replication skips records inserted after FREEZE #4501

@KlimTodrik

Description

@KlimTodrik

Bug Description:

Summary

When a table is frozen and new records are inserted through the cluster path, those records are visible on the source node, but after joining the cluster on another node they are missing there.

Environment

Two Manticore instances running via Docker Compose.

services:
  manticore1:
    image: manticoresearch/manticore:latest
    container_name: manticore1
    restart: unless-stopped
  manticore2:
    image: manticoresearch/manticore:latest
    container_name: manticore2
    restart: unless-stopped

Reproduction steps

  1. Create cluster and table on node 1
docker compose exec manticore1 mysql -e "
CREATE CLUSTER cluster1;
CREATE TABLE test(
  id bigint,
  name text,
  type int
);
INSERT INTO test VALUES
  (0,'text',1),
  (0,'text',2),
  (0,'text',3);
ALTER CLUSTER cluster1 ADD test;
FREEZE test;
INSERT INTO cluster1:test VALUES
  (0,'text',4),
  (0,'text',5),
  (0,'text',6);
SELECT COUNT(*) FROM test;
"
  1. Join the cluster from node 2
docker compose exec manticore2 mysql -e "
JOIN CLUSTER cluster1 AT 'manticore1:9312';
SELECT COUNT(*) FROM test;
"

Expected result

SELECT COUNT(*) FROM test; on manticore2 should return 6.

Actual result

manticore1 shows 6, but manticore2 gets fewer records, as if rows inserted after FREEZE test were skipped during replication.

Manticore Search Version:

Manticore 25.0.0 ce3c27828@26032712 (columnar 13.0.0 e60b083@26032708) (secondary 13.0.0 e60b083@26032708) (knn 13.0.0 e60b083@26032708) (embeddings 1.1.1 e60b083@26032708)

Operating System Version:

docker

Have you tried the latest development version?

Yes

Internal Checklist:

To be completed by the assignee. Check off tasks that have been completed or are not applicable.

Details
  • Implementation completed
  • Tests developed
  • Documentation updated
  • Documentation reviewed

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions