The data are not updated when `UseCompactedReplicator` is `true`
mariomastrodicasa opened this issue · 1 comments
mariomastrodicasa commented
Describe the bug
Enabling the usage of KNetCompactedReplicator
, the test reports Sequence contains no elements when
KEFCore/test/KEFCore.Test/Program.cs
Line 183 in d5c8d5d
To Reproduce
Steps to reproduce the behavior:
- Execute
MASES.EntityFrameworkCore.KNet.Test.exe .\KNetReplicatorTest.json
- Wait the point of exception
- See error
Expected behavior
The code shall execute without exceptions
Screenshots
N/A
Desktop (please complete the following information):
- Current HEAD version
Additional context
N/A
masesdevelopers commented
The problem comes from two different elements in the chain:
- The function
stores in memory the
IEnumerable<ValueBuffer>
associated the theIEntityType
- however
builds the
IEnumerable<ValueBuffer>
from latest known data when theKNetCompactedReplicator
is enabled - contrary, using Apache Kafka Streams the class
KafkaStreamsBaseRetriever
regenerate the enumerator when needed
The solution is to create an enumerator like KafkaStreamsBaseRetriever
.