File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -328,7 +328,7 @@ rake test
328
328
329
329
## Caution
330
330
331
- If an event message exceeds API limit (256KB ), the event will be discarded.
331
+ If an event message exceeds API limit (1MB ), the event will be discarded.
332
332
333
333
## Cross-Account Operation
334
334
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ class TooLargeEventError < Fluent::UnrecoverableError; end
68
68
end
69
69
70
70
MAX_EVENTS_SIZE = 1_048_576
71
- MAX_EVENT_SIZE = 256 * 1024
71
+ MAX_EVENT_SIZE = 1024 * 1024
72
72
EVENT_HEADER_SIZE = 26
73
73
74
74
def initialize
Original file line number Diff line number Diff line change @@ -974,11 +974,11 @@ def test_too_large_event
974
974
@log_level debug
975
975
EOC
976
976
d . run ( default_tag : fluentd_tag ) do
977
- d . feed ( time , { 'message' => '*' * 256 * 1024 } )
977
+ d . feed ( time , { 'message' => '*' * 1024 * 1024 } )
978
978
end
979
979
980
980
logs = d . logs
981
- assert ( logs . any? { |log | log =~ /Log event in .* discarded because it is too large: 262184 bytes exceeds limit of 262144 / } )
981
+ assert ( logs . any? { |log | log =~ /Log event in .* discarded because it is too large/ } )
982
982
end
983
983
984
984
def test_do_not_emit_empty_record
You can’t perform that action at this time.
0 commit comments