After running mailjdbc test on 10.3 branch, select * from REFRESH.INBOX gave me error like:
ERROR XJ001: Java exception: 'Java heap space: java.lang.OutOfMemoryError'
I also see the same error on 10.5 branch.
I inculde my mailsdb directory in this bug too.
How to reproduce this issue:
1. cd mailjdbc
2. java org.apache.derbyTesting.system.mailjdbc.MailJdbc embedded
3. Wait for an hour and ignore Primary key violation error
( : INFO :Refresh Thread : Error while inserting attachments:The statement was ab
orted because it would have caused a duplicate key value in a unique or primary
key constraint or unique index identified by 'ATTACH__PK' defined on 'ATTACH'.)