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

Open
wants to merge 8 commits into
base: master
Choose a base branch
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 (5cb9aad) to head (552dcb8).
Report is 7 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #2429      +/-   ##
============================================
+ Coverage     66.25%   66.28%   +0.03%     
- Complexity      827      829       +2     
============================================
  Files           511      511              
  Lines         42586    42622      +36     
  Branches       5935     5947      +12     
============================================
+ Hits          28214    28251      +37     
  Misses        11563    11563              
+ Partials       2809     2808       -1     

☔ 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

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

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:S This PR changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants