strapdata / elassandra

Elassandra = Elasticsearch + Apache Cassandra
http://www.elassandra.io
Apache License 2.0
1.71k stars 198 forks source link

Can not create and delete an index after setting up multidatacenter elassandra cluster #387

Closed yosiasm closed 3 years ago

yosiasm commented 3 years ago

Elassandra version: elassandra-6.8.4.11

Plugins installed: []

JVM version (java -version):openjdk version "1.8.0_275", OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_275-b01), OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.275-b01, mixed mode)

OS version (uname -a if on a Unix-like system): Linux TJ-ELASSANDRA-01 4.19.0-12-amd64 #1 SMP Debian 4.19.152-1 (2020-10-18) x86_64 GNU/Linux

Description of the problem including expected versus actual behavior: when I create or deleting an index the request time to elasticsearch api takes forever and nothing changed. curl -XDELETE http://localhost:9200/entity_aliasing/ curl -XPUT http://localhost:9200/alias_service/

Steps to reproduce:

Please include a minimal but complete recreation of the problem, including (e.g.) index creation, mappings, settings, query etc. The easier you make for us to reproduce it, the more likely that somebody will take the time to look at it.

  1. setup 3 new elassandra node as DC2
  2. change seed config in 3 existing elassandra node (DC1)
  3. add DC2 in some keyspace replication setting
  4. nodetool repair
  5. nodetool rebuild
  6. then cannot create or delete index from elasticsearch anymore

Please provide the following information:

yosiasm commented 3 years ago

example node config in each datacenter: DC1: DC1.zip DC2: DC2.zip

yosiasm commented 3 years ago

I found out that elastic_admin is replicated only on DC2, the solution is to replicate in DC1 and DC2