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

Add ability to override AL OMAS topic listener connection properties #6900

Merged
merged 11 commits into from
Oct 4, 2022

Conversation

popa-raluca
Copy link
Contributor

Signed-off-by: Raluca Popa raluca.popa2@ing.com

Description

This PR change the asset lineage topic connection auto-configuration processing to allow configuration properties overrides.

The connection object will be still retrieved from the paired OMAS (as defined in the "accessServiceConfig")
once the connection object is retrieved we check if "assetLineageTopicConnectionOverride" object is present in local server configuration we will override the configuraionProperties received with the local values (map)
if the "assetLineageTopicConnectionOverride" object is not present in the local configuration then everything stays as it is (connection is created based on the parameters received from the remote access server)

Related Issue(s)

Testing

Release Notes & Documentation

Additional notes

Signed-off-by: Raluca Popa <raluca.popa2@ing.com>
@lpalashevski
Copy link
Contributor

In addition further improvement: I do not like that initializeOLS call is blocking until the configuration is retrieved from the paired omas. This enforces certain deploy time rules and it is not optimal for containerized deployments.
I think the server should try, if it fails then continues with startup and run background task to retrieve the connection and start the topic connection independently. We can open issue for this enhancement separately.

@sonatype-lift
Copy link
Contributor

sonatype-lift bot commented Sep 27, 2022

⚠️ 107 God Classes were detected by Lift in this project. Visit the Lift web console for more details.

Signed-off-by: Raluca Popa <raluca.popa2@ing.com>
@popa-raluca popa-raluca marked this pull request as ready for review October 3, 2022 07:44
@popa-raluca popa-raluca merged commit 46a06c5 into odpi:master Oct 4, 2022
@planetf1 planetf1 mentioned this pull request Nov 2, 2022
31 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants