weixin_39634132 2020-11-29 16:52
浏览 0

raft: Set a timeout when starting raft-transport

Description of change

We were seeing a problem where the raft worker would occasionally hang during shutdown, and looking at a goroutine dump of the hung agent and experimenting with a similar situation extracted from a test that sometimes hangs in the same way lead to the discovery that no timeout was being set on the transport. The worker passes the timeout value from its config into the transport, but the manifold doesn't initialise it.

QA steps

I haven't managed to directly reproduce the hang in an agent, so I haven't verified this other than in the test scenario. But it passes a smoke test: * Bootstrap and enable HA. * Upgrade the controller so it shuts down and starts again. * The upgrade completes successfully.

Documentation changes

None.

该提问来源于开源项目:juju/juju

  • 写回答

5条回答 默认 最新

  • weixin_39634132 2020-11-29 16:52
    关注

    Yeah, I think you're right - bumped it up to 30s.

    评论

报告相同问题?