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

[BUG] Enable all access services - Asset Lineage OMAS service NPE #6229

Closed
1 task done
planetf1 opened this issue Feb 21, 2022 · 5 comments · Fixed by #6232
Closed
1 task done

[BUG] Enable all access services - Asset Lineage OMAS service NPE #6229

planetf1 opened this issue Feb 21, 2022 · 5 comments · Fixed by #6232
Assignees
Labels
bug Something isn't working regression Regression - ie gone backward release Work to create a new releae
Milestone

Comments

@planetf1
Copy link
Member

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Metadata server will not start due to a NPE in Asset Lineage OMAS service

Consistently getting the following exception when configuring a test environment: (scripted from a empty 'data' dir)

  • Event bus configured
  • local graph repo
  • cohort member
  • All access services enabled
  • start server

Code: Master (head 4c26396 ) - current as of 2022-02-21 1300

{"class":"SuccessMessageResponse","relatedHTTPCode":500,"exceptionClassName":"org.odpi.openmetadata.adminservices.ffdc.exception.OMAGConfigurationErrorException","exceptionCausedBy":"java.lang.NullPointerException","actionDescription":"initialize","exceptionErrorMessage":"OMAG-ADMIN-500-004 The Asset Lineage OMAS service detected an unexpected java.lang.NullPointerException exception with message Cannot invoke \"java.util.Map.get(Object)\" because \"accessServiceOptions\" is null during initialization","exceptionErrorMessageId":"OMAG-ADMIN-500-004","exceptionErrorMessageParameters":["Asset Lineage OMAS","java.lang.NullPointerException","Cannot invoke \"java.util.Map.get(Object)\" because \"accessServiceOptions\" is null"],"exceptionSystemAction":"The system is unable to start the service in the OMAG server.","exceptionUserAction":"This is likely to be either an operational or logic error. Look for other errors in the audit log.  Validate the request.  If you are stuck, raise an issue."}

No access service settings have been configured for asset lineage omas - since the 'enable all access services' option has been chosen.

Expected Behavior

  • Server should start normally
  • At worst, asset lineage should log a warning that it cannot start with default parameters, but should not prevent startup of other access servers - since if it does, the 'enable all access services' call is not very useful

Workaround (to be tested) is to enable minimal access services specifically

Steps To Reproduce

see above

Environment

- Egeria:
- OS:
- Java:
- Browser (for UI issues):
- Additional connectors and integration:

Any Further Information?

none

@planetf1 planetf1 added bug Something isn't working triage New bug/issue which needs checking & assigning labels Feb 21, 2022
@planetf1
Copy link
Member Author

FAO @lpalashevski @mandy-chessell

@planetf1
Copy link
Member Author

This also breaks the 'egeria-base' helm chart, and the Egeria Dojos - HOWEVER the docs guide the user to run 'released' versions, which are still ok. This will be an issue for the 3.6 release however (or can be tested now by adding --devel to the chart install)

@planetf1 planetf1 added this to the 3.6 milestone Feb 21, 2022
@planetf1 planetf1 added regression Regression - ie gone backward release Work to create a new releae and removed triage New bug/issue which needs checking & assigning labels Feb 21, 2022
@planetf1
Copy link
Member Author

This regression is likely to have been introduced in ~ last 10 days

@mandy-chessell mandy-chessell changed the title [BUG] Enable all access services - open lineage service NPE [BUG] Enable all access services - Asset Lineage OMAS service NPE Feb 21, 2022
@davidradl
Copy link
Member

I assume that supportedZones is mandatory for the current processing- and it is not being supplied. I guess there are options

  • fail start all access services if we cannot start any of the access services because a mandatory option has not been specified
  • remove start all access services API
  • supply enough parameters to start all access services - but only have the ability to specify one option for all the access services - this is what the server author ui does.
  • all the lineage service to start but not be usable until its mandatory options have been supplied. Is it really started in this case?

@lpalashevski lpalashevski self-assigned this Feb 22, 2022
@planetf1
Copy link
Member Author

This also affects the coco pharma labs

                Starting server cocoMDS2 ...
                   ...cocoMDS2 failed to start
                       error message is: OMAG-ADMIN-500-004 The Asset Lineage OMAS service detected an unexpected java.lang.NullPointerException exception with message null during initialization

lpalashevski pushed a commit to lpalashevski/egeria that referenced this issue Feb 23, 2022
Signed-off-by: Ljupcho Palashevski <ljupcho.palashevski@ing.com>
lpalashevski pushed a commit that referenced this issue Feb 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working regression Regression - ie gone backward release Work to create a new releae
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants