Skip to content

fix missed etcd unregister data case for an existing container in container proxy #5390

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

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,12 @@ class FunctionPullingContainerProxy(
if (runningActivations.isEmpty) {
logging.info(this, s"The Client closed in state: $stateName, action: ${data.action}")
// Stop ContainerProxy(ActivationClientProxy will stop also when send ClientClosed to ContainerProxy).
cleanUp(data.container, None, false)
cleanUp(
data.container,
data.invocationNamespace,
data.action.fullyQualifiedName(withVersion = true),
data.action.rev,
None)
} else {
logging.info(
this,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -961,7 +961,7 @@ class FunctionPullingContainerProxyTests
}
client.send(machine, ClientClosed)

probe.expectMsgAllOf(ContainerRemoved(false), Transition(machine, Running, Removing))
probe.expectMsgAllOf(ContainerRemoved(true), Transition(machine, Running, Removing))

awaitAssert {
factory.calls should have size 1
Expand Down Expand Up @@ -1614,7 +1614,7 @@ class FunctionPullingContainerProxyTests
client.expectMsg(GracefulShutdown)
client.send(machine, ClientClosed)

probe.expectMsgAllOf(ContainerRemoved(false), Transition(machine, Running, Removing))
probe.expectMsgAllOf(ContainerRemoved(true), Transition(machine, Running, Removing))

awaitAssert {
factory.calls should have size 1
Expand Down