assert exception of setting xattr on read-only snapshot . concode_field_sep String name1 concode_elem_sep MiniDFSCluster cluster concode_elem_sep Path snapshotPath2 concode_elem_sep byte[] value1 concode_elem_sep String name2 concode_elem_sep Path snapshotPath3 concode_elem_sep Configuration conf concode_elem_sep int SUCCESS concode_elem_sep ExpectedException exception concode_elem_sep byte[] value2 concode_elem_sep Path path concode_elem_sep Path snapshotPath concode_elem_sep String snapshotName2 concode_elem_sep int pathCount concode_elem_sep byte[] newValue1 concode_elem_sep String snapshotName3 concode_elem_sep String snapshotName concode_elem_sep DistributedFileSystem hdfs concode_field_sep void init concode_elem_sep void testRemoveXAttrSnapshotPath concode_elem_sep void initCluster concode_elem_sep void restart concode_elem_sep void doSnapshotRootChangeAssertions concode_elem_sep void testRemoveReadsCurrentState concode_elem_sep void testModifyReadsCurrentState concode_elem_sep void testCopySnapshotShouldPreserveXAttrs concode_elem_sep void doSnapshotRootRemovalAssertions concode_elem_sep void testXAttrForSnapshotRootAfterChange concode_elem_sep void setUp concode_elem_sep void testSuccessiveSnapshotXAttrChanges concode_elem_sep void shutdown concode_elem_sep void testXAttrForSnapshotRootAfterRemove
void function ( ) { FileSystem . mkdirs ( hdfs , path , FsPermission . createImmutable ( ( short ) 0700 ) ) ; SnapshotTestHelper . createSnapshot ( hdfs , path , snapshotName ) ; exception . expect ( SnapshotAccessControlException . class ) ; hdfs . setXAttr ( snapshotPath , name1 , value1 ) ; }