Skip to content

Kinesis PutRecord example sometimes send an event with no data #40

@maxha651

Description

@maxha651

I could see this behaviour in rare cases and seemed to depend on what machine I was running on.

I tried removing the "using" part below to make it never dispose of the StreamWriter but then it always sends the event with no data.

using (var streamWriter = new StreamWriter(memoryStream))

From what I can tell it needs to dispose the StreamWriter first to flush the data to the MemoryStream, but this doesn't always happen before the event is sent.

Just removing the StreamWriter worked for me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions