Buggy code:
public abstract class AbstractNodeExecutor implements Executor { public static final Log log = LogFactory . getLog ( AbstractNodeExecutor . class ) ; protected ExecutorInfo executorInfo ; protected SchedulerConf schedulerConf ; @ Inject AbstractNodeExecutor ( SchedulerConf schedulerConf ) { } public static void main ( String [ ] args ) { } @ Override public void registered ( ExecutorDriver driver , ExecutorInfo executorInfo , FrameworkInfo frameworkInfo , SlaveInfo slaveInfo ) { } private void setUpDataDir ( ) { } protected void deleteFile ( File fileToDelete ) { } private void createSymbolicLink ( ) { AbstractNodeExecutor . log . info ( "Creating<seq2seq4repair_space>a<seq2seq4repair_space>symbolic<seq2seq4repair_space>link<seq2seq4repair_space>for<seq2seq4repair_space>HDFS<seq2seq4repair_space>binary" ) ; try { File sandboxHdfsBinary = new File ( System . getProperty ( "user.dir" ) ) ; Path sandboxHdfsBinaryPath = Paths . get ( sandboxHdfsBinary . getAbsolutePath ( ) ) ; File frameworkMountDir = new File ( schedulerConf . getFrameworkMountPath ( ) ) ; if ( ! ( frameworkMountDir . exists ( ) ) ) { frameworkMountDir . mkdirs ( ) ; } String hdfsBinaryPath = ( ( schedulerConf . getFrameworkMountPath ( ) ) + "//" ) + ( HDFSConstants . HDFS_BINARY_DIR ) ; File hdfsBinaryDir = new File ( hdfsBinaryPath ) ; try { Process process = Runtime . getRuntime ( ) . exec ( ( "unlink<seq2seq4repair_space>" + hdfsBinaryPath ) ) ; redirectProcess ( process ) ; int exitCode = process . waitFor ( ) ; if ( exitCode != 0 ) { AbstractNodeExecutor . log . info ( ( "Unable<seq2seq4repair_space>to<seq2seq4repair_space>unlink<seq2seq4repair_space>old<seq2seq4repair_space>sym<seq2seq4repair_space>link.<seq2seq4repair_space>Link<seq2seq4repair_space>may<seq2seq4repair_space>not<seq2seq4repair_space>exist.<seq2seq4repair_space>Exit<seq2seq4repair_space>code:<seq2seq4repair_space>" + exitCode ) ) ; } } catch ( IOException e ) { <START_BUG> AbstractNodeExecutor . log . fatal ( ( ( ( "Could<seq2seq4repair_space>not<seq2seq4repair_space>unlink" + ( hdfsBinary ) ) + ":<seq2seq4repair_space>" ) + e ) ) ; <END_BUG> System . exit ( 1 ) ; } if ( hdfsBinaryDir . exists ( ) ) { deleteFile ( hdfsBinaryDir ) ; } Path hdfsLinkDirPath = Paths . get ( hdfsBinaryPath ) ; Files . createSymbolicLink ( hdfsLinkDirPath , sandboxHdfsBinaryPath ) ; AbstractNodeExecutor . log . info ( ( "The<seq2seq4repair_space>linked<seq2seq4repair_space>HDFS<seq2seq4repair_space>binary<seq2seq4repair_space>path<seq2seq4repair_space>is:<seq2seq4repair_space>" + sandboxHdfsBinaryPath ) ) ; AbstractNodeExecutor . log . info ( ( "The<seq2seq4repair_space>symbolic<seq2seq4repair_space>link<seq2seq4repair_space>path<seq2seq4repair_space>is:<seq2seq4repair_space>" + hdfsLinkDirPath ) ) ; addBinaryToPath ( hdfsBinaryPath ) ; } catch ( Exception e ) { AbstractNodeExecutor . log . fatal ( ( "Error<seq2seq4repair_space>creating<seq2seq4repair_space>the<seq2seq4repair_space>symbolic<seq2seq4repair_space>link<seq2seq4repair_space>to<seq2seq4repair_space>hdfs<seq2seq4repair_space>binary:<seq2seq4repair_space>" + e ) ) ; System . exit ( 1 ) ; } } private void addBinaryToPath ( String hdfsBinaryPath ) throws IOException { } protected void startProcess ( ExecutorDriver driver , AbstractNodeExecutor . Task task ) { } protected void reloadConfig ( ) { } protected void redirectProcess ( Process process ) { } protected void runCommand ( ExecutorDriver driver , AbstractNodeExecutor . Task task , String command ) { } public abstract void launchTask ( final ExecutorDriver driver , final TaskInfo taskInfo ) { } private void sendTaskFailed ( ExecutorDriver driver , AbstractNodeExecutor . Task task ) { } @ Override public void reregistered ( ExecutorDriver driver , SlaveInfo slaveInfo ) { } @ Override public void disconnected ( ExecutorDriver driver ) { } @ Override public void frameworkMessage ( ExecutorDriver driver , byte [ ] msg ) { } @ Override public void error ( ExecutorDriver driver , String message ) { } @ Override public void shutdown ( ExecutorDriver d ) { } public class Task { public TaskInfo taskInfo ; public String cmd ; public Process process ; Task ( TaskInfo taskInfo ) { } } }

Fix:
AbstractNodeExecutor . log . fatal ( ( ( ( "Could<seq2seq4repair_space>not<seq2seq4repair_space>unlink" + hdfsBinaryPath ) + ":<seq2seq4repair_space>" ) + e ) ) ;