[SERVER-70354] File Path on WiredTiger Error with Trailing Slash on dbPath Created: 07/Oct/22 Updated: 29/Oct/23 Resolved: 16/Oct/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 7.2.0-rc0 |
| Type: | Improvement | Priority: | Minor - P4 |
| Reporter: | Ronan Merrick | Assignee: | David Dominguez Sal |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | auto-reverted, neweng | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Assigned Teams: |
Storage Execution
|
||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||
| Sprint: | Execution EMEA Team 2023-10-16, Execution EMEA Team 2023-10-30 | ||||||||||||
| Participants: | |||||||||||||
| Linked BF Score: | 35 | ||||||||||||
| Description |
|
If a database file does not exist, accidentally deleted say, we show an error similar to the following:
In this case my dbPath was /Users/ronan.merrick/test/data/rs1/db/ and I was using directoryPerDB. The error message says the the file /Users/ronan.merrick/test/data/rs1/db//test/collection-19-1350638838509104517.wt could not be found. Note the double-slash between the dbPath and the db folder for the file:
If there is no trailing slash in dbPath the double slash isn't present in the file path in the log message
I think it would be better if we removed the double-slash if there is a trailing slash on dbPath. It can be misleading and can make you think there is an issue with an incorrect path I came across this on a case with v4.2, but it appears to be the same in v6.0:
|
| Comments |
| Comment by Githook User [ 16/Oct/23 ] |
|
Author: {'name': 'David Dominguez-Sal', 'email': 'david.dominguez@mongodb.com', 'username': ''}Message: |
| Comment by David Dominguez Sal [ 16/Oct/23 ] |
|
Normalized parameters. Newer version of the code does not depend on filesystem header, which is not fully supported in MacOS |
| Comment by David Dominguez Sal [ 13/Oct/23 ] |
|
Fixing unsupported C++17 in MacOS |
| Comment by Githook User [ 11/Oct/23 ] |
|
Author: {'name': 'auto-revert-processor', 'email': 'dev-prod-dag@mongodb.com', 'username': ''}Message: Revert " This reverts commit fc174d081bdd6a5178cc888e6f0309d23504b4df. |
| Comment by Githook User [ 11/Oct/23 ] |
|
Author: {'name': 'David Dominguez-Sal', 'email': 'david.dominguez@mongodb.com', 'username': ''}Message: |
| Comment by Iryna Zhuravlova [ 17/Oct/22 ] |
|
Reassigning this from SDP, the linked issue was on Storage Execution. Feel free to pass it on to the team who can work on it. |