Skip to content

Fail to replicate after creation of a new database in Leader #1207

@angkor-wat

Description

@angkor-wat

ArcadeDB Version:

ArcadeDB Server v23.6.1

OS and JDK Version:

Running on Linux 3.10.0-1160.92.1.el7.x86_64 - Java HotSpot(TM) 64-Bit Server VM 11.0.20 (18.9)
CentOS Linux release 7.4.1708 (Core)

Expected behavior

replicate the new database from Leader to Replica

Actual behavior

fail to replicate, with the error log below:

+----------+--------------------+-------+------+-----------------------+-------+--------------+-------+ |SERVER |HOST/PORT |ROLE |STATUS|JOINED ON |LEFT ON|THROUGHPUT |LATENCY| +----------+--------------------+-------+------+-----------------------+-------+--------------+-------+ |server_177|test-arcadedb:2424 |Leader |ONLINE|2023-08-14 19:56:34.044| | | | |server_182|test-arcadedb-2:2424|Replica|ONLINE|2023-08-14 20:01:50.356| |50b (2.00GB/s)| | +----------+--------------------+-------+------+-----------------------+-------+--------------+-------+ <server_177> Error on command execution (PostServerCommandHandler) java.lang.ClassCastException: class com.arcadedb.server.ServerDatabase cannot be cast to class com.arcadedb.server.ha.ReplicatedDatabase (com.arcadedb.server.ServerDatabase and com.arcadedb.server.ha.ReplicatedDatabase are in unnamed module of loader 'app') at com.arcadedb.server.http.handler.PostServerCommandHandler.createDatabase(PostServerCommandHandler.java:179) at com.arcadedb.server.http.handler.PostServerCommandHandler.execute(PostServerCommandHandler.java:69) at com.arcadedb.server.http.handler.AbstractHandler.handleRequest(AbstractHandler.java:124) at io.undertow.server.Connectors.executeRootHandler(Connectors.java:393) at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:859) at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18) at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2513) at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1538) at org.xnio.XnioWorker$WorkerThreadFactory$1$1.run(XnioWorker.java:1282) at java.base/java.lang.Thread.run(Thread.java:834)

Steps to reproduce

  1. start server server_177 (with ARCADEDB_SETTINGS="-Darcadedb.server.databaseDirectory=/data -Darcadedb.ha.enabled=true -Darcadedb.ha.clusterName=cluster_1 -Darcadedb.ha.serverList=test-arcadedb:2424,test-arcadedb-2:2424 -Darcadedb.server.name=server_177")
  2. start server server_182 (with ARCADEDB_SETTINGS="-Darcadedb.server.databaseDirectory=/data -Darcadedb.ha.enabled=true -Darcadedb.ha.clusterName=cluster_1 -Darcadedb.ha.serverList=test-arcadedb:2424,test-arcadedb-2:2424 -Darcadedb.server.name=server_182")
  3. open Studio, and create a new database 'test2'

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions