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

fix(server): change the arthas bind ip #2429

Closed
wants to merge 9 commits into from

Conversation

SunnyBoy-WYH
Copy link
Contributor

@SunnyBoy-WYH SunnyBoy-WYH commented Jan 27, 2024

@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. api Changes of API feature New feature labels Jan 27, 2024
@javeme
Copy link
Contributor

javeme commented Feb 24, 2024

ci error:

[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running org.apache.hugegraph.api.ApiTestSuite
Error:  Tests run: 98, Failures: 1, Errors: 0, Skipped: 1, Time elapsed: 22.391 s <<< FAILURE! - in org.apache.hugegraph.api.ApiTestSuite
Error:  testArthasApi(org.apache.hugegraph.api.ArthasApiTest)  Time elapsed: 4.222 s  <<< FAILURE!
java.lang.AssertionError: Response with status 200 and content {"body":{"command":"version","jobId":2,"jobStatus":"TERMINATED","results":[{"jobId":2,"type":"version","version":"3.7.1"},{"jobId":2,"statusCode":0,"type":"status"}],"timeExpired":false},"sessionId":"84ec7575-e343-4d61-8b36-e0e1da8b276c","state":"SUCCEEDED"} expected:<401> but was:<200>
	at org.apache.hugegraph.api.ArthasApiTest.testArthasApi(ArthasApiTest.java:56)

@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. and removed size:XS This PR changes 0-9 lines, ignoring generated files. labels Feb 27, 2024
@SunnyBoy-WYH SunnyBoy-WYH changed the title Arthas bind ip fix(server): change the arthas bind ip Feb 27, 2024
Copy link

codecov bot commented Feb 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 66.28%. Comparing base (506850c) to head (552dcb8).

Current head 552dcb8 differs from pull request most recent head fae15ca

Please upload reports for the commit fae15ca to get more accurate results.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #2429      +/-   ##
============================================
+ Coverage     56.94%   66.28%   +9.34%     
- Complexity      827      829       +2     
============================================
  Files           612      511     -101     
  Lines         49672    42622    -7050     
  Branches       6681     5947     -734     
============================================
- Hits          28284    28251      -33     
+ Misses        18572    11563    -7009     
+ Partials       2816     2808       -8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

"0.0.0.0"
"127.0.0.1"
Copy link
Member

@imbajin imbajin Feb 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any context for it (change the IP to localhost)?

Copy link
Contributor Author

@SunnyBoy-WYH SunnyBoy-WYH Feb 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the context you can see the introduction about this issue. i think 0.0.0.0 means any ip, and arthas will set default password, sometime the ci failed.

why prefer localhost not 127.0.0.1? the config item provided by arthas named 'arthas.ip',im not sure localhost as a domain will work.


RestClient arthasApiClientWithAuth = new RestClient(ARTHAS_API_BASE_URL);
r = arthasApiClientWithAuth.post(ARTHAS_API_PATH, body);
assertResponseStatus(401, r);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we add some exception cases for invalid requests

Copy link
Contributor Author

@SunnyBoy-WYH SunnyBoy-WYH Mar 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes we will do later

# Conflicts:
#	hugegraph-server/hugegraph-test/src/main/java/org/apache/hugegraph/api/ArthasApiTest.java
@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. and removed size:S This PR changes 10-29 lines, ignoring generated files. labels Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Changes of API feature New feature size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants