Catch a few edge cases in stream allocator. (#532)

* Catch a few edge cases in stream allocator.

- More useful logging

* fire probe cluster done callback only when there is an active cluster
This commit is contained in:
Raja Subramanian
2022-03-18 20:42:15 +05:30
committed by GitHub
parent 3ce4010e89
commit d738424173
3 changed files with 48 additions and 23 deletions
+2
View File
@@ -254,6 +254,8 @@ func (s *StreamTrackerManager) addAvailableLayer(layer int32) {
layers := s.availableLayers
s.lock.Unlock()
s.logger.Debugw("available layers changed", "layers", layers)
if s.onAvailableLayersChanged != nil {
s.onAvailableLayersChanged(layers)
}