Hi Sangmin, your assumtion is right. addBlock() allocates an ew block only if the penultimate block has reached the minimum replication factor. The blockreceived messages from the immediately previous block might take a while to be sent by the datanode and processed by the namenode.
thanks, dhruba On Mon, Feb 23, 2009 at 4:50 AM, Sangmin Lee <[email protected]> wrote: > Hi, > > I have a question regarding NameNode.addBlock() function. > I see that it makes sure that the previous block is replicated before you > assign an additional block. > I wonder why it checks penultimate block rather than ultimate block ? > Is it because it would take some time for the immediately previous block to > be replicated? > > Thanks, > Sangmin >
