Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use shardFilter during listShards #377

Merged
merged 5 commits into from
Aug 4, 2021
Merged

Conversation

avahuang0429
Copy link
Contributor

@avahuang0429 avahuang0429 commented Jul 29, 2021

Issue:
Current implementation pulls all shards with listShardsRequest without filtering non active shards and in shard scaling event it contributes to latency increase. Use shardFilter to get only active shards.
Related: #372
Description of changes:
Bump up AWS SDK version.
Use shardFilter with listShardsRequest.
Include header to avoid compilation error.
Testing:
This change is not unit testable due to the nature of the change is to change server side behavior hence I had to go down manual integration test route.
Test case 1: Manually changed req.SetMaxResults(1000); to req.SetMaxResults(10); and tested against a stream of previously 100 shards, but re-sharded to 128 shards in my test account, and was able to get 13 paginated results with total of 128 open shards
Test case 2: Used CLI to first scale stream up stream up to 16 with UNIFORM_SCALING and got hash ranges. Sampled 1 hash key per range, and UNIFORM_SCALING down to 8 shards. Start the test case which is just sending data to each hash key I gave (total of 16 keys) in a loop every 10 seconds, verified via CW that all shards were receiving data, and UNIFORM_SCALING up to 16 shards, verified via CW that all 16 shards were receiving data, before I UNIFORM_SCALING down to 12 shards and verified all and only active 12 shards were receiving data.
Added below log line to here during testing
LOG(info) << ur->hash_key() << "\t" <<*shard_id;
and got following log when scaling from 16 to down to 12 shards:

16:38:17.743 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:17.743536] [0x00006da6][0x00007f0eae74e700] [info] [processing_statistics_logger.cc:111] Stage 1 Triggers: { stream: 'test', manual: 0, count: 0, size: 0, matches: 0, timed: 16, UserRecords: 16, KinesisRecords: 16 }
16:38:17.743 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:17.743561] [0x00006da6][0x00007f0eae74e700] [info] [processing_statistics_logger.cc:114] Stage 2 Triggers: { stream: 'test', manual: 0, count: 0, size: 0, matches: 0, timed: 1, KinesisRecords: 16, PutRecords: 1 }
16:38:17.743 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:17.743568] [0x00006da6][0x00007f0eae74e700] [info] [processing_statistics_logger.cc:129] (test) Average Processing Time: 103 ms
16:38:27.731 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:27.731427] [0x00006da6][0x00007f0eb3f58700] [info] [aggregator.h:70] 11267647932558653966460912964485513215	644
16:38:27.732 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:27.731512] [0x00006da6][0x00007f0eb3f58700] [info] [aggregator.h:70] 42035295865117307932921825928971026431	648
16:38:27.732 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:27.731546] [0x00006da6][0x00007f0eb3f58700] [info] [aggregator.h:70] 53302943797675961899382738893456539647	651
16:38:27.732 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:27.731577] [0x00006da6][0x00007f0eb3f58700] [info] [aggregator.h:70] 74570591730234615865843651857942052863	650
16:38:27.732 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:27.731606] [0x00006da6][0x00007f0eb3f58700] [info] [aggregator.h:70] 95838239662793269832304564822427566079	652
16:38:27.732 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:27.731633] [0x00006da6][0x00007f0eb3f58700] [info] [aggregator.h:70] 117105887595351923798765477786913079295   656
16:38:27.732 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:27.731662] [0x00006da6][0x00007f0eb3f58700] [info] [aggregator.h:70] 138373535527910577765226390751398592511   659
16:38:27.732 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:27.731689] [0x00006da6][0x00007f0eb3f58700] [info] [aggregator.h:70] 159641183460469231731687303715884105727   658
16:38:27.732 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:27.731717] [0x00006da6][0x00007f0eb3f58700] [info] [aggregator.h:70] 180908831393027885698148216680369618943   660
16:38:27.732 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:27.731746] [0x00006da6][0x00007f0eb3f58700] [info] [aggregator.h:70] 202176479325586539664609129644855132159   664
16:38:27.732 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:27.731773] [0x00006da6][0x00007f0eb3f58700] [info] [aggregator.h:70] 223444127258145193631070042609340645375   667
16:38:27.732 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:27.731800] [0x00006da6][0x00007f0eb3f58700] [info] [aggregator.h:70] 244711775190703847597530955573826158591   666
16:38:27.732 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:27.731827] [0x00006da6][0x00007f0eb3f58700] [info] [aggregator.h:70] 265979423123262501563991868538311671807   668
16:38:27.732 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:27.731860] [0x00006da6][0x00007f0eb3f58700] [info] [aggregator.h:70] 287247071055821155530452781502797185023   672
16:38:27.732 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:27.731888] [0x00006da6][0x00007f0eb3f58700] [info] [aggregator.h:70] 308514718988379809496913694467282698239   675
16:38:27.732 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:27.731914] [0x00006da6][0x00007f0eb3f58700] [info] [aggregator.h:70] 329782366920938463463374607431768211455   674
16:38:32.743 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:32.743721] [0x00006da6][0x00007f0eae74e700] [info] [processing_statistics_logger.cc:111] Stage 1 Triggers: { stream: 'test', manual: 0, count: 0, size: 0, matches: 0, timed: 32, UserRecords: 32, KinesisRecords: 32 }
16:38:32.744 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:32.743761] [0x00006da6][0x00007f0eae74e700] [info] [processing_statistics_logger.cc:114] Stage 2 Triggers: { stream: 'test', manual: 0, count: 0, size: 0, matches: 0, timed: 2, KinesisRecords: 32, PutRecords: 2 }
16:38:32.744 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:32.743769] [0x00006da6][0x00007f0eae74e700] [info] [processing_statistics_logger.cc:129] (test) Average Processing Time: 124 ms
16:38:37.741 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:37.741443] [0x00006da6][0x00007f0eb5d5b700] [info] [aggregator.h:70] 11267647932558653966460912964485513215	644
16:38:37.741 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:37.741501] [0x00006da6][0x00007f0eb5d5b700] [info] [aggregator.h:70] 42035295865117307932921825928971026431	648
16:38:37.741 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:37.741521] [0x00006da6][0x00007f0eb5d5b700] [info] [aggregator.h:70] 53302943797675961899382738893456539647	651
16:38:37.741 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:37.741540] [0x00006da6][0x00007f0eb5d5b700] [info] [aggregator.h:70] 74570591730234615865843651857942052863	650
16:38:37.741 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:37.741559] [0x00006da6][0x00007f0eb5d5b700] [info] [aggregator.h:70] 95838239662793269832304564822427566079	652
16:38:37.741 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:37.741576] [0x00006da6][0x00007f0eb5d5b700] [info] [aggregator.h:70] 117105887595351923798765477786913079295   656
16:38:37.741 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:37.741593] [0x00006da6][0x00007f0eb5d5b700] [info] [aggregator.h:70] 138373535527910577765226390751398592511   659
16:38:37.741 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:37.741611] [0x00006da6][0x00007f0eb5d5b700] [info] [aggregator.h:70] 159641183460469231731687303715884105727   658
16:38:37.741 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:37.741628] [0x00006da6][0x00007f0eb5d5b700] [info] [aggregator.h:70] 180908831393027885698148216680369618943   660
16:38:37.742 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:37.741644] [0x00006da6][0x00007f0eb5d5b700] [info] [aggregator.h:70] 202176479325586539664609129644855132159   664
16:38:37.742 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:37.741660] [0x00006da6][0x00007f0eb5d5b700] [info] [aggregator.h:70] 223444127258145193631070042609340645375   667
16:38:37.742 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:37.741676] [0x00006da6][0x00007f0eb5d5b700] [info] [aggregator.h:70] 244711775190703847597530955573826158591   666
16:38:37.742 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:37.741693] [0x00006da6][0x00007f0eb5d5b700] [info] [aggregator.h:70] 265979423123262501563991868538311671807   668
16:38:37.742 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:37.741709] [0x00006da6][0x00007f0eb5d5b700] [info] [aggregator.h:70] 287247071055821155530452781502797185023   672
16:38:37.742 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:37.741726] [0x00006da6][0x00007f0eb5d5b700] [info] [aggregator.h:70] 308514718988379809496913694467282698239   675
16:38:37.742 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:37.741742] [0x00006da6][0x00007f0eb5d5b700] [info] [aggregator.h:70] 329782366920938463463374607431768211455   674
16:38:37.922 [kpl-daemon-0003] WARN com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:37.921865] [0x00006da6][0x00007f0eb709a880] [warning] [retrier.cc:204] Record went to shard shardId-000000000678 instead of the predicted shard 644; this usually means the sharp map has changed.
16:38:37.922 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:37.921888] [0x00006da6][0x00007f0eb709a880] [info] [shard_map.cc:74] Deciding to update shard map for "test" with a gap between seen_at and updated_at_ of 110031 ms predicted shard:  644
16:38:37.922 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:37.921900] [0x00006da6][0x00007f0eb709a880] [info] [shard_map.cc:87] Updating shard map for stream "test"
16:38:37.922 [kpl-daemon-0003] WARN com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:37.921976] [0x00006da6][0x00007f0eb709a880] [warning] [retrier.cc:204] Record went to shard shardId-000000000677 instead of the predicted shard 648; this usually means the sharp map has changed.
16:38:37.922 [kpl-daemon-0003] WARN com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:37.922010] [0x00006da6][0x00007f0eb709a880] [warning] [retrier.cc:204] Record went to shard shardId-000000000679 instead of the predicted shard 651; this usually means the sharp map has changed.
16:38:37.926 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:37.926866] [0x00006da6][0x00007f0e74dfa700] [info] [shard_map.cc:148] Successfully updated shard map for stream "test" found 18 shards
16:38:37.979 [kpl-daemon-0003] WARN com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:37.979436] [0x00006da6][0x00007f0eb3557700] [warning] [retrier.cc:204] Record went to shard shardId-000000000678 instead of the predicted shard 644; this usually means the sharp map has changed.
16:38:37.979 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:37.979463] [0x00006da6][0x00007f0eb3557700] [info] [aggregator.h:70] 11267647932558653966460912964485513215	678
16:38:37.979 [kpl-daemon-0003] WARN com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:37.979502] [0x00006da6][0x00007f0eb3557700] [warning] [retrier.cc:204] Record went to shard shardId-000000000677 instead of the predicted shard 648; this usually means the sharp map has changed.
16:38:37.979 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:37.979512] [0x00006da6][0x00007f0eb3557700] [info] [aggregator.h:70] 42035295865117307932921825928971026431	677
16:38:37.979 [kpl-daemon-0003] WARN com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:37.979542] [0x00006da6][0x00007f0eb3557700] [warning] [retrier.cc:204] Record went to shard shardId-000000000679 instead of the predicted shard 651; this usually means the sharp map has changed.
16:38:37.979 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:37.979550] [0x00006da6][0x00007f0eb3557700] [info] [aggregator.h:70] 53302943797675961899382738893456539647	679
16:38:47.740 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:47.740616] [0x00006da6][0x00007f0eb2155700] [info] [aggregator.h:70] 11267647932558653966460912964485513215	678
16:38:47.740 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:47.740678] [0x00006da6][0x00007f0eb2155700] [info] [aggregator.h:70] 42035295865117307932921825928971026431	677
16:38:47.740 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:47.740699] [0x00006da6][0x00007f0eb2155700] [info] [aggregator.h:70] 53302943797675961899382738893456539647	679
16:38:47.741 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:47.740716] [0x00006da6][0x00007f0eb2155700] [info] [aggregator.h:70] 74570591730234615865843651857942052863	650
16:38:47.741 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:47.740733] [0x00006da6][0x00007f0eb2155700] [info] [aggregator.h:70] 95838239662793269832304564822427566079	652
16:38:47.741 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:47.740750] [0x00006da6][0x00007f0eb2155700] [info] [aggregator.h:70] 117105887595351923798765477786913079295   656
16:38:47.741 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:47.740767] [0x00006da6][0x00007f0eb2155700] [info] [aggregator.h:70] 138373535527910577765226390751398592511   659
16:38:47.741 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:47.740784] [0x00006da6][0x00007f0eb2155700] [info] [aggregator.h:70] 159641183460469231731687303715884105727   658
16:38:47.741 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:47.740800] [0x00006da6][0x00007f0eb2155700] [info] [aggregator.h:70] 180908831393027885698148216680369618943   660
16:38:47.741 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:47.740817] [0x00006da6][0x00007f0eb2155700] [info] [aggregator.h:70] 202176479325586539664609129644855132159   664
16:38:47.741 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:47.740833] [0x00006da6][0x00007f0eb2155700] [info] [aggregator.h:70] 223444127258145193631070042609340645375   667
16:38:47.741 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:47.740849] [0x00006da6][0x00007f0eb2155700] [info] [aggregator.h:70] 244711775190703847597530955573826158591   666
16:38:47.741 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:47.740865] [0x00006da6][0x00007f0eb2155700] [info] [aggregator.h:70] 265979423123262501563991868538311671807   668
16:38:47.741 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:47.740882] [0x00006da6][0x00007f0eb2155700] [info] [aggregator.h:70] 287247071055821155530452781502797185023   672
16:38:47.741 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:47.740898] [0x00006da6][0x00007f0eb2155700] [info] [aggregator.h:70] 308514718988379809496913694467282698239   675
16:38:47.741 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:47.740913] [0x00006da6][0x00007f0eb2155700] [info] [aggregator.h:70] 329782366920938463463374607431768211455   674
16:38:47.743 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:47.743905] [0x00006da6][0x00007f0eae74e700] [info] [processing_statistics_logger.cc:111] Stage 1 Triggers: { stream: 'test', manual: 0, count: 0, size: 0, matches: 0, timed: 19, UserRecords: 19, KinesisRecords: 19 }
16:38:47.744 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:47.743931] [0x00006da6][0x00007f0eae74e700] [info] [processing_statistics_logger.cc:114] Stage 2 Triggers: { stream: 'test', manual: 0, count: 0, size: 0, matches: 0, timed: 3, KinesisRecords: 22, PutRecords: 3 }
16:38:47.744 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:47.743939] [0x00006da6][0x00007f0eae74e700] [info] [processing_statistics_logger.cc:129] (test) Average Processing Time: 24.666667 ms
16:38:47.932 [kpl-daemon-0003] WARN com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:47.932037] [0x00006da6][0x00007f0eb535a700] [warning] [retrier.cc:204] Record went to shard shardId-000000000681 instead of the predicted shard 677; this usually means the sharp map has changed.
16:38:47.932 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:47.932061] [0x00006da6][0x00007f0eb535a700] [info] [shard_map.cc:74] Deciding to update shard map for "test" with a gap between seen_at and updated_at_ of 9934.01 ms predicted shard:  677
16:38:47.932 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:47.932071] [0x00006da6][0x00007f0eb535a700] [info] [shard_map.cc:87] Updating shard map for stream "test"
16:38:47.932 [kpl-daemon-0003] WARN com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:47.932125] [0x00006da6][0x00007f0eb535a700] [warning] [retrier.cc:204] Record went to shard shardId-000000000681 instead of the predicted shard 679; this usually means the sharp map has changed.
16:38:47.932 [kpl-daemon-0003] WARN com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:47.932157] [0x00006da6][0x00007f0eb535a700] [warning] [retrier.cc:204] Record went to shard shardId-000000000682 instead of the predicted shard 650; this usually means the sharp map has changed.
16:38:47.932 [kpl-daemon-0003] WARN com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:47.932211] [0x00006da6][0x00007f0eb535a700] [warning] [retrier.cc:204] Record went to shard shardId-000000000684 instead of the predicted shard 656; this usually means the sharp map has changed.
16:38:47.938 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:47.938875] [0x00006da6][0x00007f0eadd4d700] [info] [shard_map.cc:148] Successfully updated shard map for stream "test" found 19 shards
16:38:47.996 [kpl-daemon-0003] WARN com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:47.996809] [0x00006da6][0x00007f0eb4959700] [warning] [retrier.cc:204] Record went to shard shardId-000000000681 instead of the predicted shard 677; this usually means the sharp map has changed.
16:38:47.997 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:47.996876] [0x00006da6][0x00007f0eb4959700] [info] [aggregator.h:70] 42035295865117307932921825928971026431	681
16:38:47.997 [kpl-daemon-0003] WARN com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:47.996941] [0x00006da6][0x00007f0eb4959700] [warning] [retrier.cc:204] Record went to shard shardId-000000000681 instead of the predicted shard 679; this usually means the sharp map has changed.
16:38:47.997 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:47.996951] [0x00006da6][0x00007f0eb4959700] [info] [aggregator.h:70] 53302943797675961899382738893456539647	681
16:38:47.997 [kpl-daemon-0003] WARN com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:47.996980] [0x00006da6][0x00007f0eb4959700] [warning] [retrier.cc:204] Record went to shard shardId-000000000682 instead of the predicted shard 650; this usually means the sharp map has changed.
16:38:47.997 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:47.996989] [0x00006da6][0x00007f0eb4959700] [info] [aggregator.h:70] 74570591730234615865843651857942052863	682
16:38:47.997 [kpl-daemon-0003] WARN com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:47.997021] [0x00006da6][0x00007f0eb4959700] [warning] [retrier.cc:204] Record went to shard shardId-000000000684 instead of the predicted shard 656; this usually means the sharp map has changed.
16:38:47.997 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:47.997029] [0x00006da6][0x00007f0eb4959700] [info] [aggregator.h:70] 117105887595351923798765477786913079295   684
16:38:57.739 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:57.739205] [0x00006da6][0x00007f0eb3557700] [info] [aggregator.h:70] 11267647932558653966460912964485513215	678
16:38:57.739 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:57.739261] [0x00006da6][0x00007f0eb3557700] [info] [aggregator.h:70] 42035295865117307932921825928971026431	681
16:38:57.739 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:57.739283] [0x00006da6][0x00007f0eb3557700] [info] [aggregator.h:70] 53302943797675961899382738893456539647	681
16:38:57.739 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:57.739299] [0x00006da6][0x00007f0eb3557700] [info] [aggregator.h:70] 74570591730234615865843651857942052863	682
16:38:57.739 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:57.739316] [0x00006da6][0x00007f0eb3557700] [info] [aggregator.h:70] 95838239662793269832304564822427566079	652
16:38:57.739 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:57.739334] [0x00006da6][0x00007f0eb3557700] [info] [aggregator.h:70] 117105887595351923798765477786913079295   684
16:38:57.739 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:57.739351] [0x00006da6][0x00007f0eb3557700] [info] [aggregator.h:70] 138373535527910577765226390751398592511   686
16:38:57.739 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:57.739379] [0x00006da6][0x00007f0eb3557700] [info] [aggregator.h:70] 159641183460469231731687303715884105727   658
16:38:57.739 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:57.739397] [0x00006da6][0x00007f0eb3557700] [info] [aggregator.h:70] 180908831393027885698148216680369618943   660
16:38:57.739 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:57.739413] [0x00006da6][0x00007f0eb3557700] [info] [aggregator.h:70] 202176479325586539664609129644855132159   664
16:38:57.739 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:57.739428] [0x00006da6][0x00007f0eb3557700] [info] [aggregator.h:70] 223444127258145193631070042609340645375   667
16:38:57.739 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:57.739444] [0x00006da6][0x00007f0eb3557700] [info] [aggregator.h:70] 244711775190703847597530955573826158591   666
16:38:57.739 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:57.739460] [0x00006da6][0x00007f0eb3557700] [info] [aggregator.h:70] 265979423123262501563991868538311671807   668
16:38:57.739 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:57.739476] [0x00006da6][0x00007f0eb3557700] [info] [aggregator.h:70] 287247071055821155530452781502797185023   672
16:38:57.739 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:57.739492] [0x00006da6][0x00007f0eb3557700] [info] [aggregator.h:70] 308514718988379809496913694467282698239   675
16:38:57.739 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:57.739508] [0x00006da6][0x00007f0eb3557700] [info] [aggregator.h:70] 329782366920938463463374607431768211455   674
16:38:57.963 [kpl-daemon-0003] WARN com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:57.963484] [0x00006da6][0x00007f0eb709a880] [warning] [retrier.cc:204] Record went to shard shardId-000000000688 instead of the predicted shard 684; this usually means the sharp map has changed.
16:38:57.963 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:57.963509] [0x00006da6][0x00007f0eb709a880] [info] [shard_map.cc:74] Deciding to update shard map for "test" with a gap between seen_at and updated_at_ of 9920.53 ms predicted shard:  684
16:38:57.963 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:57.963522] [0x00006da6][0x00007f0eb709a880] [info] [shard_map.cc:87] Updating shard map for stream "test"
16:38:57.963 [kpl-daemon-0003] WARN com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:57.963585] [0x00006da6][0x00007f0eb709a880] [warning] [retrier.cc:204] Record went to shard shardId-000000000685 instead of the predicted shard 652; this usually means the sharp map has changed.
16:38:57.963 [kpl-daemon-0003] WARN com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:57.963626] [0x00006da6][0x00007f0eb709a880] [warning] [retrier.cc:204] Record went to shard shardId-000000000688 instead of the predicted shard 686; this usually means the sharp map has changed.
16:38:57.969 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:57.969410] [0x00006da6][0x00007f0eadd4d700] [info] [shard_map.cc:148] Successfully updated shard map for stream "test" found 16 shards
16:38:58.025 [kpl-daemon-0003] WARN com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:58.025609] [0x00006da6][0x00007f0eb535a700] [warning] [retrier.cc:204] Record went to shard shardId-000000000688 instead of the predicted shard 684; this usually means the sharp map has changed.
16:38:58.025 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:58.025638] [0x00006da6][0x00007f0eb535a700] [info] [aggregator.h:70] 117105887595351923798765477786913079295   688
16:38:58.025 [kpl-daemon-0003] WARN com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:58.025694] [0x00006da6][0x00007f0eb535a700] [warning] [retrier.cc:204] Record went to shard shardId-000000000685 instead of the predicted shard 652; this usually means the sharp map has changed.
16:38:58.025 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:58.025712] [0x00006da6][0x00007f0eb535a700] [info] [aggregator.h:70] 95838239662793269832304564822427566079	685
16:38:58.025 [kpl-daemon-0003] WARN com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:58.025766] [0x00006da6][0x00007f0eb535a700] [warning] [retrier.cc:204] Record went to shard shardId-000000000688 instead of the predicted shard 686; this usually means the sharp map has changed.
16:38:58.026 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:38:58.025783] [0x00006da6][0x00007f0eb535a700] [info] [aggregator.h:70] 138373535527910577765226390751398592511   688
16:39:02.744 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:02.744073] [0x00006da6][0x00007f0eae74e700] [info] [processing_statistics_logger.cc:111] Stage 1 Triggers: { stream: 'test', manual: 0, count: 0, size: 0, matches: 0, timed: 36, UserRecords: 39, KinesisRecords: 36 }
16:39:02.744 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:02.744116] [0x00006da6][0x00007f0eae74e700] [info] [processing_statistics_logger.cc:114] Stage 2 Triggers: { stream: 'test', manual: 0, count: 0, size: 0, matches: 0, timed: 6, KinesisRecords: 43, PutRecords: 6 }
16:39:02.744 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:02.744124] [0x00006da6][0x00007f0eae74e700] [info] [processing_statistics_logger.cc:129] (test) Average Processing Time: 36.333333 ms
16:39:07.741 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:07.741873] [0x00006da6][0x00007f0eb5d5b700] [info] [aggregator.h:70] 11267647932558653966460912964485513215	678
16:39:07.742 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:07.741933] [0x00006da6][0x00007f0eb5d5b700] [info] [aggregator.h:70] 42035295865117307932921825928971026431	681
16:39:07.742 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:07.741954] [0x00006da6][0x00007f0eb5d5b700] [info] [aggregator.h:70] 53302943797675961899382738893456539647	681
16:39:07.742 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:07.741973] [0x00006da6][0x00007f0eb5d5b700] [info] [aggregator.h:70] 74570591730234615865843651857942052863	682
16:39:07.742 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:07.741991] [0x00006da6][0x00007f0eb5d5b700] [info] [aggregator.h:70] 95838239662793269832304564822427566079	685
16:39:07.742 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:07.742027] [0x00006da6][0x00007f0eb5d5b700] [info] [aggregator.h:70] 117105887595351923798765477786913079295   688
16:39:07.742 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:07.742046] [0x00006da6][0x00007f0eb5d5b700] [info] [aggregator.h:70] 138373535527910577765226390751398592511   688
16:39:07.742 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:07.742062] [0x00006da6][0x00007f0eb5d5b700] [info] [aggregator.h:70] 159641183460469231731687303715884105727   658
16:39:07.742 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:07.742080] [0x00006da6][0x00007f0eb5d5b700] [info] [aggregator.h:70] 180908831393027885698148216680369618943   660
16:39:07.742 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:07.742097] [0x00006da6][0x00007f0eb5d5b700] [info] [aggregator.h:70] 202176479325586539664609129644855132159   664
16:39:07.742 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:07.742115] [0x00006da6][0x00007f0eb5d5b700] [info] [aggregator.h:70] 223444127258145193631070042609340645375   667
16:39:07.742 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:07.742133] [0x00006da6][0x00007f0eb5d5b700] [info] [aggregator.h:70] 244711775190703847597530955573826158591   666
16:39:07.742 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:07.742150] [0x00006da6][0x00007f0eb5d5b700] [info] [aggregator.h:70] 265979423123262501563991868538311671807   668
16:39:07.742 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:07.742166] [0x00006da6][0x00007f0eb5d5b700] [info] [aggregator.h:70] 287247071055821155530452781502797185023   672
16:39:07.742 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:07.742183] [0x00006da6][0x00007f0eb5d5b700] [info] [aggregator.h:70] 308514718988379809496913694467282698239   675
16:39:07.742 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:07.742201] [0x00006da6][0x00007f0eb5d5b700] [info] [aggregator.h:70] 329782366920938463463374607431768211455   674
16:39:07.982 [kpl-daemon-0003] WARN com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:07.982208] [0x00006da6][0x00007f0eb4959700] [warning] [retrier.cc:204] Record went to shard shardId-000000000689 instead of the predicted shard 658; this usually means the sharp map has changed.
16:39:07.982 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:07.982235] [0x00006da6][0x00007f0eb4959700] [info] [shard_map.cc:74] Deciding to update shard map for "test" with a gap between seen_at and updated_at_ of 9892.66 ms predicted shard:  658
16:39:07.982 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:07.982248] [0x00006da6][0x00007f0eb4959700] [info] [shard_map.cc:87] Updating shard map for stream "test"
16:39:07.987 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:07.987661] [0x00006da6][0x00007f0eadd4d700] [info] [shard_map.cc:148] Successfully updated shard map for stream "test" found 16 shards
16:39:08.041 [kpl-daemon-0003] WARN com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:08.041317] [0x00006da6][0x00007f0eb2b56700] [warning] [retrier.cc:204] Record went to shard shardId-000000000689 instead of the predicted shard 658; this usually means the sharp map has changed.
16:39:08.041 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:08.041356] [0x00006da6][0x00007f0eb2b56700] [info] [aggregator.h:70] 159641183460469231731687303715884105727   689
16:39:17.743 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:17.743682] [0x00006da6][0x00007f0eb709a880] [info] [aggregator.h:70] 11267647932558653966460912964485513215	678
16:39:17.743 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:17.743744] [0x00006da6][0x00007f0eb709a880] [info] [aggregator.h:70] 42035295865117307932921825928971026431	681
16:39:17.743 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:17.743765] [0x00006da6][0x00007f0eb709a880] [info] [aggregator.h:70] 53302943797675961899382738893456539647	681
16:39:17.743 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:17.743782] [0x00006da6][0x00007f0eb709a880] [info] [aggregator.h:70] 74570591730234615865843651857942052863	682
16:39:17.743 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:17.743800] [0x00006da6][0x00007f0eb709a880] [info] [aggregator.h:70] 95838239662793269832304564822427566079	685
16:39:17.743 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:17.743818] [0x00006da6][0x00007f0eb709a880] [info] [aggregator.h:70] 117105887595351923798765477786913079295   688
16:39:17.744 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:17.743836] [0x00006da6][0x00007f0eb709a880] [info] [aggregator.h:70] 138373535527910577765226390751398592511   688
16:39:17.744 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:17.743851] [0x00006da6][0x00007f0eb709a880] [info] [aggregator.h:70] 159641183460469231731687303715884105727   689
16:39:17.744 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:17.743868] [0x00006da6][0x00007f0eb709a880] [info] [aggregator.h:70] 180908831393027885698148216680369618943   660
16:39:17.744 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:17.743883] [0x00006da6][0x00007f0eb709a880] [info] [aggregator.h:70] 202176479325586539664609129644855132159   664
16:39:17.744 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:17.743904] [0x00006da6][0x00007f0eb709a880] [info] [aggregator.h:70] 223444127258145193631070042609340645375   667
16:39:17.744 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:17.743920] [0x00006da6][0x00007f0eb709a880] [info] [aggregator.h:70] 244711775190703847597530955573826158591   666
16:39:17.744 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:17.743937] [0x00006da6][0x00007f0eb709a880] [info] [aggregator.h:70] 265979423123262501563991868538311671807   668
16:39:17.744 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:17.743953] [0x00006da6][0x00007f0eb709a880] [info] [aggregator.h:70] 287247071055821155530452781502797185023   672
16:39:17.744 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:17.743968] [0x00006da6][0x00007f0eb709a880] [info] [aggregator.h:70] 308514718988379809496913694467282698239   675
16:39:17.744 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:17.743985] [0x00006da6][0x00007f0eb709a880] [info] [aggregator.h:70] 329782366920938463463374607431768211455   674
16:39:17.744 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:17.744265] [0x00006da6][0x00007f0eae74e700] [info] [processing_statistics_logger.cc:111] Stage 1 Triggers: { stream: 'test', manual: 0, count: 0, size: 0, matches: 0, timed: 15, UserRecords: 17, KinesisRecords: 15 }
16:39:17.744 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:17.744291] [0x00006da6][0x00007f0eae74e700] [info] [processing_statistics_logger.cc:114] Stage 2 Triggers: { stream: 'test', manual: 0, count: 0, size: 0, matches: 0, timed: 3, KinesisRecords: 16, PutRecords: 3 }
16:39:17.744 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:17.744304] [0x00006da6][0x00007f0eae74e700] [info] [processing_statistics_logger.cc:129] (test) Average Processing Time: 45 ms
16:39:17.972 [kpl-daemon-0003] WARN com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:17.972240] [0x00006da6][0x00007f0eb709a880] [warning] [retrier.cc:204] Record went to shard shardId-000000000692 instead of the predicted shard 660; this usually means the sharp map has changed.
16:39:17.972 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:17.972275] [0x00006da6][0x00007f0eb709a880] [info] [shard_map.cc:74] Deciding to update shard map for "test" with a gap between seen_at and updated_at_ of 9876.21 ms predicted shard:  660
16:39:17.972 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:17.972288] [0x00006da6][0x00007f0eb709a880] [info] [shard_map.cc:87] Updating shard map for stream "test"
16:39:17.972 [kpl-daemon-0003] WARN com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:17.972373] [0x00006da6][0x00007f0eb709a880] [warning] [retrier.cc:204] Record went to shard shardId-000000000691 instead of the predicted shard 664; this usually means the sharp map has changed.
16:39:17.972 [kpl-daemon-0003] WARN com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:17.972406] [0x00006da6][0x00007f0eb709a880] [warning] [retrier.cc:204] Record went to shard shardId-000000000693 instead of the predicted shard 667; this usually means the sharp map has changed.
16:39:17.979 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:17.979146] [0x00006da6][0x00007f0eadd4d700] [info] [shard_map.cc:148] Successfully updated shard map for stream "test" found 16 shards
16:39:18.031 [kpl-daemon-0003] WARN com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:18.031501] [0x00006da6][0x00007f0eb4959700] [warning] [retrier.cc:204] Record went to shard shardId-000000000692 instead of the predicted shard 660; this usually means the sharp map has changed.
16:39:18.031 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:18.031532] [0x00006da6][0x00007f0eb4959700] [info] [aggregator.h:70] 180908831393027885698148216680369618943   692
16:39:18.031 [kpl-daemon-0003] WARN com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:18.031583] [0x00006da6][0x00007f0eb4959700] [warning] [retrier.cc:204] Record went to shard shardId-000000000691 instead of the predicted shard 664; this usually means the sharp map has changed.
16:39:18.031 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:18.031599] [0x00006da6][0x00007f0eb4959700] [info] [aggregator.h:70] 202176479325586539664609129644855132159   691
16:39:18.031 [kpl-daemon-0003] WARN com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:18.031636] [0x00006da6][0x00007f0eb4959700] [warning] [retrier.cc:204] Record went to shard shardId-000000000693 instead of the predicted shard 667; this usually means the sharp map has changed.
16:39:18.031 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:18.031645] [0x00006da6][0x00007f0eb4959700] [info] [aggregator.h:70] 223444127258145193631070042609340645375   693
16:39:27.736 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:27.736419] [0x00006da6][0x00007f0eb3f58700] [info] [aggregator.h:70] 11267647932558653966460912964485513215	678
16:39:27.736 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:27.736476] [0x00006da6][0x00007f0eb3f58700] [info] [aggregator.h:70] 42035295865117307932921825928971026431	681
16:39:27.736 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:27.736496] [0x00006da6][0x00007f0eb3f58700] [info] [aggregator.h:70] 53302943797675961899382738893456539647	681
16:39:27.736 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:27.736519] [0x00006da6][0x00007f0eb3f58700] [info] [aggregator.h:70] 74570591730234615865843651857942052863	682
16:39:27.736 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:27.736536] [0x00006da6][0x00007f0eb3f58700] [info] [aggregator.h:70] 95838239662793269832304564822427566079	685
16:39:27.736 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:27.736551] [0x00006da6][0x00007f0eb3f58700] [info] [aggregator.h:70] 117105887595351923798765477786913079295   688
16:39:27.736 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:27.736568] [0x00006da6][0x00007f0eb3f58700] [info] [aggregator.h:70] 138373535527910577765226390751398592511   688
16:39:27.736 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:27.736585] [0x00006da6][0x00007f0eb3f58700] [info] [aggregator.h:70] 159641183460469231731687303715884105727   689
16:39:27.736 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:27.736600] [0x00006da6][0x00007f0eb3f58700] [info] [aggregator.h:70] 180908831393027885698148216680369618943   692
16:39:27.736 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:27.736615] [0x00006da6][0x00007f0eb3f58700] [info] [aggregator.h:70] 202176479325586539664609129644855132159   691
16:39:27.736 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:27.736637] [0x00006da6][0x00007f0eb3f58700] [info] [aggregator.h:70] 223444127258145193631070042609340645375   693
16:39:27.736 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:27.736663] [0x00006da6][0x00007f0eb3f58700] [info] [aggregator.h:70] 244711775190703847597530955573826158591   666
16:39:27.736 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:27.736691] [0x00006da6][0x00007f0eb3f58700] [info] [aggregator.h:70] 265979423123262501563991868538311671807   668
16:39:27.736 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:27.736718] [0x00006da6][0x00007f0eb3f58700] [info] [aggregator.h:70] 287247071055821155530452781502797185023   672
16:39:27.736 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:27.736745] [0x00006da6][0x00007f0eb3f58700] [info] [aggregator.h:70] 308514718988379809496913694467282698239   675
16:39:27.736 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:27.736778] [0x00006da6][0x00007f0eb3f58700] [info] [aggregator.h:70] 329782366920938463463374607431768211455   674
16:39:27.975 [kpl-daemon-0003] WARN com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:27.975158] [0x00006da6][0x00007f0eb3f58700] [warning] [retrier.cc:204] Record went to shard shardId-000000000695 instead of the predicted shard 691; this usually means the sharp map has changed.
16:39:27.975 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:27.975180] [0x00006da6][0x00007f0eb3f58700] [info] [shard_map.cc:74] Deciding to update shard map for "test" with a gap between seen_at and updated_at_ of 9877.51 ms predicted shard:  691
16:39:27.975 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:27.975193] [0x00006da6][0x00007f0eb3f58700] [info] [shard_map.cc:87] Updating shard map for stream "test"
16:39:27.975 [kpl-daemon-0003] WARN com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:27.975296] [0x00006da6][0x00007f0eb3f58700] [warning] [retrier.cc:204] Record went to shard shardId-000000000695 instead of the predicted shard 693; this usually means the sharp map has changed.
16:39:27.975 [kpl-daemon-0003] WARN com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:27.975357] [0x00006da6][0x00007f0eb3f58700] [warning] [retrier.cc:204] Record went to shard shardId-000000000696 instead of the predicted shard 666; this usually means the sharp map has changed.
16:39:27.975 [kpl-daemon-0003] WARN com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:27.975487] [0x00006da6][0x00007f0eb3f58700] [warning] [retrier.cc:204] Record went to shard shardId-000000000698 instead of the predicted shard 672; this usually means the sharp map has changed.
16:39:27.982 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:27.982267] [0x00006da6][0x00007f0eadd4d700] [info] [shard_map.cc:148] Successfully updated shard map for stream "test" found 14 shards
16:39:28.044 [kpl-daemon-0003] WARN com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:28.044805] [0x00006da6][0x00007f0eb709a880] [warning] [retrier.cc:204] Record went to shard shardId-000000000695 instead of the predicted shard 691; this usually means the sharp map has changed.
16:39:28.044 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:28.044867] [0x00006da6][0x00007f0eb709a880] [info] [aggregator.h:70] 202176479325586539664609129644855132159   695
16:39:28.044 [kpl-daemon-0003] WARN com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:28.044906] [0x00006da6][0x00007f0eb709a880] [warning] [retrier.cc:204] Record went to shard shardId-000000000695 instead of the predicted shard 693; this usually means the sharp map has changed.
16:39:28.045 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:28.044916] [0x00006da6][0x00007f0eb709a880] [info] [aggregator.h:70] 223444127258145193631070042609340645375   695
16:39:28.045 [kpl-daemon-0003] WARN com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:28.044947] [0x00006da6][0x00007f0eb709a880] [warning] [retrier.cc:204] Record went to shard shardId-000000000696 instead of the predicted shard 666; this usually means the sharp map has changed.
16:39:28.045 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:28.044956] [0x00006da6][0x00007f0eb709a880] [info] [aggregator.h:70] 244711775190703847597530955573826158591   696
16:39:28.045 [kpl-daemon-0003] WARN com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:28.044987] [0x00006da6][0x00007f0eb709a880] [warning] [retrier.cc:204] Record went to shard shardId-000000000698 instead of the predicted shard 672; this usually means the sharp map has changed.
16:39:28.045 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:28.044995] [0x00006da6][0x00007f0eb709a880] [info] [aggregator.h:70] 287247071055821155530452781502797185023   698
16:39:32.744 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:32.744472] [0x00006da6][0x00007f0eae74e700] [info] [processing_statistics_logger.cc:111] Stage 1 Triggers: { stream: 'test', manual: 0, count: 0, size: 0, matches: 0, timed: 34, UserRecords: 39, KinesisRecords: 34 }
16:39:32.744 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:32.744530] [0x00006da6][0x00007f0eae74e700] [info] [processing_statistics_logger.cc:114] Stage 2 Triggers: { stream: 'test', manual: 0, count: 0, size: 0, matches: 0, timed: 6, KinesisRecords: 41, PutRecords: 6 }
16:39:32.744 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:32.744539] [0x00006da6][0x00007f0eae74e700] [info] [processing_statistics_logger.cc:129] (test) Average Processing Time: 45 ms
16:39:37.738 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:37.738528] [0x00006da6][0x00007f0eb2b56700] [info] [aggregator.h:70] 11267647932558653966460912964485513215	678
16:39:37.738 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:37.738586] [0x00006da6][0x00007f0eb2b56700] [info] [aggregator.h:70] 42035295865117307932921825928971026431	681
16:39:37.738 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:37.738608] [0x00006da6][0x00007f0eb2b56700] [info] [aggregator.h:70] 53302943797675961899382738893456539647	681
16:39:37.738 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:37.738624] [0x00006da6][0x00007f0eb2b56700] [info] [aggregator.h:70] 74570591730234615865843651857942052863	682
16:39:37.738 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:37.738642] [0x00006da6][0x00007f0eb2b56700] [info] [aggregator.h:70] 95838239662793269832304564822427566079	685
16:39:37.738 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:37.738660] [0x00006da6][0x00007f0eb2b56700] [info] [aggregator.h:70] 117105887595351923798765477786913079295   688
16:39:37.738 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:37.738678] [0x00006da6][0x00007f0eb2b56700] [info] [aggregator.h:70] 138373535527910577765226390751398592511   688
16:39:37.738 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:37.738693] [0x00006da6][0x00007f0eb2b56700] [info] [aggregator.h:70] 159641183460469231731687303715884105727   689
16:39:37.738 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:37.738709] [0x00006da6][0x00007f0eb2b56700] [info] [aggregator.h:70] 180908831393027885698148216680369618943   692
16:39:37.738 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:37.738725] [0x00006da6][0x00007f0eb2b56700] [info] [aggregator.h:70] 202176479325586539664609129644855132159   695
16:39:37.739 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:37.738741] [0x00006da6][0x00007f0eb2b56700] [info] [aggregator.h:70] 223444127258145193631070042609340645375   695
16:39:37.739 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:37.738756] [0x00006da6][0x00007f0eb2b56700] [info] [aggregator.h:70] 244711775190703847597530955573826158591   696
16:39:37.739 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:37.738771] [0x00006da6][0x00007f0eb2b56700] [info] [aggregator.h:70] 265979423123262501563991868538311671807   668
16:39:37.739 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:37.738790] [0x00006da6][0x00007f0eb2b56700] [info] [aggregator.h:70] 287247071055821155530452781502797185023   698
16:39:37.739 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:37.738808] [0x00006da6][0x00007f0eb2b56700] [info] [aggregator.h:70] 308514718988379809496913694467282698239   675
16:39:37.739 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:37.738835] [0x00006da6][0x00007f0eb2b56700] [info] [aggregator.h:70] 329782366920938463463374607431768211455   674
16:39:37.967 [kpl-daemon-0003] WARN com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:37.967849] [0x00006da6][0x00007f0eb4959700] [warning] [retrier.cc:204] Record went to shard shardId-000000000699 instead of the predicted shard 668; this usually means the sharp map has changed.
16:39:37.968 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:37.967873] [0x00006da6][0x00007f0eb4959700] [info] [shard_map.cc:74] Deciding to update shard map for "test" with a gap between seen_at and updated_at_ of 9876.51 ms predicted shard:  668
16:39:37.968 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:37.967886] [0x00006da6][0x00007f0eb4959700] [info] [shard_map.cc:87] Updating shard map for stream "test"
16:39:37.968 [kpl-daemon-0003] WARN com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:37.967948] [0x00006da6][0x00007f0eb4959700] [warning] [retrier.cc:204] Record went to shard shardId-000000000702 instead of the predicted shard 698; this usually means the sharp map has changed.
16:39:37.968 [kpl-daemon-0003] WARN com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:37.967980] [0x00006da6][0x00007f0eb4959700] [warning] [retrier.cc:204] Record went to shard shardId-000000000702 instead of the predicted shard 675; this usually means the sharp map has changed.
16:39:37.972 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:37.972901] [0x00006da6][0x00007f0eadd4d700] [info] [shard_map.cc:148] Successfully updated shard map for stream "test" found 13 shards
16:39:38.029 [kpl-daemon-0003] WARN com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:38.029651] [0x00006da6][0x00007f0eb2155700] [warning] [retrier.cc:204] Record went to shard shardId-000000000699 instead of the predicted shard 668; this usually means the sharp map has changed.
16:39:38.029 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:38.029675] [0x00006da6][0x00007f0eb2155700] [info] [aggregator.h:70] 265979423123262501563991868538311671807   699
16:39:38.029 [kpl-daemon-0003] WARN com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:38.029712] [0x00006da6][0x00007f0eb2155700] [warning] [retrier.cc:204] Record went to shard shardId-000000000702 instead of the predicted shard 698; this usually means the sharp map has changed.
16:39:38.029 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:38.029722] [0x00006da6][0x00007f0eb2155700] [info] [aggregator.h:70] 287247071055821155530452781502797185023   702
16:39:38.029 [kpl-daemon-0003] WARN com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:38.029757] [0x00006da6][0x00007f0eb2155700] [warning] [retrier.cc:204] Record went to shard shardId-000000000702 instead of the predicted shard 675; this usually means the sharp map has changed.
16:39:38.029 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:38.029771] [0x00006da6][0x00007f0eb2155700] [info] [aggregator.h:70] 308514718988379809496913694467282698239   702
16:39:47.738 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:47.738833] [0x00006da6][0x00007f0eb2155700] [info] [aggregator.h:70] 11267647932558653966460912964485513215	678
16:39:47.739 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:47.738893] [0x00006da6][0x00007f0eb2155700] [info] [aggregator.h:70] 42035295865117307932921825928971026431	681
16:39:47.739 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:47.738915] [0x00006da6][0x00007f0eb2155700] [info] [aggregator.h:70] 53302943797675961899382738893456539647	681
16:39:47.739 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:47.738932] [0x00006da6][0x00007f0eb2155700] [info] [aggregator.h:70] 74570591730234615865843651857942052863	682
16:39:47.739 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:47.738951] [0x00006da6][0x00007f0eb2155700] [info] [aggregator.h:70] 95838239662793269832304564822427566079	685
16:39:47.739 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:47.738969] [0x00006da6][0x00007f0eb2155700] [info] [aggregator.h:70] 117105887595351923798765477786913079295   688
16:39:47.739 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:47.738986] [0x00006da6][0x00007f0eb2155700] [info] [aggregator.h:70] 138373535527910577765226390751398592511   688
16:39:47.739 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:47.739002] [0x00006da6][0x00007f0eb2155700] [info] [aggregator.h:70] 159641183460469231731687303715884105727   689
16:39:47.739 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:47.739019] [0x00006da6][0x00007f0eb2155700] [info] [aggregator.h:70] 180908831393027885698148216680369618943   692
16:39:47.739 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:47.739037] [0x00006da6][0x00007f0eb2155700] [info] [aggregator.h:70] 202176479325586539664609129644855132159   695
16:39:47.739 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:47.739053] [0x00006da6][0x00007f0eb2155700] [info] [aggregator.h:70] 223444127258145193631070042609340645375   695
16:39:47.739 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:47.739069] [0x00006da6][0x00007f0eb2155700] [info] [aggregator.h:70] 244711775190703847597530955573826158591   696
16:39:47.739 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:47.739089] [0x00006da6][0x00007f0eb2155700] [info] [aggregator.h:70] 265979423123262501563991868538311671807   699
16:39:47.739 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:47.739118] [0x00006da6][0x00007f0eb2155700] [info] [aggregator.h:70] 287247071055821155530452781502797185023   702
16:39:47.739 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:47.739140] [0x00006da6][0x00007f0eb2155700] [info] [aggregator.h:70] 308514718988379809496913694467282698239   702
16:39:47.739 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:47.739156] [0x00006da6][0x00007f0eb2155700] [info] [aggregator.h:70] 329782366920938463463374607431768211455   674
16:39:47.744 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:47.744675] [0x00006da6][0x00007f0eae74e700] [info] [processing_statistics_logger.cc:111] Stage 1 Triggers: { stream: 'test', manual: 0, count: 0, size: 0, matches: 0, timed: 15, UserRecords: 19, KinesisRecords: 15 }
16:39:47.744 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:47.744700] [0x00006da6][0x00007f0eae74e700] [info] [processing_statistics_logger.cc:114] Stage 2 Triggers: { stream: 'test', manual: 0, count: 0, size: 0, matches: 0, timed: 3, KinesisRecords: 18, PutRecords: 3 }
16:39:47.744 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:47.744708] [0x00006da6][0x00007f0eae74e700] [info] [processing_statistics_logger.cc:129] (test) Average Processing Time: 42 ms
16:39:47.961 [kpl-daemon-0003] WARN com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:47.961743] [0x00006da6][0x00007f0eb4959700] [warning] [retrier.cc:204] Record went to shard shardId-000000000703 instead of the predicted shard 674; this usually means the sharp map has changed.
16:39:47.961 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:47.961767] [0x00006da6][0x00007f0eb4959700] [info] [shard_map.cc:74] Deciding to update shard map for "test" with a gap between seen_at and updated_at_ of 9886.21 ms predicted shard:  674
16:39:47.961 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:47.961778] [0x00006da6][0x00007f0eb4959700] [info] [shard_map.cc:87] Updating shard map for stream "test"
16:39:47.968 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:47.968886] [0x00006da6][0x00007f0eadd4d700] [info] [shard_map.cc:148] Successfully updated shard map for stream "test" found 12 shards
16:39:48.019 [kpl-daemon-0003] WARN com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:48.019341] [0x00006da6][0x00007f0eb1754700] [warning] [retrier.cc:204] Record went to shard shardId-000000000703 instead of the predicted shard 674; this usually means the sharp map has changed.
16:39:48.019 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:48.019366] [0x00006da6][0x00007f0eb1754700] [info] [aggregator.h:70] 329782366920938463463374607431768211455   703
16:39:57.739 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:57.739798] [0x00006da6][0x00007f0eb2b56700] [info] [aggregator.h:70] 11267647932558653966460912964485513215	678
16:39:57.739 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:57.739854] [0x00006da6][0x00007f0eb2b56700] [info] [aggregator.h:70] 42035295865117307932921825928971026431	681
16:39:57.740 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:57.739876] [0x00006da6][0x00007f0eb2b56700] [info] [aggregator.h:70] 53302943797675961899382738893456539647	681
16:39:57.740 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:57.739894] [0x00006da6][0x00007f0eb2b56700] [info] [aggregator.h:70] 74570591730234615865843651857942052863	682
16:39:57.740 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:57.739911] [0x00006da6][0x00007f0eb2b56700] [info] [aggregator.h:70] 95838239662793269832304564822427566079	685
16:39:57.740 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:57.739929] [0x00006da6][0x00007f0eb2b56700] [info] [aggregator.h:70] 117105887595351923798765477786913079295   688
16:39:57.740 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:57.739946] [0x00006da6][0x00007f0eb2b56700] [info] [aggregator.h:70] 138373535527910577765226390751398592511   688
16:39:57.740 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:57.739962] [0x00006da6][0x00007f0eb2b56700] [info] [aggregator.h:70] 159641183460469231731687303715884105727   689
16:39:57.740 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:57.739978] [0x00006da6][0x00007f0eb2b56700] [info] [aggregator.h:70] 180908831393027885698148216680369618943   692
16:39:57.740 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:57.739994] [0x00006da6][0x00007f0eb2b56700] [info] [aggregator.h:70] 202176479325586539664609129644855132159   695
16:39:57.740 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:57.740010] [0x00006da6][0x00007f0eb2b56700] [info] [aggregator.h:70] 223444127258145193631070042609340645375   695
16:39:57.740 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:57.740026] [0x00006da6][0x00007f0eb2b56700] [info] [aggregator.h:70] 244711775190703847597530955573826158591   696
16:39:57.740 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:57.740043] [0x00006da6][0x00007f0eb2b56700] [info] [aggregator.h:70] 265979423123262501563991868538311671807   699
16:39:57.740 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:57.740060] [0x00006da6][0x00007f0eb2b56700] [info] [aggregator.h:70] 287247071055821155530452781502797185023   702
16:39:57.740 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:57.740075] [0x00006da6][0x00007f0eb2b56700] [info] [aggregator.h:70] 308514718988379809496913694467282698239   702
16:39:57.740 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:39:57.740099] [0x00006da6][0x00007f0eb2b56700] [info] [aggregator.h:70] 329782366920938463463374607431768211455   703
16:40:02.744 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:40:02.744848] [0x00006da6][0x00007f0eae74e700] [info] [processing_statistics_logger.cc:111] Stage 1 Triggers: { stream: 'test', manual: 0, count: 0, size: 0, matches: 0, timed: 25, UserRecords: 33, KinesisRecords: 25 }
16:40:02.745 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:40:02.744893] [0x00006da6][0x00007f0eae74e700] [info] [processing_statistics_logger.cc:114] Stage 2 Triggers: { stream: 'test', manual: 0, count: 0, size: 0, matches: 0, timed: 4, KinesisRecords: 26, PutRecords: 4 }
16:40:02.745 [kpl-daemon-0003] INFO com.amazonaws.services.kinesis.producer.LogInputStreamReader - [2021-08-04 16:40:02.744900] [0x00006da6][0x00007f0eae74e700] [info] [processing_statistics_logger.cc:129] (test) Average Processing Time: 59 ms

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@avahuang0429 avahuang0429 added dependencies Pull requests that update a dependency file enhancement labels Jul 29, 2021
@joshua-kim joshua-kim mentioned this pull request Aug 3, 2021
@ashwing
Copy link
Contributor

ashwing commented Aug 3, 2021

So we need a test where we,

  1. create a stream with N shards
  2. pump load into the stream
  3. verify all N shards receives traffic
  4. reshard stream to N+M shards
  5. verify all N+M shards receives traffic
  6. reshard stream to N+M-K shards
  7. verify all N+M-K shards receives traffic

Also make sure we do hashkey based put -

@avahuang0429
Copy link
Contributor Author

So we need a test where we,

  1. create a stream with N shards
  2. pump load into the stream
  3. verify all N shards receives traffic
  4. reshard stream to N+M shards
  5. verify all N+M shards receives traffic
  6. reshard stream to N+M-K shards
  7. verify all N+M-K shards receives traffic

Also make sure we do hashkey based put -

tested with stream of 8 shards. updated to 16 shards and scaled down to 12, all of these events all shards were receiving data as expected

Copy link
Contributor

@ashwing ashwing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified from the logs that new shard ids are picked up on resharding and records are mapped to their hash key range.

@avahuang0429 avahuang0429 merged commit 22a8f86 into master Aug 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants