-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
[DSIP-24][RemoteLogging] Support AbsRemoteLogHandler #15769
Conversation
35b160c
to
50e0ccb
Compare
Can we move the properties related to the remote log to a separate config file, e.g. |
I agree with that |
public void init() { | ||
accountName = readAccountName(); | ||
accountKey = readAccountKey(); | ||
containerName = readContainerName(); | ||
blobContainerClient = buildBlobContainerClient(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we move this into the constructor?
When we get the instance by
AbsRemoteLogHandler.getInstance();
We don't need to execute init
since the instance has already been initialized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed this is a solution.
Currently it follows the patterns with GcsRemoteLogHandler , s3remotelogger and etc.
I will create another PR for fixing this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't need to follow the bad patterns, and the init
method is not defined in the interface. You can submit another PR to fix other handler, but this handler shouldn't use init
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I create an PR for fixing this #15780
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #15769 +/- ##
============================================
+ Coverage 39.16% 39.21% +0.04%
- Complexity 4867 4880 +13
============================================
Files 1316 1317 +1
Lines 44978 45026 +48
Branches 4803 4806 +3
============================================
+ Hits 17617 17656 +39
- Misses 25477 25484 +7
- Partials 1884 1886 +2 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree with moving the properties related to the remote log to a separate config file.
Overall LGTM, please add related UT
c8183fa
to
8c01e2c
Compare
Thanks @rickchengx . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for your PR, after the CI pass I will merge into dev.
7bde425
to
9bf44bd
Compare
9bf44bd
to
a9e8d3f
Compare
Please retry analysis of this Pull-Request directly on SonarCloud |
Purpose of the pull request
close: #15765
add azure blob remote log handler
Brief change log
add azure blob remote log handler
Verify this pull request