major
minor
defect
major
minor
The KBDataProducerTask stores the last 50 messages it has sent. The only use for this is in the AbstractTLSyncTest. For this purpose, the entire tl:ChangeSet is kept in memory. With a small test dataset, this amounted to 500 KB of memory for 600 new objects in a single changeset.
The number of messages stored can be configured. The default is currently 50. Since this is used only in tests, the default should be set to 0, and a higher value should be configured only in tests.
Implementation
The default value is removed. As a result, the implicit default of 0 applies. No changes are required for the tests that use this method. They are all located in the test.com.top_logic.kafka project. A value of 5,000 is already explicitly configured there.
Test
- Check in the code whether the default value for ` KBDataProducerTask.Config.getCachedEventSize()` has been removed or is 0.
To check in a running application:
- Start one of the com.top_logic.sync.demo applications.
- Set an appropriate breakpoint in the debugger to verify that KBDataProducerTask._lastSentEvents is null or has a size of 0.