pbacsko commented on code in PR #522:
URL: https://github.com/apache/yunikorn-core/pull/522#discussion_r1147777663
##########
pkg/scheduler/partition_manager.go:
##########
@@ -120,6 +121,12 @@ func (manager *partitionManager) cleanQueues(queue
*objects.Queue) {
log.Logger().Debug("unexpected failure removing
the queue",
zap.String("partitionName",
manager.pc.Name),
zap.String("queue", queue.QueuePath))
+ } else {
+ // we should clean the queue tracker for ths
deleted queue
+ log.Logger().Debug("removing queueTracker",
+ zap.String("queueName",
queue.QueuePath),
+ zap.String("partitionName",
manager.pc.Name))
+
ugm.GetUserManager().CleanDeletedQueueTrackers(queue.QueuePath)
Review Comment:
Minor simplification:
```
if queue.IsEmpty() {
// all OK update the queue hierarchy and partition
if !queue.RemoveQueue() {
log.Logger().Debug("unexpected failure removing
the queue",
zap.String("partitionName",
manager.pc.Name),
zap.String("queue", queue.QueuePath))
return
}
log.Logger().Debug("removing queueTracker",
zap.String("queueName", queue.QueuePath),
zap.String("partitionName", manager.pc.Name))
ugm.GetUserManager().CleanDeletedQueueTrackers(queue.QueuePath)
} ...
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]