Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-3370

Allow passing bypassEmptyTsReplacement via BulkWrite

    • Type: Icon: New Feature New Feature
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Go Drivers
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      SERVER-88750 added an experimental bypassEmptyTsReplacement flag that tells the server to accept Timestamp(0, 0) as a literal rather than replacing it with current time. This is needed to solve certain data consistency problems in both mongosync and mongorestore. (See CA-34 for details.)

      mongorestore uses the driver's BulkWrite interface. As best I can tell that interface offers no way to pass bypassEmptyTsReplacement to the server; thus, we can't actually fix the consistency problem without help from the driver.

      I suspect this would most sensibly be implemented as a generic means of passing custom parameters to the underlying insert, replace, etc.

            Assignee:
            Unassigned Unassigned
            Reporter:
            felipe.gasper@mongodb.com Felipe Gasper
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: