manticoresoftware / manticoresoftware/manticoresearch

Index create/delete on cluster level

Open
#899 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
C++
Stars
12k
Forks
642
Avg merge
3d 12h
Merged PRs (30d)
47

Description

Hi,

Let's assume we have 3 nodes in a cluster.
And let's say we have an INDEX that was created on the cluster level with the following commands:

node #1  
CREATE TABLE INDEX ( title text, content text, gid integer);  
ALTER CLUSTER DMETRICS_FTS_1 ADD INDEX;  
  
node #2  
nothing should be done   
  
node #3  
nothing should be done   

So right now I want to delete that index, so I'll need to conduct the following sequence of commands on each node:

node #1  
ALTER CLUSTER DMETRICS_FTS_1 DROP INDEX;  
DROP TABLE INDEX  
  
node #2  
DROP TABLE INDEX  
  
node #3  
DROP TABLE INDEX  

Is it possible to delete an INDEX via a single node on the cluster level so it will propagate the change across all other nodes?

Similar implementation exists in ClickHouse while you are adding ON CLUSTER XYZ command

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the existing ALTER CLUSTER ... ADD INDEX, ALTER CLUSTER ... DROP INDEX, and DROP TABLE commands. Determine how cluster-level changes are propagated between nodes, then define completion as dropping the index through one node while the corresponding table cleanup reaches every other node.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, sql
Domain
databases, distributed-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.