Source:
<code>private void decodeMsg(Object msg) throws Throwable { final Class<?> msgClazz = msg.getClass(); if (msgClazz == NettyMessage.BufferResponse.class) { NettyMessage.BufferResponse bufferOrEvent = (NettyMessage.BufferResponse) msg; RemoteInputChannel inputChannel = inputChannels.get(bufferOrEvent.receiverId); if (inputChannel == null || inputChannel.isReleased()) { bufferOrEvent.releaseBuffer(); cancelRequestFor(bufferOrEvent.receiverId); return; } decodeBufferOrEvent(inputChannel, bufferOrEvent); } else if (msgClazz == NettyMessage.ErrorResponse.class) { NettyMessage.ErrorResponse error = (NettyMessage.ErrorResponse) msg; SocketAddress remoteAddr = ctx.channel().remoteAddress(); if (error.isFatalError()) { notifyAllChannelsOfErrorAndClose(new RemoteTransportException( "Fatal error at remote task manager '" + remoteAddr + "'.", remoteAddr, error.cause)); } else { RemoteInputChannel inputChannel = inputChannels.get(error.receiverId); if (inputChannel != null) { if (error.cause.getClass() == PartitionNotFoundException.class) { inputChannel.onFailedPartitionRequest(); } else { inputChannel.onError(new RemoteTransportException( "Error at remote task manager '" + remoteAddr + "'.", remoteAddr, error.cause)); } } } <START> } else if (msgClazz == NettyMessage.AddBacklog.class) { <END> NettyMessage.AddBacklog addBacklog = (NettyMessage.AddBacklog) msg; RemoteInputChannel inputChannel = inputChannels.get(addBacklog.receiverId); inputChannel.onSenderBacklog(addBacklog.backlog); } else { throw new IllegalStateException("Received unknown message from producer: " + msg.getClass()); } }</code><technical_language>nit: import NettyMessage.AddBacklog occurs times in this part</technical_language>

Target:
private void decodeMsg(Object msg) throws Throwable { final Class<?> msgClazz = msg.getClass(); if (msgClazz == NettyMessage.BufferResponse.class) { NettyMessage.BufferResponse bufferOrEvent = (NettyMessage.BufferResponse) msg; RemoteInputChannel inputChannel = inputChannels.get(bufferOrEvent.receiverId); if (inputChannel == null || inputChannel.isReleased()) { bufferOrEvent.releaseBuffer(); cancelRequestFor(bufferOrEvent.receiverId); return; } try { decodeBufferOrEvent(inputChannel, bufferOrEvent); } catch (Throwable t) { inputChannel.onError(t); } } else if (msgClazz == NettyMessage.ErrorResponse.class) { NettyMessage.ErrorResponse error = (NettyMessage.ErrorResponse) msg; SocketAddress remoteAddr = ctx.channel().remoteAddress(); if (error.isFatalError()) { notifyAllChannelsOfErrorAndClose(new RemoteTransportException( "Fatal error at remote task manager '" + remoteAddr + "'.", remoteAddr, error.cause)); } else { RemoteInputChannel inputChannel = inputChannels.get(error.receiverId); if (inputChannel != null) { if (error.cause.getClass() == PartitionNotFoundException.class) { inputChannel.onFailedPartitionRequest(); } else { inputChannel.onError(new RemoteTransportException( "Error at remote task manager '" + remoteAddr + "'.", remoteAddr, error.cause)); } } } } else if (msgClazz == AddBacklog.class) { AddBacklog addBacklog = (AddBacklog) msg; RemoteInputChannel inputChannel = inputChannels.get(addBacklog.receiverId); inputChannel.onSenderBacklog(addBacklog.backlog); } else { throw new IllegalStateException("Received unknown message from producer: " + msg.getClass()); } }