[SERVER-74642] Log additional information about the oplog entry that generated a document or index key when printing metadata Created: 06/Mar/23 Updated: 29/Oct/23 Resolved: 08/Mar/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 7.0.0-rc0, 5.0.16, 6.0.6, 6.3.0-rc2 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Dan Larkin-York | Assignee: | Benety Goh |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | validation-logging | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||||||||||||||||||||||
| Backport Requested: |
v6.3, v6.0, v5.0
|
||||||||||||||||||||||||||||||||||||||||
| Sprint: | Execution Team 2023-03-20 | ||||||||||||||||||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||||||||||||||||||
| Description |
|
When we print metadata for a record or index entry, we have the have the timestamp that last touched that value (stored in the startDurableTs variable). We would like to surface some additional information about the write, namely some data about the oplog entry associated with that timestamp, if the entry is still available. If redaction works correctly with oplog entries, then we can likely just log the full entry; however, redaction generally expects a user document, not an oplog entry, so it may not work as expected. If that's the case, we should instead determine which information is safe to log, such as the entry type, and possibly the "shape" of the operation. |
| Comments |
| Comment by Githook User [ 16/Mar/23 ] |
|
Author: {'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}Message: (cherry picked from commit bb2e76b99df5c766260d4e47f54f5445a63853cf) |
| Comment by Githook User [ 16/Mar/23 ] |
|
Author: {'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}Message: (cherry picked from commit 6174b2264ea9f184347b757045416181ebfe7d09) |
| Comment by Githook User [ 16/Mar/23 ] |
|
Author: {'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}Message: (cherry picked from commit 0c581b504fe1fde434ad4f0c5793751d86a373f8) |
| Comment by Githook User [ 16/Mar/23 ] |
|
Author: {'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}Message: (cherry picked from commit afc92009ae97b27497e140f98592efb202fa14a5) |
| Comment by Githook User [ 16/Mar/23 ] |
|
Author: {'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}Message: (cherry picked from commit bb2e76b99df5c766260d4e47f54f5445a63853cf) |
| Comment by Githook User [ 16/Mar/23 ] |
|
Author: {'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}Message: |
| Comment by Githook User [ 16/Mar/23 ] |
|
Author: {'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}Message: (cherry picked from commit 0c581b504fe1fde434ad4f0c5793751d86a373f8) |
| Comment by Githook User [ 16/Mar/23 ] |
|
Author: {'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}Message: (cherry picked from commit afc92009ae97b27497e140f98592efb202fa14a5) |
| Comment by Githook User [ 16/Mar/23 ] |
|
Author: {'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}Message: (cherry picked from commit bb2e76b99df5c766260d4e47f54f5445a63853cf) |
| Comment by Githook User [ 16/Mar/23 ] |
|
Author: {'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}Message: (cherry picked from commit 6174b2264ea9f184347b757045416181ebfe7d09) |
| Comment by Githook User [ 16/Mar/23 ] |
|
Author: {'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}Message: (cherry picked from commit 0c581b504fe1fde434ad4f0c5793751d86a373f8) |
| Comment by Githook User [ 16/Mar/23 ] |
|
Author: {'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}Message: (cherry picked from commit afc92009ae97b27497e140f98592efb202fa14a5) |
| Comment by Githook User [ 08/Mar/23 ] |
|
Author: {'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}Message: |
| Comment by Benety Goh [ 08/Mar/23 ] |
|
Author: {'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}Message: (commit message referenced |
| Comment by Githook User [ 08/Mar/23 ] |
|
Author: {'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}Message: |
| Comment by Githook User [ 08/Mar/23 ] |
|
Author: {'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}Message: |