Github user tzulitai commented on the issue:

    https://github.com/apache/flink/pull/4473
  
    @bowenli86 I think the test you posted above is failing because the 
provided `KinesisSerializationSchema` is not serializable. It is an anonymous 
class, which would contain a reference to the enclosing (which I guess is the 
test class, hence not serializable.)
    
    To make it work you either need to make the test class serializable, or 
define a static `KinesisSerializationSchema` subclass instead of using an 
anonymous class.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to