Commit 357d676
committed
fix(in_kubernetes_events): always consume entire payload to avoid duplicates
Critical fix: Always mark the entire HTTP payload as consumed, not just
parsed lines. Otherwise the HTTP layer keeps the trailing fragment and
we get duplicates when prepending chunk_buffer on the next call.
This was causing 'bad formed JSON' errors in production because fragments
were duplicated at chunk boundaries.
Signed-off-by: Jesse Awan <jesse.awan@sap.com>1 parent a6bf771 commit 357d676
1 file changed
+5
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
796 | 796 | | |
797 | 797 | | |
798 | 798 | | |
799 | | - | |
800 | | - | |
801 | | - | |
802 | 799 | | |
803 | 800 | | |
804 | 801 | | |
| |||
847 | 844 | | |
848 | 845 | | |
849 | 846 | | |
850 | | - | |
851 | | - | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
852 | 851 | | |
853 | | - | |
854 | | - | |
855 | | - | |
| 852 | + | |
856 | 853 | | |
857 | 854 | | |
858 | 855 | | |
| |||
0 commit comments