-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix edge case with empty batch and msg too big
- Loading branch information
Showing
8 changed files
with
177 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Bifrost | ||
WORKERS=1 | ||
KAFKA_PARTITION_METHOD=transaction-constant | ||
|
||
# Verifier | ||
KAFKA_PARTITION_COUNT=1 | ||
EXPECTED_COUNT=5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{"table":"public.customers","operation":"INSERT","columns":{"first_name":{"new":{"q":"true","t":"text","v":"1111"}},"id":{"new":{"q":"false","t":"integer","v":"1"}},"last_name":{"new":{"q":"true","t":"text","v":"1111"}}}} | ||
{"table":"public.customers","operation":"INSERT","columns":{"first_name":{"new":{"q":"true","t":"text","v":"3333"}},"id":{"new":{"q":"false","t":"integer","v":"3"}},"last_name":{"new":{"q":"true","t":"text","v":"3333"}}}} | ||
{"table":"public.customers","operation":"INSERT","columns":{"first_name":{"new":{"q":"true","t":"text","v":"4444"}},"id":{"new":{"q":"false","t":"integer","v":"4"}},"last_name":{"new":{"q":"true","t":"text","v":"4444"}}}} | ||
{"table":"public.customers","operation":"INSERT","columns":{"first_name":{"new":{"q":"true","t":"text","v":"6666"}},"id":{"new":{"q":"false","t":"integer","v":"6"}},"last_name":{"new":{"q":"true","t":"text","v":"6666"}}}} | ||
{"table":"public.customers","operation":"INSERT","columns":{"first_name":{"new":{"q":"true","t":"text","v":"8888"}},"id":{"new":{"q":"false","t":"integer","v":"8"}},"last_name":{"new":{"q":"true","t":"text","v":"8888"}}}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
CREATE TABLE customers (id serial primary key, first_name text, last_name text); | ||
ALTER TABLE customers REPLICA IDENTITY FULL; | ||
|
||
INSERT INTO customers (first_name, last_name) VALUES ('1111', '1111'); | ||
INSERT INTO customers (first_name, last_name) VALUES ('2222', repeat('2', 1048576)); | ||
INSERT INTO customers (first_name, last_name) VALUES ('3333', '3333'); | ||
|
||
BEGIN; | ||
INSERT INTO customers (first_name, last_name) VALUES ('4444', '4444'); | ||
INSERT INTO customers (first_name, last_name) VALUES ('5555', repeat('5', 1048576)); | ||
INSERT INTO customers (first_name, last_name) VALUES ('6666', '6666'); | ||
COMMIT; | ||
|
||
BEGIN; | ||
INSERT INTO customers (first_name, last_name) VALUES ('7777', repeat('7', 1048576)); | ||
COMMIT; | ||
|
||
INSERT INTO customers (first_name, last_name) VALUES ('8888', '8888'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
load ../../../common | ||
|
||
@test "kafka/test_big_record" { | ||
do_test "kafka_topic_wait" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.