Repository navigation
Bump metrics.version from 4.2.2 to 4.2.3 - #6
Merged
Merged
Conversation
Contributor
|
@dependabot rebase |
Bumps `metrics.version` from 4.2.2 to 4.2.3. Updates `metrics-core` from 4.2.2 to 4.2.3 - [Release notes](https://github.com/dropwizard/metrics/releases) - [Commits](dropwizard/metrics@v4.2.2...v4.2.3) Updates `metrics-jmx` from 4.2.2 to 4.2.3 - [Release notes](https://github.com/dropwizard/metrics/releases) - [Commits](dropwizard/metrics@v4.2.2...v4.2.3) --- updated-dependencies: - dependency-name: io.dropwizard.metrics:metrics-core dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: io.dropwizard.metrics:metrics-jmx dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
dependabot
Bot
force-pushed
the
dependabot/maven/metrics.version-4.2.3
branch
from
August 31, 2021 22:22
68e0b2f to
1e1c6f0
Compare
This was referenced Jan 27, 2026
This was referenced Feb 18, 2026
Merged
tae898
referenced
this pull request
in humemai/arcadedb-embedded-python
Jun 28, 2026
…n-4.2.3 Bump metrics.version from 4.2.2 to 4.2.3
2 tasks done
2 tasks done
4 tasks
3 tasks done
7 tasks done
4 of 5 tasks
5 tasks done
Merged
5 tasks done
4 tasks done
6 tasks
lvca
added a commit
that referenced
this pull request
Nov 23, 2026
…crosses record kinds (#12063) Fixes #12028 Fixes #12029 Both issues are missing refusals in the same place: the checks a super type link is asked before anything changes (`LocalDocumentType.checkCanAddSuperType`, which `ALTER TYPE ... SUPERTYPE +`, `Schema` API `addSuperType` and `TypeBuilder` on an existing type all go through). So they are fixed together, in one PR. ### What changes - **Cycle (#12028)**: `checkCanAddSuperType` refuses, first and for every linkage, a super type that is the type itself or already one of its sub types (`DocumentType.isSubTypeOf`, which only walks up the super type lists and so ends). The statement is refused with a `SchemaException` (HTTP 400) before the link is made, so nothing is left in memory. It used to link, overflow the stack in the post-link steps (a `StackOverflowError` is not the `RuntimeException` the unlink guard catches), and keep the cycle. - **Load**: a `schema.json` that already holds a cycle (the next schema save after the old 500 could write one) still opens. The inheritance restore leaves out the link that would close the cycle and logs a warning naming it. Before, every polymorphic walk over the loaded cycle overflowed. - **Record kind (#12029)**: a new linkage refuses a graph super type of another kind (a document or edge type under a vertex type, a vertex or document type under an edge type), in `checkCanAddSuperType` for ALTER and in `TypeBuilder` for a new type (`CREATE ... TYPE ... EXTENDS` and the Java builder). A DOCUMENT super type stays legal for a vertex or an edge type: existing schemas use it to share properties (`SchemaTest.dropNonExistentIndexThenCreateProperty` has `CREATE VERTEX TYPE ... EXTENDS <document type>`), and a vertex or an edge is a document, so a scan of the super type reads nothing it cannot hold. Linkages that already hold (schema load, re-attachment after `DROP TYPE`) are not asked, so a database written before the check still opens. ### Tests `SuperTypeAdmissionTest` (new, engine, one nested class per issue): - cycle refused through SQL (direct and two levels down), the Java API and the type builder; schema unchanged, `SELECT FROM A` and `CREATE PROPERTY A.y` work after; - a hand-edited `schema.json` holding a cycle opens, keeps two of the three links, scans and saves; - ALTER refuses document under vertex, vertex under edge, edge under vertex; same kind, and vertex or edge under document, stay legal; Cypher `MATCH (v:V)` answers; - `CREATE DOCUMENT TYPE ... EXTENDS <vertex>`, `CREATE EDGE TYPE ... EXTENDS <vertex>`, `CREATE VERTEX TYPE ... EXTENDS <edge>` and `buildDocumentType().withSuperType(<vertex>)` refused, no type created; `CREATE VERTEX TYPE ... EXTENDS <document>` and an edge type built over a document type stay legal; - a hand-edited `schema.json` with a cross-kind link still opens. ### Results Engine tests (Docker, maven:3.9-eclipse-temurin-21): - failing-first with `engine/src/main` from origin/main: `SuperTypeAdmissionTest` 6 run, 5 fail (4 failures, 1 error: `aSchemaFileWithACycleStillOpens` StackOverflowError). - `-Dtest='com/arcadedb/schema/**/*Test,SuperTypeAdmissionTest' -DexcludedGroups=slow`: 1812 tests, 0 failures, 0 errors, 0 skipped. - whole engine module, `-pl engine test -DexcludedGroups=slow`: 27969 tests, 2 failures, 3 errors, 22 skipped. None is from this change: `ParallelSafeExpressionsStateTest` (1 failure) and `CypherCallInTransactionsOnErrorIssue11595Test` (3 errors) fail the same way with `engine/src/main` from origin/main; `ReplicatedApplyPublicationTest` (1 failure) passed on origin/main and passed again alone on this branch (timing-dependent). - server module, `-pl server -am test -Dtest='com/arcadedb/server/**/*Http*Test,com/arcadedb/server/**/*Command*Test,com/arcadedb/server/**/*Schema*Test'`: 263 tests, 0 failures, 0 errors, 0 skipped. - server ITs that send DDL and assert HTTP statuses (28 classes, among them `HTTPDocumentIT`, `HTTPGraphIT`, `RemoteDatabaseIT`, `SchemaMutationAuthorizationIT`, `FacetsSubtypeAclIT`, `TestLinkedPropertiesSchemaReloadIT`): 187 tests, 0 failures, 0 errors, 0 skipped. End to end, HTTP against a server built from main (`s12028` repro): Server with the main jars (a7304ab): version 200 == cycle: A <- B <- C, then ALTER TYPE A SUPERTYPE +C 200 CREATE VERTEX TYPE A -> [{"operation": "create vertex type", "typeName": "A", "created": true}] 200 CREATE VERTEX TYPE B EXTENDS A -> [{"operation": "create vertex type", "typeName": "B", "created": true}] 200 CREATE VERTEX TYPE C EXTENDS B -> [{"operation": "create vertex type", "typeName": "C", "created": true}] 200 INSERT INTO C SET x = 1 -> [{"@Rid": "#7:0", "@type": "C", "@cat": "v", "x": 1}] 500 ALTER TYPE A SUPERTYPE +C -> "DatabaseOperationException: Error during write lock -> StackOverflowError" 200 SELECT name, parentTypes FROM schema:types ORDER BY name -> [{"name": "A", "parentTypes": ["C"]}, {"name": "B", "parentTypes": ["A"]}, {"name": "C", "parentTypes": ["B"]}] 200 SELECT count(*) FROM A -> [{"count(*)": 1}] 500 SELECT FROM A -> "StackOverflowError: java.lang.StackOverflowError" 500 CREATE PROPERTY A.y INTEGER -> "DatabaseOperationException: Error during write lock -> StackOverflowError" 400 INSERT INTO A SET x = 2 -> "CommandSQLParsingException: The statement is nested or chained too deeply to be executed (the thread stack overflowed while building the plan) -> StackOverflowError" == cross kind: document type D gets vertex super type V; vertex type W gets edge super type E 200 CREATE VERTEX TYPE V -> [{"operation": "create vertex type", "typeName": "V", "created": true}] 200 CREATE DOCUMENT TYPE D -> [{"operation": "create document type", "typeName": "D", "created": true}] 200 CREATE EDGE TYPE E -> [{"operation": "create edge type", "typeName": "E", "created": true}] 200 CREATE VERTEX TYPE W -> [{"operation": "create vertex type", "typeName": "W", "created": true}] 200 INSERT INTO V SET n = 1 -> [{"@Rid": "#1:0", "@type": "V", "@cat": "v", "n": 1}] 200 INSERT INTO D SET n = 2 -> [{"@Rid": "#4:0", "@type": "D", "@cat": "d", "n": 2}] 200 INSERT INTO W SET n = 3 -> [{"@Rid": "#6:0", "@type": "W", "@cat": "v", "n": 3}] 200 ALTER TYPE D SUPERTYPE +V -> [{"supertype": ["V"], "operation": "ALTER TYPE", "typeName": "D", "result": "OK"}] 200 ALTER TYPE W SUPERTYPE +E -> [{"supertype": ["E"], "operation": "ALTER TYPE", "typeName": "W", "result": "OK"}] 200 SELECT name, type, parentTypes FROM schema:types ORDER BY name -> [{"name": "D", "type": "document", "parentTypes": ["V"]}, {"name": "E", "type": "edge", "parentTypes": []}, {"name": "V", "type": "vertex", "parentTypes": []}, {"name": "W", "type": "vertex", "parentTypes": ["E"]}] 200 SELECT @Rid, @type, @cat, n FROM V -> [{"@Rid": "#1:0", "@type": "V", "@cat": "v", "n": 1}, {"@Rid": "#4:0", "@type": "D", "@cat": "d", "n": 2}] 500 MATCH (v:V) RETURN v.n -> "ClassCastException: Cannot cast the document #4:0 to a vertex" 200 SELECT @Rid, @type, @cat, n FROM E -> [{"@Rid": "#6:0", "@type": "W", "@cat": "v", "n": 3}] 200 MATCH ()-[e:E]->() RETURN count(e) -> [{"count(e)": 0}] Same server, engine jar built from this branch: version 200 == cycle: A <- B <- C, then ALTER TYPE A SUPERTYPE +C 200 CREATE VERTEX TYPE A -> [{"operation": "create vertex type", "typeName": "A", "created": true}] 200 CREATE VERTEX TYPE B EXTENDS A -> [{"operation": "create vertex type", "typeName": "B", "created": true}] 200 CREATE VERTEX TYPE C EXTENDS B -> [{"operation": "create vertex type", "typeName": "C", "created": true}] 200 INSERT INTO C SET x = 1 -> [{"@Rid": "#7:0", "@type": "C", "@cat": "v", "x": 1}] 400 ALTER TYPE A SUPERTYPE +C -> "SchemaException: Cannot make type 'A' a sub type of 'C': 'C' is already a sub type of 'A', and a type hierarchy cannot have a cycle" 200 SELECT name, parentTypes FROM schema:types ORDER BY name -> [{"name": "A", "parentTypes": []}, {"name": "B", "parentTypes": ["A"]}, {"name": "C", "parentTypes": ["B"]}] 200 SELECT count(*) FROM A -> [{"count(*)": 1}] 200 SELECT FROM A -> [{"@Rid": "#7:0", "@type": "C", "@cat": "v", "x": 1}] 200 CREATE PROPERTY A.y INTEGER -> [{"operation": "create property", "typeName": "A", "propertyName": "y", "created": true}] 200 INSERT INTO A SET x = 2 -> [{"@Rid": "#1:0", "@type": "A", "@cat": "v", "x": 2}] == cross kind: document type D gets vertex super type V; vertex type W gets edge super type E 200 CREATE VERTEX TYPE V -> [{"operation": "create vertex type", "typeName": "V", "created": true}] 200 CREATE DOCUMENT TYPE D -> [{"operation": "create document type", "typeName": "D", "created": true}] 200 CREATE EDGE TYPE E -> [{"operation": "create edge type", "typeName": "E", "created": true}] 200 CREATE VERTEX TYPE W -> [{"operation": "create vertex type", "typeName": "W", "created": true}] 200 INSERT INTO V SET n = 1 -> [{"@Rid": "#1:0", "@type": "V", "@cat": "v", "n": 1}] 200 INSERT INTO D SET n = 2 -> [{"@Rid": "#4:0", "@type": "D", "@cat": "d", "n": 2}] 200 INSERT INTO W SET n = 3 -> [{"@Rid": "#6:0", "@type": "W", "@cat": "v", "n": 3}] 400 ALTER TYPE D SUPERTYPE +V -> "SchemaException: Cannot make the document type 'D' a sub type of the vertex type 'V': a type can only extend a document type or a type of its own kind" 400 ALTER TYPE W SUPERTYPE +E -> "SchemaException: Cannot make the vertex type 'W' a sub type of the edge type 'E': a type can only extend a document type or a type of its own kind" 200 SELECT name, type, parentTypes FROM schema:types ORDER BY name -> [{"name": "D", "type": "document", "parentTypes": []}, {"name": "E", "type": "edge", "parentTypes": []}, {"name": "V", "type": "vertex", "parentTypes": []}, {"name": "W", "type": "vertex", "parentTypes": []}] 200 SELECT @Rid, @type, @cat, n FROM V -> [{"@Rid": "#1:0", "@type": "V", "@cat": "v", "n": 1}] 200 MATCH (v:V) RETURN v.n -> [{"v.n": 1}] 200 SELECT @Rid, @type, @cat, n FROM E -> [] 200 MATCH ()-[e:E]->() RETURN count(e) -> [{"count(e)": 0}] Overlap note: separate PRs for #12031, #12032, #12035, #12036, #12038 and #12039 are being prepared in the same area (`LocalDocumentType`, `LocalSchema`, `ExistingRecordsCheck`, the ALTER/CREATE TYPE statements). Textual merge conflicts with them are possible; the changes are meant to be independent. This PR and the one for #12030 both add a step at the end of `LocalDocumentType.checkCanAddSuperType`, so the second to merge needs a small rebase. ### Merge note: #12067 This PR conflicts textually with #12067 in `LocalDocumentType.java`, around line 3496. Both add private methods directly after `checkCanAddSuperType`. This PR adds `checkNoCycle`, `checkSameRecordKind` and `recordKindName`; #12067 adds `checkStoredRecordsMeetInheritedProperties`. To resolve it, keep both blocks. One ordering rule applies after the merge. #12067's stored-record scan (`checkStoredRecordsMeetInheritedProperties`, which walks `superType.getPolymorphicProperties()`) has to stay after the `checkNoCycle` call that this PR puts at the head of `checkCanAddSuperType`. Run before it, that walk could follow a cycle before the cycle check refuses it. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **Bug Fixes** * Schema inheritance now rejects cycles and incompatible record types, preventing invalid parent-child relationships from being created through SQL commands or builders. * Existing schema files with cyclic or incompatible inheritance links can still load; invalid links are skipped. * Type removal now refuses to proceed when reattaching child types would create an incompatible relationship. Same-kind inheritance and document supertypes for graph types remain supported. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: lvca <l.garulli@arcadedata.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bumps
metrics.versionfrom 4.2.2 to 4.2.3.Updates
metrics-corefrom 4.2.2 to 4.2.3Release notes
Sourced from metrics-core's releases.
Commits
f43f60e[maven-release-plugin] prepare release v4.2.38b39de6Update dependency org.jdbi:jdbi3-core to v3.21.0 (release/4.2.x) (#2083)311eb49Bump actions/stale from 3.0.19 to 4 (#2079)132c279Update dependency org.checkerframework:checker-qual to v3.16.0 (release/4.2.x...026bdb5Update dependency com.rabbitmq:amqp-client to v5.13.0 (release/4.2.x) (#2076)12a0cefAdd Dependabot config for GitHub Actionsaa146a8Update jetty9.version to v9.4.43.v20210629 (release/4.2.x) (#2070)1006636Update dependency org.eclipse.jetty:jetty-bom to v10.0.6 (release/4.2.x) (#2067)29f649fUpdate jackson.version to v2.12.4 (release/4.2.x) (#2069)f984c9eUpdate dependency org.eclipse.jetty:jetty-bom to v11.0.6 (release/4.2.x) (#2068)Updates
metrics-jmxfrom 4.2.2 to 4.2.3Release notes
Sourced from metrics-jmx's releases.
Commits
f43f60e[maven-release-plugin] prepare release v4.2.38b39de6Update dependency org.jdbi:jdbi3-core to v3.21.0 (release/4.2.x) (#2083)311eb49Bump actions/stale from 3.0.19 to 4 (#2079)132c279Update dependency org.checkerframework:checker-qual to v3.16.0 (release/4.2.x...026bdb5Update dependency com.rabbitmq:amqp-client to v5.13.0 (release/4.2.x) (#2076)12a0cefAdd Dependabot config for GitHub Actionsaa146a8Update jetty9.version to v9.4.43.v20210629 (release/4.2.x) (#2070)1006636Update dependency org.eclipse.jetty:jetty-bom to v10.0.6 (release/4.2.x) (#2067)29f649fUpdate jackson.version to v2.12.4 (release/4.2.x) (#2069)f984c9eUpdate dependency org.eclipse.jetty:jetty-bom to v11.0.6 (release/4.2.x) (#2068)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)