[OPENDJ-746] ArrayIndexOutOfBoundsException during OnlineImport / Replication Initialization Created: 07/Feb/13  Updated: 08/Nov/19  Resolved: 21/Jun/13

Status: Done
Project: OpenDJ
Component/s: backends
Affects Version/s: 2.6.0, 2.4.6
Fix Version/s: 2.6.0

Type: Bug Priority: Major
Reporter: Ludovic Poitou Assignee: Ludovic Poitou
Resolution: Fixed Votes: 0
Labels: None
Environment:

All.


Attachments: File data.ldif    
Issue Links:
Duplicate
is duplicated by OPENDJ-114 Import failure: cursors left open due... Done
Relates
relates to OPENDJ-114 Import failure: cursors left open due... Done
is related to OPENDJ-527 rebuild-index --rebuildAll corrupts t... Done
Dev Assignee: Ludovic Poitou
QA Assignee: Gary Williams

 Description   

OpenDJ nightly tests have been moved to a new machine which has lots of memory and cpu cores (32).
On this machine the InitOnlineTests of replication have been failing consistently.
After investigation, there is an ArrayIndexOutOfBoundsException is thrown deep in the indexing code. The exception cause the import to be cancelled and fails the tests.
The issue lies on line 1852 of jeb/importLDIF/Importer.java. When we need to add a key to the index, we check if there's enough space. However, it is not considered the case where there isn't but the key size also exceeds a complete buffer size.

We need to fix this bug, add a specific test for that problem, and also fix the InitOnlineTest to avoid using large values of an attribute that is indexed by default (this is not the goal of that specific unit test).



 Comments   
Comment by Ludovic Poitou [ 11/Feb/13 ]

OPENDJ-114 might be a consequence of this issue.
I've seen similar error while trying to reproduce this issue. I think exception reporting back up is not fully correct.

Comment by Matthew Swift [ 11/Feb/13 ]

Hi Ludo - I assume that you would like to look at this since you added it to the sprint. Reassign as needed.

Comment by Matthew Swift [ 05/Jun/13 ]

The two issues may be related, although OPENDJ-114 could be a result of append mode.

Comment by Ludovic Poitou [ 21/Jun/13 ]

Reproduced importing offline a very specific LDIF.
Fix in progress

Comment by Ludovic Poitou [ 21/Jun/13 ]

Datafile to reproduce the issue, in conjunction with very low heap size (-Xms96M -Xmx96M)

Comment by Ludovic Poitou [ 21/Jun/13 ]

Committed as revision 9041, reviewed as CR-1904.

Comment by Matthew Swift [ 07/Nov/19 ]

Moved to closed state because the fixVersion has already been released.

Generated at Thu Jan 28 14:39:39 UTC 2021 using Jira 7.13.12#713012-sha1:6e07c38070d5191bbf7353952ed38f111754533a.