Skip to content

bmcweb: Remove size limit for dump offloads#1384

Open
abhilashraju wants to merge 1 commit intoibm-openbmc:1120from
abhilashraju:fix_13443_resouce_dump_offload
Open

bmcweb: Remove size limit for dump offloads#1384
abhilashraju wants to merge 1 commit intoibm-openbmc:1120from
abhilashraju:fix_13443_resouce_dump_offload

Conversation

@abhilashraju
Copy link
Copy Markdown
Contributor

Currently, a hardcoded size limit of 20MB exists for BMC and resource dumps during offloading. This presents a limitation as dump sizes are increasing with new feature additions.

This change removes the size check in checkSizeLimit to allow larger dumps to be offloaded. The existing deadline timer for the offload operation is sufficient to handle cases where the dump generation takes too long, making the size check redundant.

This allows the BMC to offload as much of the dump as possible within the configured time limit.

Currently, a hardcoded size limit of 20MB exists for BMC and resource
dumps during offloading. This presents a limitation as dump sizes are
increasing with new feature additions.

This change removes the size check in `checkSizeLimit` to allow larger
dumps to be offloaded. The existing deadline timer for the offload
operation is sufficient to handle cases where the dump generation takes
too long, making the size check redundant.

This allows the BMC to offload as much of the dump as possible within
the configured time limit.

Signed-off-by: Abhilash Raju <abhilash.kollam@gmail.com>
@baemyung
Copy link
Copy Markdown
Contributor

Should this be discussed and handled from upstream?

size, maxFileSize);
messages::internalError(res);
return false;
// let the offload continue even if size limit is crossed
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Let's increase the size above if we need this. Let's not have no size at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants