METHOD_0 ( ) { final org . apache . hadoop . conf . Configuration conf = org . apache . hadoop . hdfs . IDENT_0 . METHOD_1 ( org . apache . hadoop . hdfs . web . IDENT_1 . IDENT_2 ) ; org . apache . hadoop . hdfs . IDENT_3 cluster = null ; final java . util . Map < java . lang . String , java . lang . Boolean > IDENT_4 = new java . util . HashMap < java . lang . String , java . lang . Boolean > ( ) ; try { cluster = new org . apache . hadoop . hdfs . IDENT_3 . Builder ( conf ) . METHOD_2 ( org . apache . hadoop . hdfs . web . IDENT_1 . IDENT_5 ) . METHOD_3 ( 0 ) . build ( ) ; org . apache . hadoop . hdfs . server . IDENT_6 . IDENT_7 . IDENT_8 . METHOD_4 ( cluster , conf , org . apache . hadoop . hdfs . web . IDENT_1 . IDENT_2 ) ; cluster . METHOD_5 ( ) ; cluster . METHOD_6 ( 0 ) ; final org . apache . hadoop . hdfs . server . IDENT_6 . IDENT_9 IDENT_6 = cluster . METHOD_7 ( 0 ) ; final org . apache . hadoop . hdfs . server . protocol . IDENT_10 IDENT_11 = IDENT_6 . METHOD_8 ( ) ; org . apache . hadoop . test . IDENT_12 . METHOD_9 ( IDENT_6 , STRING_0 , null ) ; new java . lang . Thread ( ) { @ org . apache . hadoop . hdfs . web . Override public void run ( ) { boolean result = false ; org . apache . hadoop . fs . IDENT_13 fs = null ; try { fs = org . apache . hadoop . fs . IDENT_13 . get ( org . apache . hadoop . hdfs . web . IDENT_1 . IDENT_14 , conf ) ; final org . apache . hadoop . fs . Path IDENT_15 = new org . apache . hadoop . fs . Path ( STRING_1 ) ; result = fs . METHOD_10 ( IDENT_15 ) ; } catch ( java . io . IOException e ) { result = false ; } finally { org . apache . hadoop . io . IDENT_16 . METHOD_11 ( null , fs ) ; } MOD_0 ( org . apache . hadoop . hdfs . web . IDENT_1 . this ) { IDENT_4 . put ( STRING_2 , result ) ; org . apache . hadoop . hdfs . web . IDENT_1 . this . METHOD_12 ( ) ; } } } . start ( ) ; java . lang . Thread . sleep ( 1000 ) ; org . apache . hadoop . test . IDENT_12 . METHOD_9 ( IDENT_6 , STRING_0 , IDENT_11 ) ; MOD_0 ( this ) { while ( ! ( IDENT_4 . containsKey ( STRING_2 ) ) ) { this . METHOD_13 ( ) ; } "<AssertPlaceHolder>" ; } } finally { if ( cluster != null ) { cluster . METHOD_14 ( ) ; } } } get ( java . lang . Class ) { METHOD_15 ( ) ; long start = METHOD_16 ( ) ; java . util . List < T > ret = new java . util . ArrayList ( ) ; java . lang . String IDENT_17 = METHOD_17 ( clazz ) ; try { java . util . List < java . lang . String > IDENT_18 = IDENT_19 . METHOD_18 ( IDENT_17 ) ; for ( java . lang . String child : IDENT_18 ) { try { java . lang . String path = METHOD_19 ( IDENT_17 , child ) ; org . apache . IDENT_20 . data . IDENT_21 IDENT_22 = new org . apache . IDENT_20 . data . METHOD_20 ( ) ; java . lang . String data = IDENT_19 . METHOD_21 ( path , IDENT_22 ) ; boolean IDENT_23 = false ; if ( ( data == null ) || ( data . equals ( "" ) ) ) { IDENT_23 = true ; } else { try { T record = METHOD_22 ( data , IDENT_22 , clazz ) ; ret . add ( record ) ; } catch ( java . io . IOException e ) { org . apache . hadoop . hdfs . server . IDENT_24 . store . driver . impl . IDENT_25 . LOG . error ( STRING_3 , clazz . METHOD_23 ( ) , data , e . getMessage ( ) ) ; IDENT_23 = true ; } } if ( IDENT_23 ) { org . apache . hadoop . hdfs . server . IDENT_24 . store . driver . impl . IDENT_25 . LOG . error ( STRING_4 , child , path ) ; IDENT_19 . delete ( path ) ; } } catch ( java . lang . Exception e ) { org . apache . hadoop . hdfs . server . IDENT_24 . store . driver . impl . IDENT_25 . LOG . error ( STRING_5 , child , e . getMessage ( ) ) ; } } } catch ( java . lang . Exception e ) { METHOD_24 ( ) . METHOD_25 ( ( ( METHOD_16 ( ) ) - start ) ) ; java . lang . String msg = ( ( STRING_6 + IDENT_17 ) + STRING_7 ) + ( e . getMessage ( ) ) ; org . apache . hadoop . hdfs . server . IDENT_24 . store . driver . impl . IDENT_25 . LOG . error ( msg ) ; throw new java . io . IOException ( msg ) ; } long end = METHOD_16 ( ) ; METHOD_24 ( ) . METHOD_26 ( ( end - start ) ) ; return new org . apache . hadoop . hdfs . server . IDENT_24 . store . records . IDENT_26 < T > ( ret , getTime ( ) ) ; }
org . junit . Assert . assertTrue ( IDENT_4 . get ( STRING_2 ) )