public void testAccessAndModificationTimeUpwardsPropagation() throws Exception {
  create(igfsSecondary,paths(DIR,SUBDIR),paths(FILE,FILE2));
  T2<Long,Long> timesDir0=checkParentListingTime(igfsSecondaryFileSystem,DIR);
  T2<Long,Long> timesSubDir0=checkParentListingTime(igfsSecondaryFileSystem,SUBDIR);
  T2<Long,Long> timesFile0=checkParentListingTime(igfsSecondaryFileSystem,FILE);
  T2<Long,Long> timesFile20=checkParentListingTime(igfsSecondaryFileSystem,FILE2);
  Thread.sleep(500L);
  T2<Long,Long> timesDir1=checkParentListingTime(igfs.asSecondary(),DIR);
  T2<Long,Long> timesSubDir1=checkParentListingTime(igfs.asSecondary(),SUBDIR);
  T2<Long,Long> timesFile1=checkParentListingTime(igfs.asSecondary(),FILE);
  T2<Long,Long> timesFile21=checkParentListingTime(igfs.asSecondary(),FILE2);
  assertEquals(timesDir0,timesDir1);
  assertEquals(timesSubDir0,timesSubDir1);
  assertEquals(timesFile0,timesFile1);
  assertEquals(timesFile20,timesFile21);
}

public void testAccessAndModificationTimeUpwardsPropagation ( ) throws Exception { create ( igfsSecondary , paths ( DIR , SUBDIR ) , paths ( FILE , FILE2 ) ) ; T2 < Long , Long > timesDir0 = checkParentListingTime ( igfsSecondaryFileSystem , DIR ) ; T2 < Long , Long > timesSubDir0 = checkParentListingTime ( igfsSecondaryFileSystem , SUBDIR ) ; T2 < Long , Long > timesFile0 = checkParentListingTime ( igfsSecondaryFileSystem , FILE ) ; T2 < Long , Long > timesFile20 = checkParentListingTime ( igfsSecondaryFileSystem , FILE2 ) ; Thread . sleep ( 500L ) ; T2 < Long , Long > timesDir1 = checkParentListingTime ( igfs . asSecondary ( ) , DIR ) ; T2 < Long , Long > timesSubDir1 = checkParentListingTime ( igfs . asSecondary ( ) , SUBDIR ) ; T2 < Long , Long > timesFile1 = checkParentListingTime ( igfs . asSecondary ( ) , FILE ) ; T2 < Long , Long > timesFile21 = checkParentListingTime ( igfs . asSecondary ( ) , FILE2 ) ; assertEquals ( timesDir0 , timesDir1 ) ; assertEquals ( timesSubDir0 , timesSubDir1 ) ; assertEquals ( timesFile0 , timesFile1 ) ; assertEquals ( timesFile20 , timesFile21 ) ; }
test for file modification time upwards propagation when files are created on the secondary file system and initially unknown on the primary file system .
