bookkeeper-tutorial's Issues
Update the readme to point to current BK releases
The current readme still points to zookeeper.apache.org.
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
Wait until the bookkeeper ensemble is ready
It will be useful to add a functionality to the dice to wait until the bookkeeper ensemble is ready in order to avoid 3rd scripts in the docker file.
This new feature will permit to run the tutorial easier using docker compose
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)
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.