Rice-Comp413-2016 / RDFS

The Rice Comp413 class (2016-2017) implementation of HDFS. (This will eventually be put under an open source license, which one TBD).
4 stars 2 forks source link

Namenode hangs. #68

Open pelmers opened 7 years ago

pelmers commented 7 years ago

Namenode does not respond to any inputs with final message INFO [default] : **ZkWrapper** : [health child] Receive a heartbeat. A child has been added under path/health/127.0.0.1:50020 I cannot ctrl-c the process, nor will it respond to any client rpc.

On current develop branch, seems like a zookeeper issue, or some kind of memory corruption maybe.

Steps to reproduce: 1) Start namenode. 2) Start datanode.

The hang does not appear if I start datanode first.

zhouhanc commented 7 years ago

The problem is that health path is /health, which is missing a backslash. So when we attach a watcher to its child, the path becomes /healthchild1, which should be /health/child1.

I fixed the problem by appending a backslash after /health