Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge main into develop #8

Closed
wants to merge 2,518 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
2518 commits
Select commit Hold shift + click to select a range
c3df0af
GH-4854 remove SPI reference to deprecated & removed ForwardChainingR…
hmottestad Dec 13, 2023
2cc9bb0
Maintain RDFa support
edwardsph Dec 18, 2023
787846c
Undo deprecation
edwardsph Dec 18, 2023
e68ef17
GH-4819 initial support for merge-join
hmottestad Oct 19, 2023
42b69a1
Fixes for closing resources in the LmdbStore. We don't need to free t…
hmottestad Nov 23, 2023
a8fb86a
GH-4819 fix bugs and optimize imports
hmottestad Nov 27, 2023
8580bfe
GH-4819 code cleanup and add javadocs
hmottestad Dec 16, 2023
c24319e
GH-4819 ordered dual union iteration support
hmottestad Dec 19, 2023
c90af45
GH-4819 code cleanup and documentation
hmottestad Dec 20, 2023
1e5c78c
org.locationtech.jts is an eclipse project, but the dash license tool…
hmottestad Dec 13, 2023
a6ec965
GH-4819 Merge Join (#4822)
hmottestad Dec 20, 2023
eb9d21c
GH-4864 support sh:name, sh:description, sh:defaultValue, sh:order, s…
hmottestad Sep 5, 2023
901570a
GH-4770 support adding and removing by path
hmottestad Nov 11, 2023
e5b1dd7
GH-4770 rsx:actualPairwisePath
hmottestad Nov 12, 2023
a05a684
GH-4770 add more test cases and adjust comparison code
hmottestad Nov 16, 2023
72813eb
code cleanup (+1 squashed commit)
hmottestad Dec 24, 2023
a92ae7b
GH-4770 SHACL Property Pair Constraint Components (#4771)
hmottestad Dec 25, 2023
d8bdc75
maven doesn't support http anymore so we should use https in our docu…
hmottestad Dec 30, 2023
cc3782c
GH-4859 add instead of remove QueryRoot for explaining optimized Sail…
frensjan Dec 23, 2023
1ac18bf
GH-4867 log exceptions as warnings during parsing and validation of S…
hmottestad Jan 11, 2024
4de4207
GH-4592 allows users to see variables that are used in compliance tests
hmottestad Jan 12, 2024
39e789b
GH-4592 allow users to see variables used in compliance tests (#4869)
hmottestad Jan 12, 2024
fb2cab4
GH-4867 log exceptions as warnings during parsing and validation of S…
hmottestad Jan 13, 2024
1d47c5a
GH-4859 Add instead of remove QueryRoot for explaining optimized Sail…
hmottestad Jan 13, 2024
a7f062f
Update core/rio/api/src/main/java/org/eclipse/rdf4j/rio/helpers/RDFaP…
edwardsph Jan 15, 2024
57102d1
Update core/rio/api/src/main/java/org/eclipse/rdf4j/rio/helpers/RDFaV…
edwardsph Jan 15, 2024
0ef1d99
GH-4870 MapDB3 based collection factory is now the default instead of…
JervenBolleman Jan 17, 2024
d2dc80b
GH-4866 add tests and fix for loading a persisted MemoryStore with RD…
hmottestad Jan 21, 2024
ce9bd1a
GH-4866 add tests and fix for loading a persisted MemoryStore with RD…
hmottestad Jan 21, 2024
bad4b95
release 4.3.9
hmottestad Jan 21, 2024
44d3ae2
next development iteration: 4.3.10-SNAPSHOT
hmottestad Jan 21, 2024
69e8045
next development iteration: 4.3.10-SNAPSHOT (#4874)
hmottestad Jan 21, 2024
11781a0
4.3.9-release-notes (#4876)
hmottestad Jan 21, 2024
f0d2f52
prepare to merge main
hmottestad Jan 21, 2024
1a77ac1
Merge branch 'temp-main-to-merge' into merge-main-7
hmottestad Jan 21, 2024
5d588a7
wip
hmottestad Jan 21, 2024
4884913
code cleanup
hmottestad Jan 21, 2024
151c313
Merge main into develop (#4877)
hmottestad Jan 22, 2024
4f2f5c4
Run mvn process-resources to fix formatting
edwardsph Jan 22, 2024
0d74ce1
GH-4779 Maintain RDFa support (#4858)
hmottestad Jan 23, 2024
5f67425
GH-4878 optimise sub-select (#4879)
hmottestad Jan 25, 2024
8400bd2
Reduce logging when testing unclosed connections (#4883)
hmottestad Jan 26, 2024
5f512b6
GH-4884 bump maven plugin version
hmottestad Jan 26, 2024
689883c
GH-4886 don't swallow exceptions and always shutdown repo
hmottestad Jan 26, 2024
2618473
Fix typo
lolgab Jan 28, 2024
5d82552
GH-4890 fix bug for retrieving named contexts from ExtensibleStore
hmottestad Jan 29, 2024
6824528
GH-4886 mint new directories for the LmdbStore tests
hmottestad Jan 29, 2024
2306c8b
Fix typo (#4889)
hmottestad Jan 29, 2024
440dc0e
GH-4886 problem with use of @TestFactory and @TempDir (#4887)
hmottestad Jan 29, 2024
d4e13c8
GH-4891 LMDB store: Fix computation of next ID and add reference coun…
kenwenzel Feb 1, 2024
540a948
GH-4891 LMDB store: Integrate context store directly into triple store.
kenwenzel Feb 2, 2024
979a3e6
GH-4896 LMDB store: use same benchmarks as NativeStore
kenwenzel Feb 4, 2024
ff0e425
GH-4896 LMDB store: improve performance by directly storing revisionId
kenwenzel Feb 4, 2024
3996cd8
GH-4896 LMDB: Update benchmarks and improve performance (#4897)
kenwenzel Feb 5, 2024
592b04a
GH-4891 LMDB store: Round trip to triple store to correctly gc any ki…
kenwenzel Feb 2, 2024
6441781
GH-4891 LMDB store: Fix computation of next ID and GC logic (#4892)
hmottestad Feb 9, 2024
6ec209f
docs: Fix broken link to Strabon on About
vorburger Feb 14, 2024
592cbf5
Fix typo
vorburger Feb 17, 2024
9a6f361
GH-4894 revert code that is still in use by our users
hmottestad Feb 4, 2024
a328662
GH-4867 change from Exception to Throwable so that we can also log St…
hmottestad Feb 19, 2024
a353ab1
GH-4910 update maven plugins
hmottestad Feb 19, 2024
8ffccdf
GH-4867 change from Exception to Throwable so that we can also log St…
hmottestad Feb 19, 2024
b505f58
GH-4894 revert code that is still in use by our users (#4895)
hmottestad Feb 19, 2024
a3938c6
GH-4910 update maven plugins (#4911)
hmottestad Feb 19, 2024
927a94e
GH-4913 downgrade to java 17 for main/develop status checks to allow …
hmottestad Feb 19, 2024
5882ab3
GH-4913 downgrade to java 17 for main/develop status checks to allow …
hmottestad Feb 19, 2024
5300320
Merge main into develop (#4912)
hmottestad Feb 19, 2024
a758a25
Fix typo (#4908)
hmottestad Feb 19, 2024
eab3e2c
docs: Fix broken link to Strabon on About (#4906)
hmottestad Feb 19, 2024
fa9496b
GH-4915 Fixed setting parent in ValueExprTripleRef#replaceChildNode
frensjan Feb 20, 2024
c259fdf
GH-4915 Fixed setting parent in ValueExprTripleRef#replaceChildNode (…
hmottestad Feb 20, 2024
5e9dd5b
Merge main into develop (#4917)
hmottestad Feb 21, 2024
fc20ba7
fix: Include !isAbsolute IRI in IllegalArgumentException of Validatin…
vorburger Feb 24, 2024
e2db6a9
GH-4921 Turtle writer does not respect namespaces in IRIs
reckart Feb 29, 2024
cb40e67
fix: Include the invalid IRI in the IllegalArgumentException when val…
hmottestad Mar 6, 2024
d04be02
GH-4861 don't cause OOM exception when throwing IllegalArgumentException
hmottestad Mar 6, 2024
23f3e8c
GH-4861 don't cause OOM exception when throwing IllegalArgumentExcept…
hmottestad Mar 6, 2024
f6292fc
release 4.3.10
hmottestad Mar 6, 2024
350cc5e
next development iteration: 4.3.11-SNAPSHOT
hmottestad Mar 6, 2024
6960bef
set correct version
hmottestad Mar 6, 2024
1c36f76
GH-4921 Turtle writer does not respect namespaces in IRIs
reckart Mar 6, 2024
0e584a4
GH-4921 Turtle writer does not respect namespaces in IRIs
reckart Mar 6, 2024
0722900
GH-4923 Spaces inserted by PropertyPathBuilder cause problems with Al…
reckart Mar 6, 2024
10e9244
GH-4921 Turtle writer does not respect namespaces in IRIs
reckart Mar 6, 2024
4ed0b09
next development iteration: 4.3.11-SNAPSHOT (#4925)
hmottestad Mar 8, 2024
70ab4b6
Merge branch 'merge_main_into_develop_after_release_4.3.10' into merg…
hmottestad Mar 8, 2024
7e6e284
4.3.10-release-notes (#4927)
hmottestad Mar 8, 2024
c39f32a
Merge main into develop (#4930)
hmottestad Mar 8, 2024
5c0a1b3
GH-4923 Spaces inserted by PropertyPathBuilder cause problems with Al…
hmottestad Mar 14, 2024
6f8f8d8
GH-3654 add benchmarks
hmottestad Mar 14, 2024
c396d12
GH-3654 switch to hasmac-jsonld a fork of titanium with improved perf…
hmottestad Nov 29, 2023
4e7a05d
GH-4931 add support for getSubjectByType
hmottestad Mar 15, 2024
0da1e8a
GH-4932 add getValue method
hmottestad Mar 17, 2024
458f2c4
Merge main (#4932)
hmottestad Mar 17, 2024
4608419
GH-4931 improve Configurations class (#4933)
hmottestad Mar 17, 2024
c9f6b06
GH-3654 Support for JSON-LD 1.1 (#4852)
hmottestad Mar 18, 2024
27ce7d6
GH-3654 reverted removal of generalized rdf
hmottestad Mar 20, 2024
14a62d9
GH-3654 reverted removal of generalized rdf (#4934)
hmottestad Mar 20, 2024
1015439
GH-4921 Turtle writer does not respect namespaces in IRIs (#4922)
hmottestad Mar 20, 2024
cb631be
GH-4401 allow the migration process to the new vocabulary to be overr…
hmottestad Mar 22, 2024
b4db49a
GH-4401 bug fix for configuration handling with new vocab (#4935)
hmottestad Mar 22, 2024
3afda22
GH-3654 fixes to be more compatible with existing code (#4940)
hmottestad Mar 27, 2024
b85c384
release 4.3.11
hmottestad Apr 1, 2024
d8f3ab6
next development iteration: 4.3.12-SNAPSHOT
hmottestad Apr 1, 2024
344a282
javadocs for 4.3.11
hmottestad Apr 1, 2024
db04052
news item and release-notes if relevant for 4.3.11
hmottestad Apr 1, 2024
ee3ce16
updated release notes
hmottestad Apr 1, 2024
03dcdc8
next development iteration: 4.3.12-SNAPSHOT (#4945)
hmottestad Apr 1, 2024
f8c5a1e
4.3.11-release-notes (#4947)
hmottestad Apr 1, 2024
1b80a4a
GH-1112 initial implementation for sh:closed
hmottestad Apr 1, 2024
2652dcb
GH-1112 sh:closed within sh:not
hmottestad Apr 11, 2024
09afe01
GH-1112 minor optimizations
hmottestad Apr 11, 2024
1dc2438
GH-1112 support for SPARQL based validation
hmottestad Apr 15, 2024
26be6a5
GH-1112 sh:closed (#4944)
hmottestad Apr 15, 2024
07ca160
GH-4952 - Introduce FedXConfig overrides for FedXRepositoryConfig
vtermanis Apr 17, 2024
641d65c
GH-3654 JSON-LD 1.1 security and caching (#4957)
hmottestad Apr 19, 2024
45681c4
Merge branch 'main' into merge-main-19-april-2024
hmottestad Apr 19, 2024
1ee9857
Remove failing test that has never been in use
hmottestad Apr 19, 2024
f873bc2
Merge branch 'main' into merge-main-19-april-2024
hmottestad Apr 19, 2024
460329b
merge main (#4959)
hmottestad Apr 19, 2024
b784f07
GH-4954 LMDB: Fix GC and record counting for deletions
kenwenzel Apr 17, 2024
25a3df5
GH-4954 LMDB: Save heap allocation of long array.
kenwenzel Apr 22, 2024
143df50
GH-4899 Introduce MapDB3 backed queue to the MapDb3CollectionFactory
JervenBolleman Feb 6, 2024
0e74a66
GH-4899 Use the collection factory provided sets and queues in path
JervenBolleman Feb 6, 2024
e283cde
GH-4899 We should always set a ColletionFactory supplier and allow for
JervenBolleman Feb 6, 2024
5a160df
fixup! GH-4952 - Introduce FedXConfig overrides for FedXRepositoryConfig
vtermanis Apr 30, 2024
f72c49a
fixup! GH-4952 - Introduce FedXConfig overrides for FedXRepositoryConfig
vtermanis Apr 30, 2024
56ac29d
GH-4952 - Add config-via-template example to federation documentation
vtermanis Apr 30, 2024
290d78c
fixup! GH-4952 - Add config-via-template example to federation docume…
vtermanis May 2, 2024
d878c68
GH-4976 update eclipse dash license tool (#4977)
hmottestad May 13, 2024
2f15974
GH-4962: invalidation support for FedX source selection cache + factory
aschwarte10 Apr 29, 2024
03aefb9
GH-4952 - Introduce FedXConfig overrides for FedXRepositoryConfig (#4…
aschwarte10 May 13, 2024
ceb8156
GH-4962: invalidation support for FedX source selection cache + facto…
aschwarte10 May 15, 2024
ccf6250
GH-4954 LMDB: Fix GC and record counting for deletions (#4955)
kenwenzel May 15, 2024
a7a3171
GH-4973 improve performance og inner merge join (#4975)
hmottestad May 16, 2024
f9ed099
GH-4968: server-spring - Close query result on pre-render exception
vtermanis Apr 30, 2024
2082613
GH-4978 Index geosparql points using geo field
ate47 May 16, 2024
493172e
merge main into develop (#4981)
hmottestad May 20, 2024
4626eec
GH-4968: server-spring - Close query result on pre-render exception (…
hmottestad May 21, 2024
9653a02
GH-4983: fine-tune bind join implementation in FedX engine
aschwarte10 May 21, 2024
bdf75fb
Merge main into develop (#4982)
hmottestad May 22, 2024
07d3cc8
GH-4505: Add GeoSPARQL vocabulary constants
linnaung May 26, 2024
e6b2ab1
GH-4993 check if null before using the removedStatementTarget
hmottestad May 30, 2024
a3292ba
GH-4993 check if null before using the removedStatementTarget (#4994)
hmottestad May 30, 2024
d41666b
merge main into develop (#4995)
hmottestad May 30, 2024
a173941
GH-4990: support for zero-length path expression in FedX
aschwarte10 May 29, 2024
6be83a2
GH-4983: fine-tune bind join implementation in FedX engine (#4984)
aschwarte10 May 31, 2024
4d903e4
GH-4990: adjust cloning for context var + unit test coverage
aschwarte10 May 31, 2024
3d218d9
GH-4505: Add GeoSPARQL vocabulary constants (#4988)
hmottestad May 31, 2024
192b4ea
GH-4978 Index geosparql points using geo field (#4979)
hmottestad May 31, 2024
ac2accd
GH-4990: support for zero-length path expression in FedX (#4991)
hmottestad May 31, 2024
576122d
GH-4899 Fix a bug in the PathIteration due strings not matching between
JervenBolleman Apr 30, 2024
8ee693e
GH-4899 Make the new CollectionFactory methods experimental
JervenBolleman May 31, 2024
b7a2976
GH-4899 Add more documentation and throw errors if things are not use…
JervenBolleman May 31, 2024
65ba065
GH-4581 Remove limitedsize evaluation strategies.
JervenBolleman May 21, 2023
a58ff06
GH-4581 Make sure collection factories are used when we use a collection
JervenBolleman Jun 5, 2023
8f5e246
release 4.3.12
hmottestad Jun 1, 2024
c05c6db
next development iteration: 4.3.13-SNAPSHOT
hmottestad Jun 1, 2024
40b4f87
javadocs for 4.3.12
hmottestad Jun 1, 2024
50b0534
GH-5000: Tone down WARN log output for frequent, non-critical events
fkleedorfer Jun 1, 2024
c193dd8
news item and release-notes if relevant for 4.3.12
hmottestad Jun 4, 2024
4b971e2
update release notes
hmottestad Jun 4, 2024
e0f06ad
next development iteration: 4.3.13-SNAPSHOT (#5003)
hmottestad Jun 4, 2024
868dd4b
Merge branch 'main' into merge-main-4312
hmottestad Jun 4, 2024
8494e8e
fixes after merging
hmottestad Jun 4, 2024
e93a375
fixes after merging
hmottestad Jun 4, 2024
72a25ce
4.3.12-release-notes (#5005)
hmottestad Jun 4, 2024
e617653
fixes after merging
hmottestad Jun 4, 2024
510e719
fixes after merging
hmottestad Jun 4, 2024
c58eb52
Merge main into develop (#5011)
hmottestad Jun 4, 2024
9c8fae2
GH-2998 add benchmarks
hmottestad May 18, 2024
7aaffd1
GH-5017 improve performance of Changeset and reduce memory load of Li…
hmottestad May 18, 2024
1932cff
GH-2998 improve memory overflow performance of the NativeStore
hmottestad May 18, 2024
1e16f58
GH-2998 improve memory overflow performance of the LmdbStore
hmottestad May 18, 2024
15e2776
adjust benchmarks
hmottestad May 19, 2024
e322d9c
GH-5013 Wrap logic of gcIds into read transaction to fix resizeMap.
kenwenzel May 20, 2024
6a618c5
GH-5014 resize lmdb at 80%
hmottestad Jun 4, 2024
9cb0c52
better handling of errors and resizing in LMDB
hmottestad Jun 4, 2024
e71e876
GH-2998 AbstractMemoryOverflowModel shared between NativeStore and LM…
hmottestad Jun 4, 2024
1dfd824
GH-5015 improvements to AbstractIRI and models
hmottestad Jun 4, 2024
a7bd86a
fix failing test on mac
hmottestad Jun 4, 2024
e66a4e1
GH-5016 introduce cache for common vocabulary in LMDB Store
hmottestad Jun 4, 2024
860ffb1
changes from review
hmottestad Jun 4, 2024
b423d47
switch from yield to onSpinWait when adding statements in LMDB store
hmottestad Jun 5, 2024
d30285a
try to createStatementIterator once more after exception before givin…
hmottestad Jun 5, 2024
1e08c3c
GH-2998 native store and LMDB store memory overflow performance (#4974)
hmottestad Jun 5, 2024
d9a0ae0
Merge develop into main in anticipation of 5.0.0 release (#5018)
hmottestad Jun 5, 2024
b6ea399
fix milestone script
hmottestad Jun 5, 2024
10f02ea
fix milestone script (#5019)
hmottestad Jun 5, 2024
8dce224
javadocs for 5.0.0-M3
hmottestad Jun 5, 2024
7ad6ac0
news item and release-notes if relevant for 5.0.0-M3
hmottestad Jun 5, 2024
5913fa0
update news item and download links
hmottestad Jun 5, 2024
840e20d
upgrade dependencies with vulnerabilities
hmottestad Jun 5, 2024
b2ddfa0
5.0.0-M3-release-notes (#5020)
hmottestad Jun 5, 2024
fc2b9b4
GH-5024 Fix 'nuclear' delete bug in RDF4JTemplate.delete(IRI, List<Pr…
fkleedorfer Jun 6, 2024
9e0b5b2
GH-5009: Fix position of OPTIONAL in RelationMapBuilder
fkleedorfer Jun 3, 2024
79496bb
GH-5027 improve logging in the ShaclSail
hmottestad Jun 12, 2024
87caad7
GH-5028 Reduce duplicate use of Unique plan node
hmottestad Jun 12, 2024
516bf0a
GH-5027 ShaclSail logging (#5029)
hmottestad Jun 12, 2024
208459f
GH-5030: fix FedXDataset support for queries with FROM clauses
aschwarte10 Jun 14, 2024
6413b02
GH-5030: fix FedXDataset support for queries with FROM clauses (#5031)
hmottestad Jun 17, 2024
babdea0
GH-5009: Fix position of OPTIONAL in RelationMapBuilder (#5010)
hmottestad Jun 17, 2024
1749af8
GH-5000: Tone down WARN log output for frequent, non-critical events …
hmottestad Jun 17, 2024
9aaaf91
GH-5035 update version of mapdb and dependency manage kerby to 1.1.1 …
hmottestad Jun 18, 2024
414ad36
GH-5035 update version of mapdb and dependency manage kerby to 1.1.1 …
hmottestad Jun 18, 2024
099646a
GH-5033: fix pushing of limits for simple ASK queries in FedX
aschwarte10 Jun 18, 2024
7034492
GH-5033: fix pushing of limits for simple ASK queries in FedX (#5034)
hmottestad Jun 19, 2024
689d1eb
GH-5032 add support for overriding SECURE_MODE and WHITELIST JSON-LD …
hmottestad Jun 19, 2024
4773b78
cleanup all rio settings that should have used one of the specialized…
hmottestad Jun 19, 2024
842c175
fix test
hmottestad Jun 19, 2024
4554510
GH-5032 Allow system property to override rio settings for JSON-LD an…
hmottestad Jun 19, 2024
81d2d78
GH-5041 register glassfish implementation of Jakarta JSON with SPI
hmottestad Jun 20, 2024
33880dd
GH-5041 register glassfish implementation of Jakarta JSON with SPI (#…
hmottestad Jun 20, 2024
121240d
GH-5040 add the old rdf:type when using legacy vocabulary
hmottestad Jun 20, 2024
61e1258
GH-5040 add the old rdf:type when using legacy vocabulary (#5043)
hmottestad Jun 20, 2024
8b31432
release 5.0.0
hmottestad Jun 20, 2024
1b7a960
next development iteration: 5.0.1-SNAPSHOT
hmottestad Jun 20, 2024
67ea4a5
next development iteration: 5.0.1-SNAPSHOT (#5044)
hmottestad Jun 20, 2024
6d37183
javadocs for 5.0.0 (#5046)
hmottestad Jun 20, 2024
8c90fd7
added info about shacl
hmottestad Jun 6, 2024
26cc22a
Update 5.0.0.md
JervenBolleman Jun 6, 2024
f6b6457
Update 5.0.0.md release notes for federation improvements
aschwarte10 Jun 18, 2024
c925822
updates to the release notes
hmottestad Jun 20, 2024
b449335
updates to the release notes
hmottestad Jun 20, 2024
8e9043b
5.0.0 Release Notes (#5025)
hmottestad Jun 20, 2024
5a6b5f2
GH-5048: updated spring dependency to fix CVEs
barthanssens Jun 23, 2024
52b4106
GH-4784 switched approach for deadlock prevention (#5001)
hmottestad Jun 28, 2024
935f515
GH-5059 remove calls to E(...) when the return value is already being…
hmottestad Jun 28, 2024
01b7798
GH-5055 make mapdb3 default for the FedX engine as well
JervenBolleman Jun 29, 2024
e0e9868
GH-5050: add netty dependency management to fix CVEs (#5051)
barthanssens Jun 30, 2024
81eb983
GH-5060: use more recent version of zookeeper to fix CVE (#5062)
barthanssens Jul 1, 2024
a9cc8ad
Un-deprecate RDFa parser setting
edwardsph Jul 5, 2024
3413423
GH-4779: Un-deprecate RDFa parser setting (#5069)
hmottestad Jul 6, 2024
9aab536
GH-5052: use more recent version of snappy to fix CVEs (#5065)
barthanssens Jul 9, 2024
e5faa2c
GH-5059 improve error handling and logging
hmottestad Jul 9, 2024
ae61579
GH-5048: updated spring dependency to fix CVEs (#5049)
hmottestad Jul 9, 2024
5ed5bad
GH-5059 remove calls to E(...) when the return value is already being…
hmottestad Jul 9, 2024
b2c2e30
GH-5024 Fix 'nuclear' delete bug in RDF4JTemplate.delete(IRI, List) (…
hmottestad Jul 9, 2024
8ed93eb
fix minor code formatting issues
hmottestad Jul 9, 2024
dd47bfc
GH-5024 Fix 'nuclear' delete bug in RDF4JTemplate.delete(IRI, List) …
hmottestad Jul 9, 2024
6bee96d
release 5.0.1
hmottestad Jul 9, 2024
e7081ed
next development iteration: 5.0.2-SNAPSHOT
hmottestad Jul 9, 2024
42b8912
javadocs for 5.0.1
hmottestad Jul 9, 2024
09c8013
news item and release-notes if relevant for 5.0.1
hmottestad Jul 9, 2024
3642ac8
update release notes
hmottestad Jul 9, 2024
097f568
next development iteration: 5.0.2-SNAPSHOT (#5071)
hmottestad Jul 9, 2024
845744b
update release notes
hmottestad Jul 10, 2024
809bf89
GH-5073: added note on CVEs
barthanssens Jul 10, 2024
33be23c
GH-5073: added note on CVEs (#5074)
hmottestad Jul 10, 2024
2a998c3
5.0.1-release-notes (#5073)
hmottestad Jul 10, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
eclipse-rdf4jGH-5059 remove calls to E(...) when the return value is …
…already being checked
  • Loading branch information
hmottestad committed Jun 28, 2024
commit 935f5155bbc742e2fc999383603749851b80911b
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,12 @@ public long[] next() {
Varint.writeUnsigned(minKeyBuf, record[0]);
minKeyBuf.flip();
keyData.mv_data(minKeyBuf);
lastResult = E(mdb_cursor_get(cursor, keyData, valueData, MDB_SET));
if (lastResult != 0) {
lastResult = mdb_cursor_get(cursor, keyData, valueData, MDB_SET);
if (lastResult != MDB_SUCCESS) {
// use MDB_SET_RANGE if key was deleted
lastResult = E(mdb_cursor_get(cursor, keyData, valueData, MDB_SET_RANGE));
lastResult = mdb_cursor_get(cursor, keyData, valueData, MDB_SET_RANGE);
}
if (lastResult != 0) {
if (lastResult != MDB_SUCCESS) {
closeInternal(false);
return null;
}
Expand All @@ -119,16 +119,16 @@ public long[] next() {
}

if (fetchNext) {
lastResult = E(mdb_cursor_get(cursor, keyData, valueData, MDB_NEXT));
lastResult = mdb_cursor_get(cursor, keyData, valueData, MDB_NEXT);
fetchNext = false;
} else {
if (minKeyBuf != null) {
// set cursor to min key
keyData.mv_data(minKeyBuf);
lastResult = E(mdb_cursor_get(cursor, keyData, valueData, MDB_SET_RANGE));
lastResult = mdb_cursor_get(cursor, keyData, valueData, MDB_SET_RANGE);
} else {
// set cursor to first item
lastResult = E(mdb_cursor_get(cursor, keyData, valueData, MDB_NEXT));
lastResult = mdb_cursor_get(cursor, keyData, valueData, MDB_NEXT);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,12 @@ public long[] next() {
index.toKey(minKeyBuf, quad[0], quad[1], quad[2], quad[3]);
minKeyBuf.flip();
keyData.mv_data(minKeyBuf);
lastResult = E(mdb_cursor_get(cursor, keyData, valueData, MDB_SET));
if (lastResult != 0) {
lastResult = mdb_cursor_get(cursor, keyData, valueData, MDB_SET);
if (lastResult != MDB_SUCCESS) {
// use MDB_SET_RANGE if key was deleted
lastResult = E(mdb_cursor_get(cursor, keyData, valueData, MDB_SET_RANGE));
lastResult = mdb_cursor_get(cursor, keyData, valueData, MDB_SET_RANGE);
}
if (lastResult != 0) {
if (lastResult != MDB_SUCCESS) {
closeInternal(false);
return null;
}
Expand All @@ -153,16 +153,16 @@ public long[] next() {
}

if (fetchNext) {
lastResult = E(mdb_cursor_get(cursor, keyData, valueData, MDB_NEXT));
lastResult = mdb_cursor_get(cursor, keyData, valueData, MDB_NEXT);
fetchNext = false;
} else {
if (minKeyBuf != null) {
// set cursor to min key
keyData.mv_data(minKeyBuf);
lastResult = E(mdb_cursor_get(cursor, keyData, valueData, MDB_SET_RANGE));
lastResult = mdb_cursor_get(cursor, keyData, valueData, MDB_SET_RANGE);
} else {
// set cursor to first item
lastResult = E(mdb_cursor_get(cursor, keyData, valueData, MDB_NEXT));
lastResult = mdb_cursor_get(cursor, keyData, valueData, MDB_NEXT);
}
}

Expand All @@ -172,7 +172,7 @@ public long[] next() {
lastResult = MDB_NOTFOUND;
} else if (groupMatcher != null && !groupMatcher.matches(keyData.mv_data())) {
// value doesn't match search key/mask, fetch next value
lastResult = E(mdb_cursor_get(cursor, keyData, valueData, MDB_NEXT));
lastResult = mdb_cursor_get(cursor, keyData, valueData, MDB_NEXT);
} else {
// Matching value found
index.keyToQuad(keyData.mv_data(), quad);
Expand All @@ -183,8 +183,6 @@ public long[] next() {
}
closeInternal(false);
return null;
} catch (IOException e) {
throw new SailException(e);
} finally {
txnLock.unlockRead(stamp);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ static <T> T transaction(long env, Transaction<T> transaction) throws IOExceptio
int err;
try {
ret = transaction.exec(stack, txn);
err = E(mdb_txn_commit(txn));
err = mdb_txn_commit(txn);
} catch (Throwable t) {
mdb_txn_abort(txn);
throw t;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ private synchronized boolean update(Object element, boolean add) throws IOExcept
keyVal.mv_data(keyBuf);

if (add) {
if (E(mdb_put(factory.writeTxn, dbi, keyVal, dataVal, MDB_NOOVERWRITE)) == MDB_SUCCESS) {
if (mdb_put(factory.writeTxn, dbi, keyVal, dataVal, MDB_NOOVERWRITE) == MDB_SUCCESS) {
size++;
return true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ protected void filterUsedIds(Collection<Long> ids) throws IOException {
keyBuf.clear();
Varint.writeUnsigned(keyBuf, id);
keyData.mv_data(keyBuf.flip());
if (E(mdb_get(txn, contextsDbi, keyData, valueData)) == MDB_SUCCESS) {
if (mdb_get(txn, contextsDbi, keyData, valueData) == MDB_SUCCESS) {
it.remove();
}
}
Expand All @@ -587,15 +587,15 @@ protected void filterUsedIds(Collection<Long> ids) throws IOException {

if (fullScan) {
long[] quad = new long[4];
int rc = E(mdb_cursor_get(cursor, keyData, valueData, MDB_FIRST));
int rc = mdb_cursor_get(cursor, keyData, valueData, MDB_FIRST);
while (rc == MDB_SUCCESS && !ids.isEmpty()) {
index.keyToQuad(keyData.mv_data(), quad);
ids.remove(quad[0]);
ids.remove(quad[1]);
ids.remove(quad[2]);
ids.remove(quad[3]);

rc = E(mdb_cursor_get(cursor, keyData, valueData, MDB_NEXT));
rc = mdb_cursor_get(cursor, keyData, valueData, MDB_NEXT);
}
} else {
for (Iterator<Long> it = ids.iterator(); it.hasNext();) {
Expand Down Expand Up @@ -625,15 +625,15 @@ protected void filterUsedIds(Collection<Long> ids) throws IOException {

// set cursor to min key
keyData.mv_data(keyBuf);
int rc = E(mdb_cursor_get(cursor, keyData, valueData, MDB_SET_RANGE));
int rc = mdb_cursor_get(cursor, keyData, valueData, MDB_SET_RANGE);
boolean exists = false;
while (!exists && rc == 0) {
while (!exists && rc == MDB_SUCCESS) {
if (mdb_cmp(txn, dbi, keyData, maxKey) > 0) {
// id was not found
break;
} else if (!matcher.matches(keyData.mv_data())) {
// value doesn't match search key/mask, fetch next value
rc = E(mdb_cursor_get(cursor, keyData, valueData, MDB_NEXT));
rc = mdb_cursor_get(cursor, keyData, valueData, MDB_NEXT);
} else {
exists = true;
}
Expand Down Expand Up @@ -708,24 +708,24 @@ protected double cardinality(long subj, long pred, long obj, long context) throw

// set cursor to min key
keyData.mv_data(keyBuf);
int rc = E(mdb_cursor_get(cursor, keyData, valueData, MDB_SET_RANGE));
if (rc != 0 || mdb_cmp(txn, dbi, keyData, maxKey) >= 0) {
int rc = mdb_cursor_get(cursor, keyData, valueData, MDB_SET_RANGE);
if (rc != MDB_SUCCESS || mdb_cmp(txn, dbi, keyData, maxKey) >= 0) {
break;
} else {
Varint.readListUnsigned(keyData.mv_data(), s.minValues);
}

// set cursor to max key
keyData.mv_data(maxKeyBuf);
rc = E(mdb_cursor_get(cursor, keyData, valueData, MDB_SET_RANGE));
if (rc != 0) {
rc = mdb_cursor_get(cursor, keyData, valueData, MDB_SET_RANGE);
if (rc != MDB_SUCCESS) {
// directly go to last value
rc = E(mdb_cursor_get(cursor, keyData, valueData, MDB_LAST));
rc = mdb_cursor_get(cursor, keyData, valueData, MDB_LAST);
} else {
// go to previous value of selected key
rc = E(mdb_cursor_get(cursor, keyData, valueData, MDB_PREV));
rc = mdb_cursor_get(cursor, keyData, valueData, MDB_PREV);
}
if (rc == 0) {
if (rc == MDB_SUCCESS) {
Varint.readListUnsigned(keyData.mv_data(), s.maxValues);
// this is required to correctly estimate the range size at a later point
s.startValues[s.MAX_BUCKETS] = s.maxValues;
Expand All @@ -747,7 +747,7 @@ protected double cardinality(long subj, long pred, long obj, long context) throw
keyData.mv_data(keyBuf);

int currentSamplesCount = 0;
rc = E(mdb_cursor_get(cursor, keyData, valueData, MDB_SET_RANGE));
rc = mdb_cursor_get(cursor, keyData, valueData, MDB_SET_RANGE);
while (rc == MDB_SUCCESS && currentSamplesCount < s.MAX_SAMPLES_PER_BUCKET) {
if (mdb_cmp(txn, dbi, keyData, maxKey) >= 0) {
endOfRange = true;
Expand Down Expand Up @@ -776,8 +776,8 @@ protected double cardinality(long subj, long pred, long obj, long context) throw
}
}
}
rc = E(mdb_cursor_get(cursor, keyData, valueData, MDB_NEXT));
if (rc != 0) {
rc = mdb_cursor_get(cursor, keyData, valueData, MDB_NEXT);
if (rc != MDB_SUCCESS) {
// no more elements are available
endOfRange = true;
}
Expand Down Expand Up @@ -873,14 +873,14 @@ public boolean storeTriple(long subj, long pred, long obj, long context, boolean
return recordCache.storeRecord(quad, explicit);
}

int rc = E(mdb_put(writeTxn, mainIndex.getDB(explicit), keyVal, dataVal, MDB_NOOVERWRITE));
int rc = mdb_put(writeTxn, mainIndex.getDB(explicit), keyVal, dataVal, MDB_NOOVERWRITE);
if (rc != MDB_SUCCESS && rc != MDB_KEYEXIST) {
throw new IOException(mdb_strerror(rc));
}
stAdded = rc == MDB_SUCCESS;
boolean foundImplicit = false;
if (explicit && stAdded) {
foundImplicit = E(mdb_del(writeTxn, mainIndex.getDB(false), keyVal, dataVal)) == MDB_SUCCESS;
foundImplicit = mdb_del(writeTxn, mainIndex.getDB(false), keyVal, dataVal) == MDB_SUCCESS;
}

if (stAdded) {
Expand Down Expand Up @@ -920,7 +920,7 @@ private void incrementContext(MemoryStack stack, long context) throws IOExceptio
idVal.mv_data(bb);
MDBVal dataVal = MDBVal.calloc(stack);
long newCount = 1;
if (E(mdb_get(writeTxn, contextsDbi, idVal, dataVal)) == MDB_SUCCESS) {
if (mdb_get(writeTxn, contextsDbi, idVal, dataVal) == MDB_SUCCESS) {
// update count
newCount = Varint.readUnsigned(dataVal.mv_data()) + 1;
}
Expand All @@ -944,7 +944,7 @@ private boolean decrementContext(MemoryStack stack, long context) throws IOExcep
bb.flip();
idVal.mv_data(bb);
MDBVal dataVal = MDBVal.calloc(stack);
if (E(mdb_get(writeTxn, contextsDbi, idVal, dataVal)) == MDB_SUCCESS) {
if (mdb_get(writeTxn, contextsDbi, idVal, dataVal) == MDB_SUCCESS) {
// update count
long newCount = Varint.readUnsigned(dataVal.mv_data()) - 1;
if (newCount <= 0) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ protected boolean update(long[] quad, boolean explicit, boolean add) throws IOEx
keyBuf.flip();
keyVal.mv_data(keyBuf);

boolean foundExplicit = E(mdb_get(writeTxn, dbiExplicit, keyVal, dataVal)) == MDB_SUCCESS &&
boolean foundExplicit = mdb_get(writeTxn, dbiExplicit, keyVal, dataVal) == MDB_SUCCESS &&
(dataVal.mv_data().get(0) & 0b1) != 0;
boolean foundImplicit = !foundExplicit && E(mdb_get(writeTxn, dbiInferred, keyVal, dataVal)) == MDB_SUCCESS
boolean foundImplicit = !foundExplicit && mdb_get(writeTxn, dbiInferred, keyVal, dataVal) == MDB_SUCCESS
&&
(dataVal.mv_data().get(0) & 0b1) != 0;

Expand Down Expand Up @@ -197,17 +197,13 @@ protected RecordCacheIterator(int dbi) throws IOException {
}

public Record next() {
try {
if (E(mdb_cursor_get(cursor, keyData, valueData, MDB_NEXT)) == MDB_SUCCESS) {
Varint.readListUnsigned(keyData.mv_data(), quad);
byte op = valueData.mv_data().get(0);
Record r = new Record();
r.quad = quad;
r.add = op == 1;
return r;
}
} catch (IOException e) {
throw new SailException(e);
if (mdb_cursor_get(cursor, keyData, valueData, MDB_NEXT) == MDB_SUCCESS) {
Varint.readListUnsigned(keyData.mv_data(), quad);
byte op = valueData.mv_data().get(0);
Record r = new Record();
r.quad = quad;
r.add = op == 1;
return r;
}
close();
return null;
Expand Down
Loading