Skip to content

[HUDI-2141] Support flink read metrics#9350

Merged
danny0405 merged 2 commits intoapache:masterfrom
stream2000:HUDI-2141_flink_read_metrics
Aug 4, 2023
Merged

[HUDI-2141] Support flink read metrics#9350
danny0405 merged 2 commits intoapache:masterfrom
stream2000:HUDI-2141_flink_read_metrics

Conversation

@stream2000
Copy link
Contributor

Change Logs

Subtask for HUDI-2141, support flink read metrics

stream write metrics and compaction metrics see #9118

Impact

add some metrics

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

none

Documentation Update

Will update document after merge

Contributor's checklist

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

@stream2000
Copy link
Contributor Author

@danny0405 Could you help review this pr?

@stream2000 stream2000 changed the title Support flink read metrics [HUDI-2141] Support flink read metrics Aug 3, 2023
this.instantState.add(this.issuedInstant);
this.readMetrics.setIssuedInstant(this.issuedInstant);
}
if (this.issuedOffset != null) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Does the metrics got updated for each read?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The metrics will be updated for each checkpoint

}

readMetrics.setSplitLatestCommit(split.getLatestCommit());

Copy link
Contributor

Choose a reason for hiding this comment

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

Does the metrics got updated for each read?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The metrics will be updated for every new split.

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we should move it to line 170.

@stream2000 stream2000 force-pushed the HUDI-2141_flink_read_metrics branch from f36281c to 0341a4d Compare August 3, 2023 06:49
@stream2000
Copy link
Contributor Author

@danny0405 Comments added~PTAL

import java.time.Instant;

/**
* Metrics for flink stream read
Copy link
Contributor

Choose a reason for hiding this comment

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

Every comment should end up with dot ..

@stream2000
Copy link
Contributor Author

@danny0405 Thanks for your review, all comments addressed~

@hudi-bot
Copy link
Collaborator

hudi-bot commented Aug 3, 2023

CI report:

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

@danny0405 danny0405 merged commit ade9d0b into apache:master Aug 4, 2023
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