Skip to content

Conversation

@aramashkan
Copy link

We using HistoryPolicy as below :

public class HistoryCustomizer implements DescriptorCustomizer {
    @Override
    public void customize(ClassDescriptor descriptor) throws Exception {
        HistoryPolicy policy = new HistoryPolicy();
        policy.addHistoryTableName(descriptor.getTables().get(0).getQualifiedName() + "_hist");
        if (descriptor.getTables().size() > 1) {
            policy.addHistoryTableName(descriptor.getTables().get(1).getQualifiedName() + "_hist");
        }
        policy.addStartFieldName("start_date");
        policy.addEndFieldName("end_date");
        policy.setShouldHandleWrites(true);

        descriptor.setHistoryPolicy(policy);
    }
}

After applying customizer keys contained in ConcurrentFixedCache's map will be changed. That's causing leak issue like below:
Screenshot 2020-07-22 at 17 27 18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants