Skip to content

Commit

Permalink
[core] Fix missing env ID in a teardown log
Browse files Browse the repository at this point in the history
  • Loading branch information
knopers8 authored and teo committed Jul 22, 2024
1 parent 6cfc91f commit 75999d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,8 @@ func (m *RpcServer) DestroyEnvironment(cxt context.Context, req *pb.DestroyEnvir
if env.CurrentState() == "CONFIGURED" {
err = env.TryTransition(environment.MakeTransition(m.state.taskman, pb.ControlEnvironmentRequest_RESET))
if err != nil {
log.Warnf("cannot teardown environment in state %s, forcing", env.CurrentState())
log.WithField("partition", env.Id().String()).
Warnf("cannot teardown environment in state %s, forcing", env.CurrentState())
return m.doTeardownAndCleanup(env, true /*force*/, false /*keepTasks*/)
}
}
Expand Down

0 comments on commit 75999d7

Please sign in to comment.