[SERVER-70139] listCollection returns duplicate view names Created: 30/Sep/22 Updated: 29/Oct/23 Resolved: 15/Dec/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 5.0.15, 6.0.4, 6.2.0-rc5, 6.3.0-rc0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Tommaso Tocci | Assignee: | Yuhong Zhang |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||
| Issue Links: |
|
||||
| Backwards Compatibility: | Fully Compatible | ||||
| Operating System: | ALL | ||||
| Backport Requested: |
v6.2, v6.0, v5.0
|
||||
| Steps To Reproduce: | Applies the provided patch ( repro_multiple_views_same_nss.patch
|
||||
| Sprint: | Execution Team 2022-11-14, Execution Team 2022-12-12, Execution Team 2022-11-28, Execution Team 2022-12-26 | ||||
| Participants: | |||||
| Description |
|
While experimenting with a new FSM test I ended up with two views in the local catalog that have the same name.
There are two entries for coll_1 one of type timeseries and the other is of type view |
| Comments |
| Comment by Githook User [ 05/Jan/23 ] |
|
Author: {'name': 'Yuhong Zhang', 'email': 'yuhong.zhang@mongodb.com', 'username': 'YuhongZhang98'}Message: (cherry picked from commit 6fc43f3993103d5575cf798c829db59b35170f2e) |
| Comment by Githook User [ 04/Jan/23 ] |
|
Author: {'name': 'Yuhong Zhang', 'email': 'yuhong.zhang@mongodb.com', 'username': 'YuhongZhang98'}Message: (cherry picked from commit 6fc43f3993103d5575cf798c829db59b35170f2e) |
| Comment by Githook User [ 03/Jan/23 ] |
|
Author: {'name': 'Yuhong Zhang', 'email': 'yuhong.zhang@mongodb.com', 'username': 'YuhongZhang98'}Message: (cherry picked from commit 6fc43f3993103d5575cf798c829db59b35170f2e) |
| Comment by Githook User [ 15/Dec/22 ] |
|
Author: {'name': 'Yuhong Zhang', 'email': 'yuhong.zhang@mongodb.com', 'username': 'YuhongZhang98'}Message: |
| Comment by Yuhong Zhang [ 14/Dec/22 ] |
|
The issue was listCollection didn't check if a view with a matching name to a buckets collection is actually a time-series collection. As a result, we inserted the entry of the time-series view when we see the buckets collection, and the actual view itself again when we see the view. |