The KBDataProducerTask saves the last 50 messages it has sent. The only use for this is in the AbstractTLSyncTest. For this the whole tl:ChangeSet is kept in memory. On a small test dataset, that was 500 KB of memory for 600 new objects combined, in one changeset.
The number of stored messages can be configured. The default is currently 50. Since it is only used in tests, the default should be set to 0 and a higher value should only be configured in tests.
The default is removed. This makes the implicit default 0. Nothing needs to be changed for the tests that use this method. They are all located in the project test.com.top_logic.kafka. A value of 5'000 is already explicitly configured there.
- Check in the code if the default of KBDataProducerTask.Config.getCachedEventSize() has been removed or is 0.
Check in a running application:
- Start one of the com.top_logic.sync.demo applications.
- In the debugger set a suitable breakpoint to check that KBDataProducerTask._lastSentEvents is null or has size 0.