when the barrels were empty the elves cast them through the trapdoors , opened the water-gate , and out the barrels floated on the stream , bobbing along , until they were carried by the current to a place far down the river where the bank jutted out , near to the very eastern edge of mirkwood .