Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Error occurred when downloading large files (1.5g) using the mongofiles tool with the useFileBasePersistedCursors parameter set to true. #395

@cgdtth7v9w-max

Description

@cgdtth7v9w-max

Describe the bug

When uploading a 1.5GB large file using mongofiles with a persistent cursor (parameter useFileBasePersistedCursors set to true), and subsequently downloading the same file with the mongofiles tool, an error "chunk index does not match expected index" occurs. Preliminary analysis suggests that the BsonStoreDestReceiveCore function first triggers the sizeLimitReached condition, resulting in an incorrect initial batch of data being returned. This causes the mongofiles driver to report the error and pause the download.

Environment

  • Operating system and version
  • PostgreSQL version
  • Architecture

Reproduction Steps

Steps to reproduce the behavior:
A code snipped or accessible repository that can reproduce the issue.

Expected behavior

A clear and concise description of what you expected to happen.

Actual behavior

Additional context

Add any other context about the problem here.
OS: centos 9
pg: 17

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions