[SERVER-72285] currentOp requests with dollar tenant cannot get operations being executed by the tenant Created: 20/Dec/22  Updated: 29/Oct/23  Resolved: 30/Jan/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.3.0-rc0

Type: Bug Priority: Major - P3
Reporter: Sophia Tan Assignee: Janna Golden
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Problem/Incident
causes SERVER-73425 Fix wrong test name in suite exclusio... Closed
Assigned Teams:
Serverless
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Server Serverless 2023-01-23, Server Serverless 2023-02-06
Participants:
Linked BF Score: 70
Story Points: 2

 Description   

"$currentOp" request with dollar tenant cannot get operations being executed by the tenant.

This issue can be observed when we execute the following jstest with NDTI dollar tenant passthrough test suite:

  • jstests/core/crud_ops_do_not_throw_locktimeout.js
  • jstests/core/currentop_waiting_for_latch.js
  • jstests/core/txns/kill_cursors_in_transaction.js
  • jstests/core/txns/kill_sessions_kills_transaction.js
  • jstests/core/fsync.js
  • jstests/core/txns/transactions_block_ddl.js

It perhaps is caused by the code which compares client user's tenant id and request's tenant id.
Actually, for other super users who are authorized for ActionType::useTenant but have empty/different tenant id, we also should get the operations which are being executed by the indicated tenant.



 Comments   
Comment by Githook User [ 27/Jan/23 ]

Author:

{'name': 'jannaerin', 'email': 'golden.janna@gmail.com', 'username': 'jannaerin'}

Message: SERVER-72285 currentOp with $tenant should see ops for same tenant
Branch: master
https://github.com/mongodb/mongo/commit/c7e367ff8605f380db6e9d721abfcaf1d6de498a

Generated at Thu Feb 08 06:21:20 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.