Skip to content

ALIGN DATABASE not working #591

Closed
Closed

Description

@gramian

ArcadeDB Version: v22.9.1 (build d082adc/1664822987697/main)

JDK Version: openjdk 11.0.16 2022-07-19

OS: Ubuntu 20.04

Expected behavior

?

Actual behavior

ERROR: Align Database not supported
Trace
<ArcadeDB_0> Error on command execution (PostCommandHandler)
java.lang.UnsupportedOperationException: Align Database not supported
	at com.arcadedb.database.EmbeddedDatabase.alignToReplicas(EmbeddedDatabase.java:1457)
	at com.arcadedb.query.sql.parser.AlignDatabaseStatement.executeSimple(AlignDatabaseStatement.java:50)
	at com.arcadedb.query.sql.executor.SingleOpExecutionPlan.executeInternal(SingleOpExecutionPlan.java:115)
	at com.arcadedb.query.sql.executor.ScriptLineStep.syncPull(ScriptLineStep.java:53)
	at com.arcadedb.query.sql.executor.ScriptExecutionPlan.doExecute(ScriptExecutionPlan.java:97)
	at com.arcadedb.query.sql.executor.ScriptExecutionPlan.fetchNext(ScriptExecutionPlan.java:57)
	at com.arcadedb.query.sql.parser.LocalResultSet.fetchNext(LocalResultSet.java:46)
	at com.arcadedb.query.sql.parser.LocalResultSet.<init>(LocalResultSet.java:40)
	at com.arcadedb.database.EmbeddedDatabase.executeInternal(EmbeddedDatabase.java:1296)
	at com.arcadedb.database.EmbeddedDatabase.execute(EmbeddedDatabase.java:1244)
	at com.arcadedb.server.ServerDatabase.execute(ServerDatabase.java:415)
	at com.arcadedb.server.http.handler.PostCommandHandler.executeScript(PostCommandHandler.java:100)
	at com.arcadedb.server.http.handler.PostCommandHandler.execute(PostCommandHandler.java:71)
	at com.arcadedb.server.http.handler.DatabaseAbstractHandler.execute(DatabaseAbstractHandler.java:85)
	at com.arcadedb.server.http.handler.AbstractHandler.handleRequest(AbstractHandler.java:111)
	at io.undertow.server.RoutingHandler.handleRequest(RoutingHandler.java:93)
	at io.undertow.server.handlers.PathHandler.handleRequest(PathHandler.java:104)
	at io.undertow.server.Connectors.executeRootHandler(Connectors.java:387)
	at io.undertow.server.protocol.http.HttpReadListener.handleEventWithNoRunningRequest(HttpReadListener.java:256)
	at io.undertow.server.protocol.http.HttpReadListener.handleEvent(HttpReadListener.java:136)
	at io.undertow.server.protocol.http.HttpOpenListener.handleEvent(HttpOpenListener.java:162)
	at io.undertow.server.protocol.http.HttpOpenListener.handleEvent(HttpOpenListener.java:100)
	at io.undertow.server.protocol.http.HttpOpenListener.handleEvent(HttpOpenListener.java:57)
	at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
	at org.xnio.ChannelListeners$10.handleEvent(ChannelListeners.java:291)
	at org.xnio.ChannelListeners$10.handleEvent(ChannelListeners.java:286)
	at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
	at org.xnio.nio.QueuedNioTcpServer2.acceptTask(QueuedNioTcpServer2.java:178)
	at org.xnio.nio.WorkerThread.safeRun(WorkerThread.java:612)
	at org.xnio.nio.WorkerThread.run(WorkerThread.java:479)

Steps to reproduce

ALIGN DATABASE

on a single server, using either console or studio.

If this command depends on certain conditions, such as at least one follower exists, then this should be added to the documentation.

Activity

  1. gramian commented on Nov 3, 2022

    @gramian
    CollaboratorAuthor

    Further testing results: If the HA module is enabled, ALIGN DATABASE can be used from the studio, but not from the console (Error in console ERROR: Align Database not supported, no resulting server error though).

    1. So this seems to be a console specific issue (triggered from here or here)?
    2. And I guess it should be added to the docu that this command is only available if the HA module is loaded?
  2. added a commit that references this issue on Nov 6, 2022
  3. lvca commented on Nov 6, 2022

    @lvca
    Member

    ALIGN DATABASE makes sense only in a distributed setup. I've added a note in ALIGN DATABASE command docs. About the issue with the console, the command should be fully supported: all the commands go through the HTTP server request. Did you connect the console remotely to the database?

  4. self-assigned this
    on Nov 6, 2022
  5. added
    documentationImprovements or additions to documentation
    on Nov 6, 2022
  6. gramian commented on Nov 6, 2022

    @gramian
    CollaboratorAuthor

    I used the console locally.

    However, the clear remark in the docu should resolve this.

  7. added this to the 22.11.1 milestone on Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions