Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: Cannot read properties of undefined (reading 'resurrectTimeout') #156

Open
pmuellr opened this issue Oct 15, 2024 · 2 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@pmuellr
Copy link
Member

pmuellr commented Oct 15, 2024

On Kibana main, using @elastic/transport 8.7.0

We've started to see some errors with resurrectTimeout like the following: Cannot read properties of undefined (reading 'resurrectTimeout'). These seem to have started when we changed our access patterns against an index - different operations and different frequency. Haven't yet looked into any other context on them, but figured I'd go ahead and at least post here that we are seeing them.

@pmuellr
Copy link
Member Author

pmuellr commented Oct 15, 2024

Issue we are tracking within Kibana: elastic/kibana#196379

@pmuellr
Copy link
Member Author

pmuellr commented Oct 15, 2024

Took a quick peek at the code, seems like it's going to be one of the references after this.connections.find(), which can return undefined. Presumably there's a race condition somewhere removing the connection? I saw two references like this, in that module.
This would align with the changes we made, where we are making ES calls at a faster rate than before (when we didn't see this often). More chances for a race.

const connection = this.connections.find(c => c.id === this.dead[0]) as Connection
if (opts.now < connection.resurrectTimeout) {
debug('Nothing to resurrect')
return
}

@JoshMock JoshMock added the bug Something isn't working label Oct 17, 2024
@JoshMock JoshMock self-assigned this Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants