Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize getEntryLogMetadata #3948

Merged
merged 4 commits into from
Aug 29, 2023

Conversation

gaozhangmin
Copy link
Contributor

@gaozhangmin gaozhangmin commented May 8, 2023

In the getEntryLogMetadata method, the FileNotFoundException exception is caught before the more general Exception. This modification ensures that if the log file is not found, there is no need to proceed with the extractEntryLogMetadataByScanning(entryLogId, throttler) method call.

This enhancement improves the code's error handling by distinguishing between different exceptions that may occur during the retrieval of entry log metadata. It ensures that unnecessary operations, scanning the log, are skipped when the log file is not found.

@gaozhangmin
Copy link
Contributor Author

rerun failure checks

1 similar comment
@gaozhangmin
Copy link
Contributor Author

rerun failure checks

@gaozhangmin
Copy link
Contributor Author

rerun failure checks

@gaozhangmin
Copy link
Contributor Author

rerun failure checks

@hangc0276 hangc0276 added this to the 4.17.0 milestone May 22, 2023
@hangc0276 hangc0276 assigned gaozhangmin and unassigned eolivelli and StevenLuMT May 22, 2023
@hangc0276 hangc0276 requested review from eolivelli, StevenLuMT, horizonzy and zymap and removed request for horizonzy May 22, 2023 02:37
Copy link
Member

@horizonzy horizonzy left a comment

Choose a reason for hiding this comment

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

LGTM.

@gaozhangmin
Copy link
Contributor Author

rerun failure checks

@zymap zymap merged commit 69f27b7 into apache:master Aug 29, 2023
29 of 32 checks passed
zymap pushed a commit that referenced this pull request Aug 29, 2023
###Motivation

In the `getEntryLogMetadata` method, the `FileNotFoundException` exception is caught before the more general Exception. This modification ensures that if the log file is not found, there is no need to proceed with the `extractEntryLogMetadataByScanning(entryLogId, throttler)` method call.

This enhancement improves the code's error handling by distinguishing between different exceptions that may occur during the retrieval of entry log metadata. It ensures that unnecessary operations, scanning the log, are skipped when the log file is not found.

(cherry picked from commit 69f27b7)
zymap pushed a commit that referenced this pull request Dec 6, 2023
###Motivation

In the `getEntryLogMetadata` method, the `FileNotFoundException` exception is caught before the more general Exception. This modification ensures that if the log file is not found, there is no need to proceed with the `extractEntryLogMetadataByScanning(entryLogId, throttler)` method call.

This enhancement improves the code's error handling by distinguishing between different exceptions that may occur during the retrieval of entry log metadata. It ensures that unnecessary operations, scanning the log, are skipped when the log file is not found.

(cherry picked from commit 69f27b7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants