You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "lovingfeel (via GitHub)" <gi...@apache.org> on 2023/06/15 07:59:14 UTC

[GitHub] [doris] lovingfeel opened a new issue, #20847: Doris 普通账户给sql设置 traceId, 不能用这个账户获取queryID,要用root账户就才能获取queryID[Bug]

lovingfeel opened a new issue, #20847:
URL: https://github.com/apache/doris/issues/20847

   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no similar issues.
   
   
   ### Version
   
    版本 selectdb_doris_1.2.0.1-x86_64-avx2
   
   ### What's Wrong?
   
   先用dwbuilder_dev账号 执行 了如下两个命令:
   
   set session_context= "trace_id:653234"
   select sleep(1000)  ;
   再发送http get请求 http://xxxx:8050/rest/v2/manager/query/trace_id/653234 去获取queryID,
   用普通账户dwbuilder_dev 获取的结果:
   {“msg”:“Bad Request”,“code”:403,“data”:“not found query id”,“count”:0}
   
   用root账户 就能获取到正确的结果,如下所示,这是bug吗
   {“msg”:“success”,“code”:0,“data”:“e59c658bc1cd4a3a-9d8fc9e8036b95a7”,“count”:0}
   
   ### What You Expected?
   
   希望普通账户dwbuilder_dev 能用trace_id 获取到queryID,而不是用root账户
   
   ### How to Reproduce?
   
   _No response_
   
   ### Anything Else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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: commits-unsubscribe@doris.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


[GitHub] [doris] hechao-ustc commented on issue #20847: Doris 普通账户给sql设置 traceId, 不能用这个账户获取queryID,要用root账户就才能获取queryID[Bug]

Posted by "hechao-ustc (via GitHub)" <gi...@apache.org>.
hechao-ustc commented on issue #20847:
URL: https://github.com/apache/doris/issues/20847#issuecomment-1592820983

   你应该需要给普通账户添加相关的权限,可以看下这个文档:https://doris.apache.org/zh-CN/docs/dev/admin-manual/privilege-ldap/user-privilege


-- 
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: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org