HDFS Wait mechanism