[DSIP-24][RemoteLogging] Support AbsRemoteLogHandler#15769
[DSIP-24][RemoteLogging] Support AbsRemoteLogHandler#15769ruanwenjun merged 1 commit intoapache:devfrom
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.
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.
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.
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.
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. |
rickchengx
left a comment
There was a problem hiding this comment.
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 . |
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