danhuawang opened a new issue, #9168:
URL: https://github.com/apache/gravitino/issues/9168
### What would you like to be improved?
a normal user name "user1" had all privileges but he's not the service admin
or metalake owner.
I call the list roles api three times as following and print the response
time:
1st call:
```
curl -X GET -H "Content-Type: application/json" -H "Authorization: Basic
dXNlcjE6dGVzdAo=" -w "\n\nResponse Time:\n- Time namelookup:
%{time_namelookup}s\n- Time connect: %{time_connect}s\n- Time appconnect:
%{time_appconnect}s\n- Time pretransfer: %{time_pretransfer}s\n- Time
starttransfer: %{time_starttransfer}s\n- Time total: %{time_total}s\n"
http://10.0.4.218:8090/api/metalakes/pm/roles
{"code":0,"names":["RoleALLAllow","role-a"]}
Response Time:
- Time namelookup: 0.000035s
- Time connect: 0.001457s
- Time appconnect: 0.000000s
- Time pretransfer: 0.001510s
- Time starttransfer: 15.936170s
- Time total: 15.936217s
```
2nd call:
```
curl -X GET -H "Content-Type: application/json" -H "Authorization: Basic
dXNlcjE6dGVzdAo=" -w "\n\nResponse Time:\n- Time namelookup:
%{time_namelookup}s\n- Time connect: %{time_connect}s\n- Time appconnect:
%{time_appconnect}s\n- Time pretransfer: %{time_pretransfer}s\n- Time
starttransfer: %{time_starttransfer}s\n- Time total: %{time_total}s\n"
http://10.0.4.218:8090/api/metalakes/pm/roles
{"code":0,"names":["RoleALLAllow","role-a"]}
Response Time:
- Time namelookup: 0.000035s
- Time connect: 0.001803s
- Time appconnect: 0.000000s
- Time pretransfer: 0.001958s
- Time starttransfer: 5.532947s
- Time total: 5.533010s
```
3rd call:
```
curl -X GET -H "Content-Type: application/json" -H "Authorization: Basic
dXNlcjE6dGVzdAo=" -w "\n\nResponse Time:\n- Time namelookup:
%{time_namelookup}s\n- Time connect: %{time_connect}s\n- Time appconnect:
%{time_appconnect}s\n- Time pretransfer: %{time_pretransfer}s\n- Time
starttransfer: %{time_starttransfer}s\n- Time total: %{time_total}s\n"
http://10.0.4.218:8090/api/metalakes/pm/roles
{"code":0,"names":["RoleALLAllow","role-a"]}
Response Time:
- Time namelookup: 0.000035s
- Time connect: 0.001400s
- Time appconnect: 0.000000s
- Time pretransfer: 0.001457s
- Time starttransfer: 5.260690s
- Time total: 5.260748s
```
[20251118-085537.html](https://github.com/user-attachments/files/23601788/20251118-085537.html)
### How should we improve?
_No response_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]