Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AMBARI-25883: init function of InitializerModule called twice #3656

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

rzuo
Copy link
Contributor

@rzuo rzuo commented Mar 5, 2023

init function of InitializerModule is called twice.

The first call is within constructor of InitializerModule, the second call is main() in main.py.

As the comments said, the second call is to see exceptions/errors of initialization.

init data, once loggers are setup to see exceptions/errors of initialization.
initializer_module.init()

This issue is to fix it, and make InitializerModule.init() call only once.

What changes were proposed in this pull request?

(Please fill in changes proposed in this fix)

How was this patch tested?

(Please explain how this patch was tested. Ex: unit tests, manual tests)
(If this patch involves UI changes, please attach a screen-shot; otherwise, remove this)

Please review Ambari Contributing Guide before opening a pull request.

…lizerModule.init();

2. extract the option and logger setup from main() to two individual functions, and put the invoke of these two functions before InitializerModule constructed;
@rzuo rzuo changed the title init function of InitializerModule called twice AMBARI-25883 init function of InitializerModule called twice Mar 5, 2023
@rzuo rzuo changed the title AMBARI-25883 init function of InitializerModule called twice AMBARI-25883: init function of InitializerModule called twice Mar 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant