Skip to content

ISSUE-960: - #988

Merged
harshach merged 3 commits into
open-metadata:mainfrom
vijaypm:issue-960
Nov 1, 2021
Merged

harshach merged 3 commits into
open-metadata:mainfrom
vijaypm:issue-960

Conversation

@vijaypm

@vijaypm vijaypm commented Oct 31, 2021

Copy link
Copy Markdown
Contributor

Describe your changes :

Fixed Integration test for Hive and updated documented with list of pip packages. This PR closes #960

Type of change :

  • Bug fix
  • Documentation

Checklist:

  • I have read the CONTRIBUTING document.
  • I have performed a self-review of my own.
  • I have tagged my reviewers below.
  • I have commented on my code, particularly in hard-to-understand areas.
  • My changes generate no new warnings.
  • I have added tests that prove my fix is effective or that my feature works.
  • All new and existing tests passed.

Reviewers

Ingestion: @harshach @ayush-shah @pmbrull

@pmbrull

pmbrull commented Oct 31, 2021

Copy link
Copy Markdown
Member

Hi @vijaypm, thanks for tackling this.

Regarding the is_responsive function, it is interesting to first check that the endpoint works before trying to run the tests. However, instead of trying to connect through a socket, it might be cleaner to use the healthcheck endpoint that comes with the API at http://localhost:8585/api/v1/health-check.

Wdyt? This way you can directly use python requests and check for a 200.

@vijaypm

vijaypm commented Oct 31, 2021

Copy link
Copy Markdown
Contributor Author

@pmbrull good point. I think we need two separate mechanisms - using 'requests' to test whether the metadata service http port is responsive or not, and 'socket' to test whether the hive2 port is open or not.
I'll revert the 'is_responsive' method to use requests to test for http responsiveness, and I'll add a new method 'is_port_open' to use socket to test whether a port is open or not.

@harshach
harshach self-requested a review October 31, 2021 15:24
@vijaypm

vijaypm commented Nov 1, 2021

Copy link
Copy Markdown
Contributor Author

Btw, I looked into doing a GET on the healthcheck api instead of just the service endpoint. The challenge with using the healthcheck is that the healthcheck fails even if ingestion is working perfectly fine. Since these integration tests are exercising the ingestion api, I assume they are sufficient for now.

@pmbrull

pmbrull commented Nov 1, 2021 •

Copy link
Copy Markdown
Member

Btw, I looked into doing a GET on the healthcheck api instead of just the service endpoint. The challenge with using the healthcheck is that the healthcheck fails even if ingestion is working perfectly fine. Since these integration tests are exercising the ingestion api, I assume they are sufficient for now.

Yep thats a good point. Yesterday I noticed some issues with the healthcheck although the REST was working correctly. Maybe @harshach can give us a hint here on might be wrong. If needed I can open an issue, but would be interesting to have a small troubleshooting guide on what to check if the API reports to be unhealthy.

Thanks @harshach for fixing #1007. @vijaypm we should be good to have the healthcheck now!

Thanks!

@harshach

harshach commented Nov 1, 2021

Copy link
Copy Markdown
Collaborator

Thanks @pmbrull . @vijaypm can you please use the health check api. We can merge it in after

@harshach

harshach commented Nov 1, 2021

Copy link
Copy Markdown
Collaborator

Thanks for handling this @vijaypm . Looks Great!

@harshach
harshach merged commit 5d79617 into open-metadata:main Nov 1, 2021
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.

Integration tests for Hive is broken

3 participants