vahmed-hamdy commented on code in PR #28: URL: https://github.com/apache/flink-connector-gcp-pubsub/pull/28#discussion_r1632401145
########## flink-connector-gcp-pubsub/src/main/java/org/apache/flink/streaming/connectors/gcp/pubsub/emulator/EmulatorCredentialsProvider.java: ########## @@ -20,12 +20,14 @@ import com.google.api.gax.core.CredentialsProvider; import com.google.auth.Credentials; +import java.io.Serializable; + /** * A CredentialsProvider that simply provides the right credentials that are to be used for * connecting to an emulator. NOTE: The Google provided NoCredentials and NoCredentialsProvider do * not behave as expected. See https://github.com/googleapis/gax-java/issues/1148 */ -public final class EmulatorCredentialsProvider implements CredentialsProvider { +public final class EmulatorCredentialsProvider implements CredentialsProvider, Serializable { Review Comment: Unlike PubSubSinkV1 we use CredentialsProvider as argument instead of Credentials, hence the class itself is passed to the Job and needs to be serialized, previously Credentials were the argument and hence this wasn't needed to be serialized -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
