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

Update OrientDB to 3.2.18. #1505

Open
wants to merge 1 commit into
base: hotfix-1.10.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
7 changes: 7 additions & 0 deletions CHANGELOG.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ include::content/docs/variables.adoc-include[]

* The `html` field type will be removed in the future. Instead the `string` type will be used in combination with an additional configuration property for this field in the schema. Of course, your existing schemas will be migrated for you.

[[v1.10.6]]
== 1.10.6 (TBD)

icon:check[] OrientDB: The included OrientDB version has been updated to version `3.2.18`.

icon:check[] OrientDB: The included OrientDB Studio has been updated to version `3.2.18`.

[[v1.10.5]]
== 1.10.5 (19.04.2023)

Expand Down
8 changes: 7 additions & 1 deletion bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<spring.security.version>5.5.7</spring.security.version>
<ferma.version>${project.version}</ferma.version>
<elasticsearch.client.version>1.1.1</elasticsearch.client.version>
<orientdb.version>3.2.10</orientdb.version>
<orientdb.version>3.2.18</orientdb.version>
<hazelcast.version>3.12.8</hazelcast.version>
<jackson.version>2.13.2</jackson.version>
<jackson-databind.version>2.13.2</jackson-databind.version>
Expand Down Expand Up @@ -502,6 +502,12 @@
<artifactId>mesh-orientdb</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.orientechnologies</groupId>
<artifactId>orientdb-studio</artifactId>
<version>${orientdb.version}</version>
<type>zip</type>
</dependency>
<dependency>
<groupId>com.tinkerpop.gremlin</groupId>
<artifactId>gremlin-java</artifactId>
Expand Down
26 changes: 26 additions & 0 deletions databases/orientdb/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,32 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<?m2e execute onConfiguration?>
<id>copy-plugin-dependencies</id>
<phase>process-resources</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>com.orientechnologies</groupId>
<artifactId>orientdb-studio</artifactId>
<type>zip</type>
<overWrite>true</overWrite>
<outputDirectory>${project.build.directory}/classes/plugins</outputDirectory>
<destFileName>orientdb-studio.zip</destFileName>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
</plugins>

</build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ public void setToMaster() {
ROLES newORole = isSelf ? ROLES.MASTER : ROLES.REPLICA;
newCfg.setServerRole(server, newORole);
}
plugin.updateCachedDatabaseConfiguration(GraphStorage.DB_NAME, newCfg, true);
plugin.updateCachedDatabaseConfiguration(GraphStorage.DB_NAME, newCfg);
}

@Override
Expand Down Expand Up @@ -693,7 +693,7 @@ public void updateClusterConfig(ClusterConfigRequest request) {
// the plugin won't detect them
// see https://github.com/orientechnologies/orientdb/blob/3.1.x/distributed/src/main/java/com/orientechnologies/orient/server/distributed/impl/ODistributedAbstractPlugin.java#L441
newCfg.override(newCfg.getDocument());
plugin.updateCachedDatabaseConfiguration(GraphStorage.DB_NAME, newCfg, true);
plugin.updateCachedDatabaseConfiguration(GraphStorage.DB_NAME, newCfg);
} else {
throw error(BAD_REQUEST, "error_cluster_status_only_available_in_cluster_mode");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public class OrientDBClusterManagerImpl implements OrientDBClusterManager {

private static final String ORIENTDB_PLUGIN_FOLDERNAME = "orientdb-plugins";

private static final String ORIENTDB_STUDIO_ZIP = "orientdb-studio-3.1.6.zip";
private static final String ORIENTDB_STUDIO_ZIP = "orientdb-studio.zip";

private static final String ORIENTDB_DISTRIBUTED_CONFIG = "default-distributed-db-config.json";

Expand Down Expand Up @@ -347,7 +347,7 @@ public ClusterStatusResponse getClusterStatus() {
ClusterStatusResponse response = new ClusterStatusResponse();
if (hazelcastPlugin != null) {
ODocument distribCfg = hazelcastPlugin.getClusterConfiguration();
ODocument dbConfig = (ODocument) hazelcastPlugin.getConfigurationMap().get("database.storage");
ODocument dbConfig = (ODocument) hazelcastPlugin.getOnlineDatabaseConfiguration("storage");
ODocument serverConfig = dbConfig.field("servers");

Collection<ODocument> members = distribCfg.field("members");
Expand Down
Binary file not shown.