Skip to content

Commit

Permalink
[test] enforce defragmentation of XML resources
Browse files Browse the repository at this point in the history
By setting the allowed-fragmentation attribute value to -1 any
modification will trigger the defragmentation of the structural(?) index (AKA BTree).

This setting triggers the NPE described in eXist-db#5273 on the very first call to

update (replace|insert)

Unfortunately, it also triggers a totally different class of NPEs in
XQueryTrigger and other subsystems of the database.
  • Loading branch information
line-o committed Apr 11, 2024
1 parent 734202b commit 7c3ea3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exist-core/src/test/resources-filtered/conf.xml
Original file line number Diff line number Diff line change
Expand Up @@ -929,7 +929,7 @@
containing valid nodes.
-->
<xupdate allowed-fragmentation="50000" enable-consistency-checks="no"/>
<xupdate allowed-fragmentation="-1" enable-consistency-checks="no"/>

<!--
Load this configuration into Saxon
Expand Down

0 comments on commit 7c3ea3b

Please sign in to comment.