Skip to content

Commit e0ea2bc

Browse files
author
Nico Verwer
committed
Merge remote-tracking branch 'origin/6.3.0-branch' into JB-current
2 parents cbf9adc + ef0e86f commit e0ea2bc

File tree

82 files changed

+617
-1019
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+617
-1019
lines changed

.github/actions/install-mvnd/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ runs:
4848
- name: Cache mvnd
4949
if: inputs.cache == 'true'
5050
id: cache-mvnd
51-
uses: actions/cache@v3
51+
uses: actions/cache@v4
5252
with:
5353
path: |
5454
${{ inputs.install-path }}/${{ env.MVND_NAME }}.zip

.github/workflows/ci-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- name: Set up JDK 8
1414
uses: actions/setup-java@v4
1515
with:
16-
distribution: temurin
16+
distribution: liberica
1717
java-version: '8'
1818
- name: Make buildkit default
1919
uses: docker/setup-buildx-action@v3

.github/workflows/ci-test.yml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on: [push, pull_request]
33
permissions:
44
contents: read
55
env:
6-
MAVEN_OPTS: -XX:StartFlightRecording=maxsize=5g,disk=true,dumponexit=true,settings=default,filename=./ -DtrimStackTrace=false -D'maven.resolver.transport=wagon'
6+
MAVEN_OPTS: -DtrimStackTrace=false -D'maven.resolver.transport=wagon'
77
DEV_JDK: '8'
88
jobs:
99
license:
@@ -13,19 +13,20 @@ jobs:
1313
- uses: actions/checkout@v4
1414
- uses: actions/setup-java@v4
1515
with:
16-
distribution: temurin
16+
distribution: liberica
1717
java-version: ${{ env.DEV_JDK }}
1818
cache: 'maven'
1919
- run: mvn -V -B license:check
2020
timeout-minutes: 60
2121
dependencies:
2222
name: Dependency checks
23+
if: ${{ github.event_name != 'pull_request' && github.ref == 'refs/heads/develop' }}
2324
runs-on: ubuntu-latest
2425
steps:
2526
- uses: actions/checkout@v4
2627
- uses: actions/setup-java@v4
2728
with:
28-
distribution: temurin
29+
distribution: liberica
2930
java-version: ${{ env.DEV_JDK }}
3031
cache: 'maven'
3132
- name: OWASP dependency check
@@ -40,26 +41,20 @@ jobs:
4041
matrix:
4142
os: [ubuntu-latest, windows-latest, macOS-latest]
4243
jvm: ['8']
43-
exclude:
44-
- os: macOS-latest
45-
jvm: '8'
46-
include:
47-
- os: macOS-latest
48-
jvm: '11'
4944
runs-on: ${{ matrix.os }}
5045
steps:
5146
- uses: actions/checkout@v4
5247
- name: Set up JDK
5348
uses: actions/setup-java@v4
5449
with:
55-
distribution: temurin
50+
distribution: liberica
5651
java-version: ${{ matrix.jvm }}
5752
cache: 'maven'
5853
- name: Install Maven Daemon
5954
id: install-mvnd
6055
uses: ./.github/actions/install-mvnd
6156
with:
62-
version: '1.0.1'
57+
version: '1.0.2'
6358
file-version-suffix: ''
6459
cache: 'true'
6560
- name: Maven Build
@@ -72,7 +67,7 @@ jobs:
7267
if: ${{ matrix.os == 'ubuntu-latest' }}
7368
run: ${{ steps.install-mvnd.outputs.mvnd-dir }}/mvnd -V -B -q -T 1C install javadoc:javadoc -DskipTests -D'dependency-check.skip' -D'license.skip' --projects '!exist-distribution,!exist-installer' --also-make
7469
- name: Maven Code Coverage (Develop branch on Linux only)
75-
if: ${{ github.ref == 'refs/heads/develop' && matrix.os == 'ubuntu-latest' }}
70+
if: ${{ github.event_name != 'pull_request' && github.ref == 'refs/heads/develop' && matrix.os == 'ubuntu-latest' }}
7671
env:
7772
CI_NAME: github
7873
BRANCH_NAME_OR_REF: ${{ github.head_ref || github.ref }}
@@ -87,6 +82,5 @@ jobs:
8782
name: ${{ runner.os }}-build-logs
8883
retention-days: 5
8984
path: |
90-
**/*.jfr
9185
**/hs_err_pid*.log
9286
**/target/surefire-reports/*

.github/workflows/ci-xqts.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Set up JDK 8
1313
uses: actions/setup-java@v4
1414
with:
15-
distribution: temurin
15+
distribution: liberica
1616
java-version: '8'
1717
- name: Cache Maven packages
1818
uses: actions/cache@v4

exist-ant/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<parent>
2929
<groupId>org.exist-db</groupId>
3030
<artifactId>exist-parent</artifactId>
31-
<version>6.3.0-SNAPSHOT</version>
31+
<version>6.4.0-SNAPSHOT</version>
3232
<relativePath>../exist-parent</relativePath>
3333
</parent>
3434

exist-core/pom.xml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<parent>
2929
<groupId>org.exist-db</groupId>
3030
<artifactId>exist-parent</artifactId>
31-
<version>6.3.0-SNAPSHOT</version>
31+
<version>6.4.0-SNAPSHOT</version>
3232
<relativePath>../exist-parent</relativePath>
3333
</parent>
3434

@@ -1103,7 +1103,7 @@ The BaseX Team. The original license statement is also included below.]]></pream
11031103
</dependency>
11041104
</dependencies>
11051105
<configuration>
1106-
<argLine>@{jacocoArgLine} -Dfile.encoding=${project.build.sourceEncoding}</argLine>
1106+
<argLine>@{jacocoArgLine} -Dfile.encoding=${project.build.sourceEncoding} -Dexist.recovery.progressbar.hide=true</argLine>
11071107
<systemPropertyVariables>
11081108
<jetty.home>${project.basedir}/../exist-jetty-config/target/classes/org/exist/jetty</jetty.home>
11091109
<exist.configurationFile>${project.build.testOutputDirectory}/conf.xml</exist.configurationFile>
@@ -1139,18 +1139,17 @@ The BaseX Team. The original license statement is also included below.]]></pream
11391139
<profiles>
11401140
<profile>
11411141
<!--
1142-
Disable parallel tests on Windows.
1143-
When running multiple tests in parallel, Quartz seems to stop eXist-db from shutting down
1144-
on AppVeyor Windows CI, see: https://github.com/quartz-scheduler/quartz/issues/448
1142+
Disable parallel tests on Windows in CI, seems to cause an occasional issue with
1143+
Surefire that produces the Maven error: 'Corrupted channel by directly writing to native stream in forked JVM'.
11451144
-->
1146-
<id>windows-disable-parallel-testing</id>
1145+
<id>windows-disable-parallel-ci-testing</id>
11471146
<activation>
11481147
<os>
11491148
<family>windows</family>
11501149
</os>
11511150
<property>
1152-
<name>env.APPVEYOR</name>
1153-
<value>True</value>
1151+
<name>env.GITHUB_ACTIONS</name>
1152+
<value>true</value>
11541153
</property>
11551154
</activation>
11561155
<build>
@@ -1179,16 +1178,16 @@ The BaseX Team. The original license statement is also included below.]]></pream
11791178
<forkNode implementation="org.apache.maven.plugin.surefire.extensions.SurefireForkNodeFactory" />
11801179
<forkCount>1C</forkCount>
11811180
<reuseForks>false</reuseForks>
1182-
<argLine>-Dfile.encoding=${project.build.sourceEncoding}</argLine>
1181+
<argLine>-Dfile.encoding=${project.build.sourceEncoding} -Dexist.recovery.progressbar.hide=true</argLine>
11831182
<systemPropertyVariables>
11841183
<jetty.home>${project.basedir}/../exist-jetty-config/target/classes/org/exist/jetty</jetty.home>
11851184
<exist.configurationFile>${project.build.testOutputDirectory}/conf.xml</exist.configurationFile>
11861185
<exist.jetty.standalone.webapp.dir>${project.build.testOutputDirectory}/standalone-webapp</exist.jetty.standalone.webapp.dir>
11871186
<log4j.configurationFile>${project.build.testOutputDirectory}/log4j2.xml</log4j.configurationFile>
11881187
</systemPropertyVariables>
11891188
<excludes>
1190-
<!-- NOTE: this test fails on AppVeyor Windows CI with Oracle JDK 11,
1191-
but not on some other windows systems :-/ -->
1189+
<!-- NOTE: this test occasionally fails on Windows CI
1190+
but not on some other Windows systems :-/ -->
11921191
<exclude>org.exist.storage.lock.CollectionLocksTest</exclude>
11931192

11941193
<!-- NOTE: these can still exhibit deadlocks -->

exist-core/src/main/java/org/exist/collections/triggers/XQueryTrigger.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,7 @@ private void execute(final TriggerPhase phase, final TriggerEvent event, final D
411411
compiledQuery = getScript(broker, transaction);
412412
if (compiledQuery == null) {
413413
// NOTE: can occur if there is no such XQueryTrigger library module available in the database
414+
TriggerStatePerThread.clearIfFinished(phase);
414415
return;
415416
}
416417
} catch (final TriggerException e) {
@@ -451,6 +452,7 @@ private void execute(final TriggerPhase phase, final TriggerEvent event, final D
451452
if (LOG.isDebugEnabled()) {
452453
LOG.debug("No such function '" + functionName + "' in XQueryTrigger: " + compiledQuery.getSource());
453454
}
455+
TriggerStatePerThread.clearIfFinished(phase);
454456
return;
455457
}
456458
}

exist-core/src/main/java/org/exist/plugin/PluginsManagerImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ public void addPlugin(final String className) {
241241
// NOTE: must set interrupted flag
242242
Thread.currentThread().interrupt();
243243
}
244-
LOG.error(e);
244+
LOG.warn(e);
245245
}
246246
}
247247

exist-core/src/main/java/org/exist/storage/NativeBroker.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3033,8 +3033,7 @@ public Object start() {
30333033
}
30343034
}.run();
30353035
// create a copy of the old doc to copy the nodes into it
3036-
final DocumentImpl tempDoc = new DocumentImpl(null, null, doc.getCollection(), doc.getDocId(), doc.getFileURI());
3037-
tempDoc.copyOf(this, doc, doc);
3036+
final DocumentImpl tempDoc = new DocumentImpl(null, pool, doc.getCollection(), doc.getDocId(), doc.getFileURI());
30383037
final StreamListener listener = getIndexController().getStreamListener(doc, ReindexMode.STORE);
30393038
// copy the nodes
30403039
final NodeList nodes = doc.getChildNodes();
@@ -3067,7 +3066,7 @@ public Object start() {
30673066
if (LOG.isDebugEnabled()) {
30683067
LOG.debug("Defragmentation took {} ms.", (System.currentTimeMillis() - start));
30693068
}
3070-
} catch(final PermissionDeniedException | IOException e) {
3069+
} catch(IOException e) {
30713070
LOG.error(e);
30723071
}
30733072
}

exist-core/src/main/java/org/exist/storage/ValueIndexFactory.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ public final static byte[] serialize(final Indexable value, final int offset) th
127127
return serialize(value, offset, true);
128128
}
129129

130-
// TODO(AR) switch implementation to various serialize methods in the AtomicValues (requires major version bump)
131130
public final static byte[] serialize(final Indexable value, final int offset, final boolean caseSensitive) throws EXistException {
132131
/* xs:string */
133132
if (Type.subTypeOf(value.getType(), Type.STRING)) {

0 commit comments

Comments
 (0)