[pulsar-io] fix source stats exposing empty exceptions list
### Motivation
`pulsar-admin sources status` always have empty list of `latestSystemExceptions` and `latestSourceExceptions`. With some code digging, it turns out that it always returns `EMPTY_QUEUE`.
@@ -351,12 +351,12 @@ public class SourceStatsManager extends ComponentStatsManager {
@Override
public EvictingQueue<InstanceCommunication.FunctionStatus.ExceptionInformation> getLatestSystemExceptions() {
- return EMPTY_QUEUE;
+ return latestSystemExceptions;
}
@Override
public EvictingQueue<InstanceCommunication.FunctionStatus.ExceptionInformation> getLatestSourceExceptions() {
- return EMPTY_QUEUE;
+ return latestSourceExceptions;
}
@Override
