Coder Social home page Coder Social logo

bookkeeper-tutorial's People

Contributors

fpj avatar ivankelly avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

bookkeeper-tutorial's Issues

Throw org.apache.zookeeper.KeeperException$NoNodeException

Exception in thread "main" org.apache.zookeeper.KeeperException$NoNodeException: KeeperErrorCode = NoNode for /ledgers/available/readonly
at org.apache.zookeeper.KeeperException.create(KeeperException.java:111)
at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
at org.apache.zookeeper.ZooKeeper.create(ZooKeeper.java:783)
at org.apache.bookkeeper.client.BookieWatcher$ReadOnlyBookieWatcher.(BookieWatcher.java:264)
at org.apache.bookkeeper.client.BookieWatcher.(BookieWatcher.java:85)
at org.apache.bookkeeper.client.BookKeeper.(BookKeeper.java:219)
at org.apache.bookkeeper.Dice.(Dice.java:54)
at org.apache.bookkeeper.Dice.main(Dice.java:233)

Typo in link to "Tailing" source code

The tag for the source code of the Tailing section has a typo and is called "trailing" instead of "tailing" what causes the link to the source code in that section to redirect to a 404 page in github

Race condition

If Dice.playdice() drops into the follow branch before the takeLeadership callback occurs then the program hangs without generating any dice rolls.

This is because the first block of code in follow() has a loop condition that never breaks out.
ie "while (ledgers == null) "

A potential solution is to change the condition to so that one the leadership
"while (ledgers == null && !leader)"

Or is this additional check wrong for some reason?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.