Fixing json creator for s3 storage connector provider#12948
Fixing json creator for s3 storage connector provider#12948abhishekagarwal87 merged 2 commits intoapache:masterfrom
Conversation
gianm
left a comment
There was a problem hiding this comment.
The patch LGTM. However there should be a test of some kind, at some point. Is it possible to add a unit test for this? Or were you thinking of adding one later as an integration test?
|
I was planning to add one integration test once #12918 is merged and the new IT framework is fully merged |
|
@gianm managed to cook up a UT. |
|
A doubt I had was that is it possible to do the |
|
IIRC I tried using the polybind first. If there is a better way, I am all ears. |
|
LGTM still after CI passes. About PolyBind, as far as I know it can only work with a single property. Since we want multiple connected properties here, I think we need the JsonConfigurator. |
|
Thanks for the explanation!
Can we provide a named annotated choice to |
|
@gianm @cryptoe : I tried some experiment with Can you please take a look and see if it seems right and that fits the BTW, the investigation need not block the current changes in this PR from my side. |
|
Thanks for the experimentation. I guess it still won't work. We wanna define the choice on a suffix of the property type and bind it to the choice provider only once. Similarly in another extension, we can have from your example, looks like you are binding the choice multiple times for each namespace and prefix. |
|
The example only allows one binding per namespace and prefix. If more than one binding is tried for the same namespace, the guice injector will throw a binding error. |
rohangarg
left a comment
There was a problem hiding this comment.
The change LGTM since it is necessary to try out s3 durable storage for MSQ. The discussion around the implementation can happen independently.
Description
While trying out the new MSQ task based ingestion #12918 , found a bug in the storage connector where Guice was not finding the 'S3OutputConfig`.
Fixed the bug ...
Key changed/added classes in this PR
S3StorageConnectorProviderThis PR has: