Why log a failed transfer successfully?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Why log a failed transfer successfully?

Anand Buddhdev
I'm parsing BIND logs to extract the XFR size in bytes of a zone, and
was just bitten by this sequence:

02-Apr-2015 04:27:10.393 xfer-in: transfer of './IN' from
2001:67c:2e8:5::c100:c6#53: failed to connect: timed out
02-Apr-2015 04:27:10.393 xfer-in: transfer of './IN' from
2001:67c:2e8:5::c100:c6#53: Transfer completed: 0 messages, 0 records, 0
bytes, 62.999 secs (0 bytes/s
ec)

So BIND wasn't even able to connect to the master, but subsequently
logged "Transfer completed".

Is there any logic to this that I'm missing?

Regards,
Anand
_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list

bind-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/bind-users
Reply | Threaded
Open this post in threaded view
|

Re: [BIND] Why log a failed transfer successfully?

Hugo Salgado

On 04/02/2015 05:01 AM, Anand Buddhdev wrote:

> I'm parsing BIND logs to extract the XFR size in bytes of a zone, and
> was just bitten by this sequence:
>
> 02-Apr-2015 04:27:10.393 xfer-in: transfer of './IN' from
> 2001:67c:2e8:5::c100:c6#53: failed to connect: timed out
> 02-Apr-2015 04:27:10.393 xfer-in: transfer of './IN' from
> 2001:67c:2e8:5::c100:c6#53: Transfer completed: 0 messages, 0 records, 0
> bytes, 62.999 secs (0 bytes/s
> ec)
>
> So BIND wasn't even able to connect to the master, but subsequently
> logged "Transfer completed".
>
> Is there any logic to this that I'm missing?

I want to support (if that was Anand's original idea) a better log line
in this case. We host several thousand zones as secondary service, and
provide log access to customers. I estimate a couple of questions per
week in our helpdesk about people assuming that the transfers are
working, overlooking exactly that line.

Thanks,

Hugo
_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list

bind-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/bind-users
Reply | Threaded
Open this post in threaded view
|

Re: Why log a failed transfer successfully?

Jan-Piet Mens
In reply to this post by Anand Buddhdev
> 2001:67c:2e8:5::c100:c6#53: Transfer completed: 0 messages, 0 records, 0
>
> Is there any logic to this that I'm missing?

s/completed/failed/ on error cannot be particularly difficult to
implement.

        -JP
_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list

bind-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/bind-users
Reply | Threaded
Open this post in threaded view
|

Re: Why log a failed transfer successfully?

Bob Harold

On Thu, Apr 2, 2015 at 4:05 PM, Jan-Piet Mens <[hidden email]> wrote:
> 2001:67c:2e8:5::c100:c6#53: Transfer completed: 0 messages, 0 records, 0
>
> Is there any logic to this that I'm missing?

s/completed/failed/ on error cannot be particularly difficult to
implement.

        -JP

+1 for making the log message clearer.
 


_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list

bind-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/bind-users