Repository navigation
Azure offloader - #2615
Azure offloader#2615david-streamlio wants to merge 17 commits into
Conversation
|
@david-streamlio , Thanks for the work. |
@jiazhai probably we can deal with this rename in a separate PR? |
|
I am in the process of updating the unit tests, as NONE of them actually used the constructor method that will be used in production. I thought this would be a say change, but it turns out to be causing issues with the Mocks that wrap the Blobstore we are writing too.
it appears these mocks don't get invoked, resulting in test failures |
|
Can we also update the doc page at https://pulsar.incubator.apache.org/docs/en/cookbooks-tiered-storage/? |
|
@sijie Yes, I will update that document as well. |
|
Where is the content for the doc page at https://pulsar.incubator.apache.org/docs/en/cookbooks-tiered-storage/? |
| if (blobStore != null && | ||
| (!Boolean.parseBoolean(System.getProperty("testRealGCS", "false")) && | ||
| !Boolean.parseBoolean(System.getProperty("testRealGCS", "false")))) { | ||
| (Boolean.parseBoolean(System.getProperty("testRealAWS", "false")) || |
There was a problem hiding this comment.
This change seems not right, for real test, we should not call delete container.
|
retest this please |
| @@ -0,0 +1,60 @@ | |||
| package org.apache.bookkeeper.mledger.offload.jclouds.provider.factory; | |||
|
@david-streamlio , Please fix the ut and header issues, Thanks. |
| (Boolean.parseBoolean(System.getProperty("testRealAWS", "false")) || | ||
| Boolean.parseBoolean(System.getProperty("testRealGCS", "false")) || | ||
| Boolean.parseBoolean(System.getProperty("testRealAzure", "false")))) { | ||
| (!Boolean.parseBoolean(System.getProperty("testRealAWS", "false")) || |
|
rerun java8 tests |
|
retest this please |
|
What is the expected behavior? So I can confirm the tests are correct. |
|
rerun java8 tests |
1 similar comment
|
rerun java8 tests |
|
rerun java8 tests |
|
rerun java8 tests for org.apache.pulsar.broker.service.v1.V1_ReplicatorTest.testCloseReplicatorStartProducer |
ivankelly
left a comment
There was a problem hiding this comment.
This PR is mixing too many things. There's a big refactor, an azure offloader and a glacier offloader. Please break these into separate PRs.
|
I am open to suggestions on how to split these up, but these changes are tightly coupled. I could remove the Glacier offloader, but that would be just one class. The refactor moved all of the logic for getting the credentials out of a single class with multiple if/the/else if/else if constructs and into a factory. Then I refactored the S3, and GCS to use the new factory methods, and added Azure. |
|
To restate what I said on other channels, the refactor should be broken out and submitted before the new code, as reviewing a refactor requires a different thought process to reviewing new code. It would be good if the new offloaders could each be in their own PRs so that each PR can be focussed on a single thing. |
|
Following up on @ivankelly 's comment. I can submit a PR for the refactoring as it pertains to the AWS S3 offloader first, and then submit a different one for the Azure offloader once the first one is approved. Will that be the best path forward @sijie ? |
|
@david-streamlio let's get #2865 merged first. then you can rebase this pull request on #2865 |
|
Close this pull request as Azure Offloader has been merged. |
Motivation
Added Azure offloader for Pulsar Tiered Storage
Modifications
Refactored the tiered storage configuration tree to make it easier to add other JCloud Storage Providers in the future
Result
Users will be able to use their Azure Storage accounts for tiered storage of Pulsar data.