On Fri, Aug 13, 2010 at 3:38 PM, Vidhyashankar Venkataraman <[email protected]> wrote: > Can you guys help me with these questions? > > 1) Consistency guarantees for reads in Hbase: > What happens when you issue a direct bulk incremental update without > using the API? > Say, a new storefile is created in a region through the bulk tool. Already > existing scanners will not have an effect on the new updates. But new > scanners would. Is this correct? > And what will happen to the block cache? Are they marked dirty after the > new upload? >
The new storefile is atomically added to the list of storefiles that make up the region store/column family. Outstanding scanners will 'see' the newly bulk-loaded values as soon as the storefile has been added. See StoreScanner#updateReaders and Store#bulkLoadHFile. St.Ack
