Debugging : Failure in getting CheckedEntry from the core pool #1153
Unanswered
abhinavsingh-swiggy
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hey @abhinavsingh-swiggy, Just from reading the logs it's a bit difficult to move forward. The only info we can get is what you already concluded - the returned value from
Do you have a repro for this? I can help debug the issue if you have a small repro for this issue. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
One of our logging attempts failed to get a CheckedEntry from the Pool.
Here's the panic logs:
We later
recover()
this panic and try to log it, but that threw another panic.We get a
zap.Field
using:and then log it using https://github.com/uber-go/zap/blob/master/logger.go#L227
Here's the panic logs:
I searched the
Discussions
for this issue, but could not find anything on this.The Pool's Get method mentions that:
If Get would otherwise return nil and p.New is non-nil, Get returns the result of calling p.New.
, how the first panic was because the returned values was tried to be converted toCheckedEntry
but failed due toTypeAssertionError
? What to look for in debugging this further, please help.The zap version is: v1.16.0
The Go version is: 1.14
Beta Was this translation helpful? Give feedback.
All reactions