Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-34100

Make the Chunk object not expose implementation details of the ChunkManager

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.7.6
    • Affects Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • Fully Compatible
    • Sharding 2018-04-09, Sharding 2018-04-23, Sharding 2018-05-07

      Having a getShardIdAt method on the chunk (which is provided by the
      ChunkManager) exposes the internal implementation of the ChunkManager. If you
      get a ChunkManager with timestamp 100, you shouldn't be allowed to ask for where
      that chunk was at timestamp 50, because this is a potential for programmer
      error.

      That's why I want the Chunk that you get from the CM to come with the same
      Timestamp as the CM.

      If doing Misha's suggestion unblocks integration with GPiTR I am fine with
      checking it in, but we need to have a ticket to disallow that.

            Assignee:
            martin.neupauer@mongodb.com Martin Neupauer
            Reporter:
            martin.neupauer@mongodb.com Martin Neupauer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: