usc-cloud / goffish

USC GoFFish Graph Analytics Framework
32 stars 11 forks source link

NameNode shutdown hook does not work. #117

Closed charithwiki closed 11 years ago

sooniln commented 11 years ago

Works fine for me. If you want to file a bug, please include actual information on the bug.

charithwiki commented 11 years ago

Following are the steps i followed. 1) Start NameNode with optional persistent file name param. 2) Deploy a new Graph. 3) Shutdown the Namenode (ctrl + c)

Observation : persistent file was not created.

environment : x86_64 GNU/Linux java version : 1.7.0_17 GoFS revision : Last changed rev : 5988

Let me know if you need more information. I m not planing to re-run this soon. This might be intermittent. I'll inform if i face this while going through a another deployment cycle.

charithwiki commented 11 years ago

See http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Runtime.html#addShutdownHook%28java.lang.Thread%29

sooniln commented 11 years ago

I haven't check on linux yet, but everything works fine on windows. Unless I can repro, work around is to quit the server normally instead of with ctrl-c.

charithwiki commented 11 years ago

I m no longer facing this issue. Hence closing.