public void testFilePrimary ( ) throws Exception { start ( ) ; igfsPrimary . create ( FILE , true ) . close ( ) ; checkEvictionPolicy ( 0 , 0 ) ; int blockSize = igfsPrimary . info ( FILE ) . blockSize ( ) ; append ( FILE , blockSize ) ; checkEvictionPolicy ( 0 , 0 ) ; read ( FILE , 0 , blockSize ) ; checkEvictionPolicy ( 0 , 0 ) ; }
Test how evictions are handled for a file working in PRIMARY mode .