empiredan opened a new issue, #1807:
URL: https://github.com/apache/incubator-pegasus/issues/1807

   While some options are loaded from configuration file with invalid values, 
all of them should be found by flags' individual and grouped validators and the 
process should be terminated by `abort()`.
   
   However, after the options were set with invalid values in configuration 
file for test, the process was not terminated, and there were also not any 
error log.
   
   By checking the code, it is found that flags' validation, for both 
individuals and groups, are actually run normally and correctly. The problem is 
that the loading for options happens before the logging is initialized. At that 
time, `simple_logger` has not been created. Default logger, i.e. 
`screen_logger`, would be used. Therefore, once invalid values are found, 
`screen_logger::dsn_log` would be called. However, this function is empty, thus 
there would not be any logging message being printed; and the process would 
never be terminated due to fatal error.
   
   According to this analysis, once any assertion, such as `CHECK` or 
`CHECK_EQ`, would fail to be executed for the invalid values: never print any 
logging message and terminate the process.


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