Discussion:
sometimes I get "unconsumed deferred in error state, make sure you're using `catch`"
David Smith
2015-07-13 09:57:27 UTC
Permalink
I have a crawler that has a deferred/catch block. This block works as I
can see from the logs that I get the error reporting I want from the
exception that I expect. However we have noticed that we get some warnings
every now and again of "unconsumed deferred in error state, make sure
you're using `catch`". The error is a normal crawler error with the same
info as other errors that have been caught so I cannot understand how it is
not caught? I presume that it is an application error however I would like
some advice as to how this might happen for some errors and not others when
the Exceptions are the same?
--
You received this message because you are subscribed to the Google Groups "Aleph" group.
To unsubscribe from this group and stop receiving emails from it, send an email to aleph-lib+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Zach Tellman
2015-07-13 15:26:35 UTC
Permalink
Hey David,

The "unconsumed deferred" error is because when GC is run, there's a
deferred value in an error state that was never looked at. These logging
deferred values are more expensive in GC than normal ones, so only 1 in
1000 will do this sort of logging (i.e. this is happening more often than
your logs would indicate). I can't help more without some code to look at.

Zach
Post by David Smith
I have a crawler that has a deferred/catch block. This block works as I
can see from the logs that I get the error reporting I want from the
exception that I expect. However we have noticed that we get some warnings
every now and again of "unconsumed deferred in error state, make sure
you're using `catch`". The error is a normal crawler error with the same
info as other errors that have been caught so I cannot understand how it is
not caught? I presume that it is an application error however I would like
some advice as to how this might happen for some errors and not others when
the Exceptions are the same?
--
You received this message because you are subscribed to the Google Groups "Aleph" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Aleph" group.
To unsubscribe from this group and stop receiving emails from it, send an email to aleph-lib+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...