Buggy code:
public class SdcClientCall extends ClientCall { private final SdcServerConnection connection ; private volatile FetchReply fetchReply ; private volatile FetchRequest fetchRequest ; private final CountDownLatch latch ; private final ByteArrayOutputStream requestEntityStream ; private volatile boolean responseHeadersAdded ; public SdcClientCall ( SdcClientHelper sdcClientHelper , SdcServerConnection connection , String method , String requestUri ) throws IOException { } public SdcServerConnection getConnection ( ) { } public FetchReply getFetchReply ( ) { } public FetchRequest getFetchRequest ( ) { } @ Override public SdcClientHelper getHelper ( ) { } public CountDownLatch getLatch ( ) { } @ Override public String getReasonPhrase ( ) { } @ Override public WritableByteChannel getRequestEntityChannel ( ) { } @ Override public OutputStream getRequestEntityStream ( ) { } @ Override public OutputStream getRequestHeadStream ( ) { } @ Override public ReadableByteChannel getResponseEntityChannel ( long size ) { } @ Override public InputStream getResponseEntityStream ( long size ) { } @ Override public Series < Header > getResponseHeaders ( ) { } @ Override public String getServerAddress ( ) { } @ Override public int getStatusCode ( ) throws IOException { } @ Override public Status sendRequest ( Request request ) { Status result = null ; Representation entity = ( request . isEntityAvailable ( ) ) ? request . getEntity ( ) : null ; ConnectorService connectorService = ConnectorHelper . getConnectorService ( ) ; if ( connectorService != null ) { connectorService . beforeSend ( entity ) ; } try { try { List < MessageHeader > headers = new CopyOnWriteArrayList < com . google . dataconnector . protocol . proto . SdcFrame . MessageHeader > ( ) ; for ( Header header : getRequestHeaders ( ) ) { if ( ( ! ( header . getName ( ) . equals ( HEADER_CONTENT_LENGTH ) ) ) && ( ! ( header . getName ( ) . equals ( HEADER_PROXY_AUTHORIZATION ) ) ) ) { headers . add ( MessageHeader . newBuilder ( ) . setKey ( header . getName ( ) ) . setValue ( header . getValue ( ) ) . build ( ) ) ; } } if ( ! ( GET . equals ( request . getMethod ( ) ) ) ) { headers . add ( MessageHeader . newBuilder ( ) . setKey ( "x-sdc-http-method" ) . setValue ( request . getMethod ( ) . getName ( ) ) . build ( ) ) ; } if ( entity != null ) { OutputStream requestStream = getRequestEntityStream ( ) ; if ( requestStream != null ) { entity . write ( requestStream ) ; requestStream . flush ( ) ; requestStream . close ( ) ; setFetchRequest ( FetchRequest . newBuilder ( ) . setId ( UUID . randomUUID ( ) . toString ( ) ) . setResource ( request . getResourceRef ( ) . toString ( ) ) . setStrategy ( "HTTPClient" ) . addAllHeaders ( headers ) . setContents ( ByteString . copyFrom ( this . requestEntityStream . toByteArray ( ) ) ) . build ( ) ) ; } } else { setFetchRequest ( FetchRequest . newBuilder ( ) . setId ( UUID . randomUUID ( ) . toString ( ) ) . setResource ( request . getResourceRef ( ) . toString ( ) ) . setStrategy ( "HTTPClient" ) . addAllHeaders ( headers ) . build ( ) ) ; } getConnection ( ) . sendRequest ( this ) ; if ( ! ( getLatch ( ) . await ( TIMEOUT_MS , TimeUnit . MILLISECONDS ) ) ) { result = new Status ( Status . CONNECTOR_ERROR_INTERNAL , "The<seq2seq4repair_space>calling<seq2seq4repair_space>thread<seq2seq4repair_space>timed<seq2seq4repair_space>out<seq2seq4repair_space>while<seq2seq4repair_space>waiting<seq2seq4repair_space>for<seq2seq4repair_space>a<seq2seq4repair_space>response<seq2seq4repair_space>to<seq2seq4repair_space>unblock<seq2seq4repair_space>it." ) ; } else { result = Status . valueOf ( getFetchReply ( ) . getStatus ( ) ) ; } } catch ( Exception e ) { getHelper ( ) . getLogger ( ) . log ( Level . FINE , "An<seq2seq4repair_space>unexpected<seq2seq4repair_space>error<seq2seq4repair_space>occurred<seq2seq4repair_space>during<seq2seq4repair_space>the<seq2seq4repair_space>sending<seq2seq4repair_space>of<seq2seq4repair_space>the<seq2seq4repair_space>HTTP<seq2seq4repair_space>request." , e ) ; result = new Status ( Status . CONNECTOR_ERROR_INTERNAL , e ) ; } result = new Status ( getStatusCode ( ) , getReasonPhrase ( ) ) ; } catch ( IOException ioe ) { <START_BUG> getHelper ( ) . getLogger ( ) . log ( Level . FINE , "An<seq2seq4repair_space>error<seq2seq4repair_space>occured<seq2seq4repair_space>during<seq2seq4repair_space>the<seq2seq4repair_space>communication<seq2seq4repair_space>with<seq2seq4repair_space>the<seq2seq4repair_space>remote<seq2seq4repair_space>HTTP<seq2seq4repair_space>server." , ioe ) ; <END_BUG> result = new Status ( Status . CONNECTOR_ERROR_COMMUNICATION , ioe ) ; } finally { if ( entity != null ) { entity . release ( ) ; } if ( connectorService != null ) { connectorService . afterSend ( entity ) ; } } return result ; } @ Override public void sendRequest ( Request request , Response response , Uniform callback ) throws Exception { } public void setFetchReply ( FetchReply fetchReply ) { } public void setFetchRequest ( FetchRequest fetchRequest ) { } }

Fix:
getHelper ( ) . getLogger ( ) . log ( Level . FINE , "An<seq2seq4repair_space>error<seq2seq4repair_space>occurred<seq2seq4repair_space>during<seq2seq4repair_space>the<seq2seq4repair_space>communication<seq2seq4repair_space>with<seq2seq4repair_space>the<seq2seq4repair_space>remote<seq2seq4repair_space>HTTP<seq2seq4repair_space>server." , ioe ) ;