207208209210211212213214215216217
//Send requests to bookies for(BookieHandle bh : lh.getBookies()){ try{ SubOp.SubReadOp sRead = new SubOp.SubReadOp(rOp, new PendingReadOp(lh), lh.getBookies().indexOf(bh), opMonitor); bh.sendRead(sRead, entry); } catch(IOException e){
233234235236237238239240241242243
for(long entry = rOp.firstEntry; entry <= rOp.lastEntry; entry++){ long counter = 0; PendingReadOp pROp = new PendingReadOp(lh); n = lh.getBookies(entry).size(); if(n < lh.getQuorumSize()) throw BKException.create(Code.NotEnoughBookiesException);