Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

rgw_sal_motr: [CORTX-33766] Fix for CopyObject API for zero byte object. #397

Merged
merged 1 commit into from
Aug 19, 2022

Conversation

shriya-deshmukh
Copy link

Problem:
CopyObject operation fails for zero byte object with 'NoSuchKey' error.

Solution:
Read/write to Motr only if object size is greater than zero.

Signed-off-by: Shriya Deshmukh shriya.deshmukh@seagate.com

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox

Copy link

@sachitanands sachitanands left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

Copy link

@priyanka25081999 priyanka25081999 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Problem:
CopyObject operation fails for zero byte object with 'NoSuchKey' error.

Solution:
Read/write to Motr only if object size is greater than zero.

Signed-off-by: Shriya Deshmukh <shriya.deshmukh@seagate.com>
@cdeshmukh cdeshmukh merged commit 62ce42f into Seagate:main Aug 19, 2022
jjxsg pushed a commit that referenced this pull request Aug 22, 2022
…ct. (#397)

Problem: CopyObject operation fails for zero byte object with 'NoSuchKey' error.

Solution: Read/write to Motr only if object size is greater than zero.

Signed-off-by: Shriya Deshmukh <shriya.deshmukh@seagate.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants