Call session aware createEphemeral to create live instance. (#700)

Live instance creation is still using the old API createEphemeral(path, data) without the session ID, resulting in zk session race condition being not completely fixed.

So this commit changes the api to use createEphemeral(path, data, sessionId) for zk session validation and live instance creation. A new unit test is also added to cover session expiry in participant manager when creating live instance.
2 files changed
tree: 4caeed7e60040eaf9e29132a3aefcfd6bc703436
  1. .gitignore
  2. LICENSE
  3. NOTICE
  4. README.md
  5. build
  6. bump-up.command
  7. deploySite.sh
  8. helix-admin-webapp/
  9. helix-agent/
  10. helix-core/
  11. helix-front/
  12. helix-rest/
  13. helix-style-intellij.xml
  14. helix-style.xml
  15. hpost-review.sh
  16. pom.xml
  17. recipes/
  18. scripts/
  19. website/
README.md

Apache Helix

Helix is part of the Apache Software Foundation.

Project page: http://helix.apache.org/

Mailing list: http://helix.apache.org/mail-lists.html

Build

mvn clean install package -DskipTests

WHAT IS HELIX

Helix is a generic cluster management framework used for automatic management of partitioned, replicated and distributed resources hosted on a cluster of nodes. Helix provides the following features:

  1. Automatic assignment of resource/partition to nodes
  2. Node failure detection and recovery
  3. Dynamic addition of Resources
  4. Dynamic addition of nodes to the cluster
  5. Pluggable distributed state machine to manage the state of a resource via state transitions
  6. Automatic load balancing and throttling of transitions