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

   ### 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
   
   
https://github.com/apache/doris/commit/be11b484070c1ecf2b48d20e98f333b293c2c8a5
   
   ### What's Wrong?
   
   environment:
   my test cluster have three BE which is A, B, C. and set tags as bellow:
   alter system modify backend A set ("tag.location" = "default");
   alter system modify backend B set ("tag.location" = "B");
   alter system modify backend C set ("tag.location" = "C");
   and i have create  two user: user_b and user_c .
   and set property for user as bellow:
   set property for 'B' 'resource_tags.location' = 'B,default';
   set property for 'C' 'resource_tags.location' = 'C,default';
   and create table as :
   `create table tag_B_Table
   (k1 int, k2 int)
   distributed by hash(k1) buckets 1
   properties(
       "replication_allocation"="tag.location.B:1"
   )`
   issue1:
   when i logo in use user_c and execute:
   `insert into tag_B_Table(k1 ,k2 ) VALUES(1,2);`
   it got successful.but i think it should raise an exception like `replicas. 
err: Replica on backend 10068 with tag {"location" : "B"}, which is not in 
user's resource tags: [{"location" : "default"}, {"location" : "C"}]`
   
   issue2:
   when i logo in use user_c and execute:
   `create table tag_B_Table_new
   (k1 int, k2 int)
   distributed by hash(k1) buckets 1
   properties(
       "replication_allocation"="tag.location.B:1"
   )`
   it got successful.but i think it should raise an exception like `replicas. 
err: Replica on backend 10068 with tag {"location" : "B"}, which is not in 
user's resource tags: [{"location" : "default"}, {"location" : "C"}]`
   
   issue3:
   when i logo in use user_c and execute:
   `select * from tag_B_Table_new;`
   it got successful.but i think it should raise an exception like `replicas. 
err: Replica on backend 10068 with tag {"location" : "B"}, which is not in 
user's resource tags: [{"location" : "default"}, {"location" : "C"}]`
   
   
   ### What You Expected?
   
   uer can only operation resource tags which set property for the 
user,including select , insert ,delete,create , alter and drop.
   
   
   ### 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-unsubscr...@doris.apache.org.apache.org

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


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

Reply via email to