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

Local UT would fail caused by IP used by Nebula JAVA client is not accessible #59

Closed
spike-liu opened this issue Jul 7, 2022 · 4 comments

Comments

@spike-liu
Copy link
Contributor

  • Nebula Java Client would get storage server IP which is defined in docker network environment.
  • Local development is isolated from docker network environment.

Read data from Flink would fail in UT. The only way I can figure out is running UT in the same docker network environment. However it would cause debug codes impossible.

@Nicole00 Would you please enlighten us here?

@liuxiaocs7
Copy link
Contributor

liuxiaocs7 commented Jul 7, 2022

The disscussion will help.

@spike-liu
Copy link
Contributor Author

The disscussion will help.

Thanks, Liu.

@wey-gu
Copy link

wey-gu commented Jul 7, 2022

I understand that you would like to leverage your local desktop's IDE on debugging things, while the current design required a docker spawned nebula cluster to actually run java client in same docker network with nebula cluster.

The hack way would be(as java storage client get list of storaged from meta, that is domain name like storaged0) we could optionally do ssh port forwarding + dns hosts to make storaged0 being resolved to the remote server's storaged docker instance(with 9779 being exposed, too)... which is not actually practical.

I would suggest instead deploying a cluster without docker for now with the host configured as an externally accessible address.

@spike-liu
Copy link
Contributor Author

I understand that you would like to leverage your local desktop's IDE on debugging things, while the current design required a docker spawned nebula cluster to actually run java client in same docker network with nebula cluster.

The hack way would be(as java storage client get list of storaged from meta, that is domain name like storaged0) we could optionally do ssh port forwarding + dns hosts to make storaged0 being resolved to the remote server's storaged docker instance(with 9779 being exposed, too)... which is not actually practical.

I would suggest instead deploying a cluster without docker for now with the host configured as an externally accessible address.

Thank you so much. You really save my day!

Only god knows how many efforts I have tried already. Such as updating ip during debug, running UT in docker, etc...however no luck so far.

I would try your solution.

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

No branches or pull requests

3 participants