You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by GitBox <gi...@apache.org> on 2022/08/19 09:59:25 UTC

[GitHub] [accumulo] dlmarion opened a new issue, #2885: Log4j2 Async Logging may not log Error before Process terminates

dlmarion opened a new issue, #2885:
URL: https://github.com/apache/accumulo/issues/2885

   Was setting up a new install of 2.1.0-SNAPSHOT. I added the property for the context class loader factory class to accumulo.properties with the default value. This was a mistake on my part as it sends the code down the wrong path and a NoSuchMethodException was being thrown from ClassloaderUtil as part of the server startup. The problem was that nothing was logged and all of the server processes were terminating at the same exact place. Disabling the log4j2 async logging, by commenting out [this](https://github.com/apache/accumulo/blob/main/assemble/conf/accumulo-env.sh#L107) property, enabled the exception to be logged before the process exited.
   
   I wonder if there is a way to programmatically turn on async logging after the server process initializes. 


-- 
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: notifications-unsubscribe@accumulo.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [accumulo] EdColeman commented on issue #2885: Log4j2 Async Logging may not log error before Process terminates

Posted by GitBox <gi...@apache.org>.
EdColeman commented on issue #2885:
URL: https://github.com/apache/accumulo/issues/2885#issuecomment-1220601899

   Would using stderr at places where we call exit to dump a stack trace be practical - that would eliminate the dependency on an loggers.


-- 
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: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [accumulo] dlmarion closed issue #2885: Log4j2 Async Logging may not log error before Process terminates

Posted by GitBox <gi...@apache.org>.
dlmarion closed issue #2885: Log4j2 Async Logging may not log error before Process terminates
URL: https://github.com/apache/accumulo/issues/2885


-- 
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: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [accumulo] dlmarion commented on issue #2885: Log4j2 Async Logging may not log error before Process terminates

Posted by GitBox <gi...@apache.org>.
dlmarion commented on issue #2885:
URL: https://github.com/apache/accumulo/issues/2885#issuecomment-1222242170

   Someone else reported something similar: https://issues.apache.org/jira/browse/LOG4J2-2267


-- 
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: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [accumulo] dlmarion commented on issue #2885: Log4j2 Async Logging may not log error before Process terminates

Posted by GitBox <gi...@apache.org>.
dlmarion commented on issue #2885:
URL: https://github.com/apache/accumulo/issues/2885#issuecomment-1222228677

   I think that can be done. It looks like sync and async logging can be used (ref: https://logging.apache.org/log4j/2.x/manual/async.html). But it looks like that is done per logger. I'd like to be able to configure that all `errors` are logged synchronously.


-- 
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: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org