cxzl25 commented on issue #4946:
URL: https://github.com/apache/kyuubi/issues/4946#issuecomment-1596488506
> according to the code, the `initLoggerEventHandler` is executed before
`KinitAuxiliaryService `, isn't it?
Yes
So we have to ensure that `KinitAuxiliaryService` is executed first, and
then call `initLoggerEventHandler`
It might be possible to modify the code like this, but I haven't tested it,
can you verify it and create a PR?
org.apache.kyuubi.server.KyuubiServer#initialize
```scala
override def initialize(conf: KyuubiConf): Unit = synchronized {
val kinit = new KinitAuxiliaryService()
addService(kinit)
val periodicGCService = new PeriodicGCService
addService(periodicGCService)
if (conf.get(MetricsConf.METRICS_ENABLED)) {
addService(new MetricsSystem)
}
super.initialize(conf)
initLoggerEventHandler(conf)
}
```
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]