You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears that the injection of the IamClientBuilder, KinesisClientBuilder and CloudWatchLogsClientBuilder in Integrations AWS Service classes is currently being done incorrectly. In the current implementation, a single instance of the builders is injected and reused for each client creation. I suppose this has no actual symptoms (unless there is some edge case I am not seeing), since the config properties are re-written each time the client is instantiated.
I suggest that the change the constructors to instead inject a Provider<> or factory class instead that creates a new builder each time one is needed instead of reusing the same one.
The text was updated successfully, but these errors were encountered:
Description
It appears that the injection of the
IamClientBuilder
,KinesisClientBuilder
andCloudWatchLogsClientBuilder
in Integrations AWS Service classes is currently being done incorrectly. In the current implementation, a single instance of the builders is injected and reused for each client creation. I suppose this has no actual symptoms (unless there is some edge case I am not seeing), since the config properties are re-written each time the client is instantiated.See example in CloudWatchService
See here for the registration of the builders.
I suggest that the change the constructors to instead inject a
Provider<>
or factory class instead that creates a new builder each time one is needed instead of reusing the same one.The text was updated successfully, but these errors were encountered: