Xiang Fu
Xiang Fu
Xiang Fu
XD (Stripe)
03/16/2021, 7:21 PMMetricsRegistryRegistrationListener
makes the server start process hang, without any clue in our log to trace itXD (Stripe)
03/16/2021, 7:22 PMXD (Stripe)
03/16/2021, 7:22 PMXD (Stripe)
03/16/2021, 7:23 PMjstack
does not helpXD (Stripe)
03/16/2021, 7:24 PMXD (Stripe)
03/16/2021, 7:26 PMXD (Stripe)
03/16/2021, 7:29 PMJack
03/16/2021, 8:06 PMPinotMetricsRegistryListener
. While PinotMetricsRegistryListener
is just a wrapper. The wrapper’s method won’t be registered to the actual registry; instead, it’s the actual yammer’s listener which methods will be invoked. That’s why I think you want to add the method like void onMetricsRegistryRegistered(MetricsRegistry metricsRegistry);
. While that’ll make the repo unclean, because we still have to pull in the actual yammer dependencies to pinot’s code. One thing I’d suggest is to initialize an actual Yammer listener and pass it as the param to the constructor.Jack
03/16/2021, 8:31 PM@Override
public void onMetricsRegistryRegistered(final PinotMetricsRegistry metricsRegistry) {
MetricsRegistryListener metricsRegistryListener = new MetricsRegistryListener() {
@Override
public void onMetricAdded(MetricName metricName, Metric metric) {
// do sth
}
}
@Override
public void onMetricRemoved(MetricName metricName) {
// do sth
}
};
metricsRegistry.addListener(new YammerMetricsRegistryListener(metricsRegistryListener));
}
XD (Stripe)
03/16/2021, 10:02 PMJack
03/16/2021, 10:04 PMDavi Navarro
10/21/2021, 4:54 AM