siying opened a new pull request, #42354:
URL: https://github.com/apache/spark/pull/42354

   
   ### What changes were proposed in this pull request?
   The logging level is passed into RocksDB in a correct way. 
   
   
   ### Why are the changes needed?
   We pass log4j's log level to RocksDB so that RocksDB debug log can go to 
log4j. However, we pass in log level after we create the logger. However, the 
way it is set isn't effective. This has two impacts: (1) setting DEBUG level 
don't make RocksDB generate DEBUG level logs; (2) setting WARN or ERROR level 
does prevent INFO level logging, but RocksDB still makes JNI calls to Scala, 
which is an unnecessary overhead.
   
   ### Does this PR introduce _any_ user-facing change?
   No.
   
   ### How was this patch tested?
   Manually change the log level and observe the log lines in unit tests.
   


-- 
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]

Reply via email to