Skip to content

Replication Error #779

Closed
Closed

Description

@psytron

ArcadeDB Version: v23.1.1

JDK Version: Docker

OS: Mac OS

Expected behavior

Play with Data style smooth sync of all machines. Automatic self configuration when a user points to replication target.

Actual behavior

Error:
ha_error

Steps to reproduce

Click on Replication screen and Connect Button.
Add address of another fully operational fresh ArcadeDB server.

Activity

  1. lvca commented on Jan 17, 2023

    @lvca
    Member

    I can't reproduce this exact issue, but it looks like ArcadeDB wasn't started with HA enabled. Try setting:

    -Darcadedb.ha.enabled=true
    

    At startup. I'm going to look closely to the exception and provide a better error, at least.

  2. added this to the 23.1.2 milestone on Jan 17, 2023
  3. self-assigned this
    on Jan 17, 2023
  4. added a commit that references this issue on Jan 17, 2023
  5. lvca commented on Jan 17, 2023

    @lvca
    Member

    Ok, just changed the message to ArcadeDB is not running with High Availability module enabled. Please add this setting at startup: -Darcadedb.ha.enabled=true

  6. psytron commented on Jan 18, 2023

    @psytron
    ContributorAuthor

    When I set
    -Darcadedb.ha.enabled=true
    the docker container does not seem to start anymore:

    generic-arcade-1 | Exception in thread "main" java.lang.NullPointerException: Cannot invoke "com.arcadedb.server.ha.HAServer.isLeader()" because the return value of "com.arcadedb.server.ArcadeDBServer.getHA()" is null
    generic-arcade-1 | at com.arcadedb.server.ha.ReplicatedDatabase.command(ReplicatedDatabase.java:577)
    generic-arcade-1 | at com.arcadedb.server.ServerDatabase.command(ServerDatabase.java:411)
    generic-arcade-1 | at com.arcadedb.server.ArcadeDBServer.loadDefaultDatabases(ArcadeDBServer.java:471)
    generic-arcade-1 | at com.arcadedb.server.ArcadeDBServer.start(ArcadeDBServer.java:129)
    generic-arcade-1 | at com.arcadedb.server.ArcadeDBServer.main(ArcadeDBServer.java:90)
    ^[[B

  7. lvca commented on Jan 18, 2023

    @lvca
    Member

    Reproduced. Working on it.

  8. reopened this on Jan 18, 2023
  9. lvca commented on Jan 18, 2023

    @lvca
    Member

    Changed the order of when imported databases are loaded. Tested with the docker and works.

  10. psytron commented on Jan 18, 2023

    @psytron
    ContributorAuthor

    Ok. Pulled latest. Now when I try to add replication target the window disappears and nothing happens:
    quorum
    I have fresh clean Ubuntu machines online, accessible/running instances of ArcadeDB. I can verify they're online, all accessible. Replication does not work from any of them, also does not work with localhost.

    In the Docker logs I see: Error connecting to the remote Leader server .
    But Studio/Frontend is just quietly showing zero feedback.

  11. psytron commented on Jan 18, 2023

    @psytron
    ContributorAuthor

    Also. In my humble opinion for a maximum PlayWithData approach, most users would love to skip the part where you have to think about "HA configuration" or "leader election". Just let users paste URL of live nodes and have the system figure itself out like a mesh network.

  12. psytron commented on Jan 18, 2023

    @psytron
    ContributorAuthor

    Also: The little pop-up window which says "Connect to a cluster" :
    After a user clicks "Send" The window disappears and then the configuration is gone....
    No user feedback. No acknowledgement of any kind that time was just invested.
    The pop-up window just disappears and nothing happens.
    This is a very frustrating UX because it makes you feel like Arcade is not respecting users time and simply black-holing valuable configuration investments.
    It would be great if (at the very least) it would store and display a line item showing the data which was entered.
    Even if it fails with errors it would be great to reflect the work that was just done..

  13. lvca commented on Jan 19, 2023

    @lvca
    Member

    it's a good idea to save the latest input and pre-fill it every time.

    About the leader election, there's nothing a user can do: the election is executed by the servers automatically.

    You should receive a popup immediately after sending the command that the command was processed. It should be top right of the screen and it remains open for like 5 seconds. In case of errors, it's a red popup with the detail of the problem.

    What release are you using?

  14. reopened this on Jan 19, 2023
  15. lvca commented on Jan 19, 2023

    @lvca
    Member

    Ok, just implemented the saving of the last input. Very useful, thanks!

    Now if there is an error during the connect is sent back to the UX. Before there was just an acknowledge of the command received. Please get the latest from main branch and test if this completely solves the issues.

    (Refresh the browser to use the latest studio after the update)

  16. psytron commented on Jan 21, 2023

    @psytron
    ContributorAuthor

    Just updated to latest image:
    v23.1.2-SNAPSHOT (build 477a660/1674253051356/main)

    In our opinion the workflow is still pretty glitchy.
    Clicking the "Send" button leaves user with zero feedback while the daemon figures out if it worked or not. So it still feels like it's black-holing user input and ignoring precious configuration moments.
    This is just our opinion though. You have a lot of great concepts in this product and I suppose you have other priorities. This is just feedback.
    The ideal functionality would be great:
    A) immediately and clearly acknowledge the users valuable configuration investments. This means even before the call goes out to the server daemon some line-item should appear, with a spinner showing progress, and the address / credentials which were just entered. To make the user genuinely feel like Studio has Listenened to this input. ( currently- after clicking "send" everything disappears and then.... nothing happens.... until 30 seconds later the pink error shows "Timeout" or something.
    B) Only after the UI immediately and clearly shows that Studio has registered the user input and saved the data , should the call be made to the server daemon to attempt begin of replication etc.

    Again you have a great product, these are just opinions from rando internet user.

  17. lvca commented on Jan 29, 2023

    @lvca
    Member

    Thanks for the feedback. The connect in the studio should return immediately feedback, in case of success or error.

  18. lvca commented on Feb 1, 2023

    @lvca
    Member

    Closing this issue, but please feel free to further comment if you have any ideas to improve the current workflow after you tried the upcoming 23.1.2!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions