Skip to content

Conversation

@danny0405
Copy link
Contributor

Change Logs

Introduced by #6632.
The current code logs for each record when the map had been spilled. It caused deluge of loggings.

Impact

no impact

Risk level (write none, low medium or high below)

none

Documentation Update

Describe any necessary documentation update if there is any new feature, config, or user-facing change

  • The config description must be updated if new configs are added or the default value of the configs are changed
  • Any new feature or user-facing change requires updating the Hudi website. Please create a Jira ticket, attach the
    ticket number here and follow the instruction to make
    changes to the website.

Contributor's checklist

  • Read through contributor's guide
  • Change Logs and Impact were stated clearly
  • Adequate tests were added if applicable
  • CI passed

public R put(T key, R value) {
if (this.currentInMemoryMapSize >= maxInMemorySizeInBytes || inMemoryMap.size() % NUMBER_OF_RECORDS_TO_ESTIMATE_PAYLOAD_SIZE == 0) {
long tmpEstimatedPayloadSize = (long) (this.estimatedPayloadSize * 0.9
+ (keySizeEstimator.sizeEstimate(key) + valueSizeEstimator.sizeEstimate(value)) * 0.1);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This line is also a mistake, because it can trigger for the 1st record with estimatedPayloadSize as 0, it then causes all the estimation of payload size far smaller than the real size.

@hudi-bot
Copy link
Collaborator

hudi-bot commented May 6, 2023

CI report:

Bot commands @hudi-bot supports the following commands:
  • @hudi-bot run azure re-run the last Azure build

@danny0405
Copy link
Contributor Author

@danny0405 danny0405 merged commit e6ee5a8 into apache:master May 6, 2023
yihua pushed a commit to yihua/hudi that referenced this pull request May 15, 2023
h1ap pushed a commit to h1ap/hudi that referenced this pull request May 15, 2023
yihua pushed a commit to yihua/hudi that referenced this pull request May 15, 2023
yihua pushed a commit to yihua/hudi that referenced this pull request May 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants