Fix translog ops action name in channel listener (#57854)
The action name is passed to the `ChannelListener` and is used for logging purposes. Currently, we are using the incorrect action name for the translog ops listener. This commit fixes the issue.
This commit is contained in:
parent
c39a8d20cb
commit
c17121428e
|
@ -340,10 +340,9 @@ public class PeerRecoveryTargetService implements IndexEventListener {
|
|||
@Override
|
||||
public void messageReceived(final RecoveryTranslogOperationsRequest request, final TransportChannel channel,
|
||||
Task task) throws IOException {
|
||||
try (RecoveryRef recoveryRef =
|
||||
onGoingRecoveries.getRecoverySafe(request.recoveryId(), request.shardId())) {
|
||||
try (RecoveryRef recoveryRef = onGoingRecoveries.getRecoverySafe(request.recoveryId(), request.shardId())) {
|
||||
final RecoveryTarget recoveryTarget = recoveryRef.target();
|
||||
final ActionListener<Void> listener = createOrFinishListener(recoveryRef, channel, Actions.FILES_INFO, request,
|
||||
final ActionListener<Void> listener = createOrFinishListener(recoveryRef, channel, Actions.TRANSLOG_OPS, request,
|
||||
nullVal -> new RecoveryTranslogOperationsResponse(recoveryTarget.indexShard().getLocalCheckpoint()));
|
||||
if (listener == null) {
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue