(ignite-3) branch dependabot/gradle/org.jctools-jctools-core-4.0.5 created (now 91fa412a00)

2024-06-05 Thread github-bot
This is an automated email from the ASF dual-hosted git repository.

github-bot pushed a change to branch 
dependabot/gradle/org.jctools-jctools-core-4.0.5
in repository https://gitbox.apache.org/repos/asf/ignite-3.git


  at 91fa412a00 Bump org.jctools:jctools-core from 4.0.3 to 4.0.5

No new revisions were added by this update.



(ignite-3) branch main updated: IGNITE-21967: Extend test coverage for SQL E091-06 (Set functions. ALL quantifier) (#3876)

2024-06-05 Thread zstan
This is an automated email from the ASF dual-hosted git repository.

zstan pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/ignite-3.git


The following commit(s) were added to refs/heads/main by this push:
 new a760caf4f1 IGNITE-21967: Extend test coverage for SQL E091-06 (Set 
functions. ALL quantifier) (#3876)
a760caf4f1 is described below

commit a760caf4f122b08e91b2801b383cae04f01e75cb
Author: Max Zhuravkov 
AuthorDate: Wed Jun 5 16:48:38 2024 +0300

IGNITE-21967: Extend test coverage for SQL E091-06 (Set functions. ALL 
quantifier) (#3876)
---
 .../sql/aggregate/aggregates/test_agg_all.test | 44 ++
 1 file changed, 44 insertions(+)

diff --git 
a/modules/sql-engine/src/integrationTest/sql/aggregate/aggregates/test_agg_all.test
 
b/modules/sql-engine/src/integrationTest/sql/aggregate/aggregates/test_agg_all.test
new file mode 100644
index 00..5966a6c898
--- /dev/null
+++ 
b/modules/sql-engine/src/integrationTest/sql/aggregate/aggregates/test_agg_all.test
@@ -0,0 +1,44 @@
+# name: test/sql/aggregate/aggregates/test_agg_all.test
+# description:  Set functions. ALL quantifier
+# feature SQL E091-06 - Set functions. ALL quantifier
+# group: [aggregates]
+
+query I
+SELECT sum(ALL s1) FROM (VALUES (1),(2),(3)) t1(s1)
+
+6
+
+query I
+SELECT AVG(ALL s1) FROM (VALUES (1),(2),(3)) t1(s1)
+
+2
+
+query I
+SELECT COUNT(ALL s1) FROM (VALUES (1),(2),(3)) t1(s1)
+
+3
+
+query I
+SELECT MIN(ALL s1) FROM (VALUES (1),(2),(3)) t1(s1)
+
+1
+
+query I
+SELECT EVERY(ALL s1) FROM (VALUES (true), (false)) t1(s1)
+
+false
+
+query I
+SELECT MAX(ALL s1) FROM (VALUES (1),(2),(3)) t1(s1)
+
+3
+
+query I
+SELECT SOME(ALL s1) FROM (VALUES (false),(true),(false)) t1(s1)
+
+true
+
+query I
+SELECT ANY_VALUE(ALL s1) FROM (VALUES (2), (4), (1)) t1(s1)
+
+2
\ No newline at end of file



(ignite-3) branch IGNITE-22414 updated (370fae927e -> 81c0ee0cae)

2024-06-05 Thread mpochatkin
This is an automated email from the ASF dual-hosted git repository.

mpochatkin pushed a change to branch IGNITE-22414
in repository https://gitbox.apache.org/repos/asf/ignite-3.git


from 370fae927e IGNITE-22414 Fix cluster status command for not initialized 
cluster
 add 81c0ee0cae Fix cluster status decorator

No new revisions were added by this update.

Summary of changes:
 .../apache/ignite/internal/cli/decorators/ClusterStatusDecorator.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)



(ignite-3) branch IGNITE-22277 updated (9dc9b5c1eb -> 1b00cee4c9)

2024-06-05 Thread mpochatkin
This is an automated email from the ASF dual-hosted git repository.

mpochatkin pushed a change to branch IGNITE-22277
in repository https://gitbox.apache.org/repos/asf/ignite-3.git


from 9dc9b5c1eb Fix checkstyle
 add 1b00cee4c9 Fix tests

No new revisions were added by this update.

Summary of changes:
 .../catalog/sql/CreateFromDefinitionTest.java  | 34 +++---
 1 file changed, 17 insertions(+), 17 deletions(-)



(ignite-3) branch IGNITE-22414 created (now 370fae927e)

2024-06-05 Thread mpochatkin
This is an automated email from the ASF dual-hosted git repository.

mpochatkin pushed a change to branch IGNITE-22414
in repository https://gitbox.apache.org/repos/asf/ignite-3.git


  at 370fae927e IGNITE-22414 Fix cluster status command for not initialized 
cluster

This branch includes the following new commits:

 new 370fae927e IGNITE-22414 Fix cluster status command for not initialized 
cluster

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.




(ignite-3) 01/01: IGNITE-22414 Fix cluster status command for not initialized cluster

2024-06-05 Thread mpochatkin
This is an automated email from the ASF dual-hosted git repository.

mpochatkin pushed a commit to branch IGNITE-22414
in repository https://gitbox.apache.org/repos/asf/ignite-3.git

commit 370fae927ea2b5dc90deaeaa184f094d12702f63
Author: Mikhail Pochatkin 
AuthorDate: Wed Jun 5 15:35:11 2024 +0300

IGNITE-22414 Fix cluster status command for not initialized cluster
---
 .../ignite/internal/cli/call/cluster/status/ClusterStatus.java| 4 ++--
 .../internal/cli/call/cluster/status/ClusterStatusCall.java   | 8 +++-
 .../ignite/internal/cli/decorators/ClusterStatusDecorator.java| 4 ++--
 3 files changed, 11 insertions(+), 5 deletions(-)

diff --git 
a/modules/cli/src/main/java/org/apache/ignite/internal/cli/call/cluster/status/ClusterStatus.java
 
b/modules/cli/src/main/java/org/apache/ignite/internal/cli/call/cluster/status/ClusterStatus.java
index 940448254d..a358486c5a 100644
--- 
a/modules/cli/src/main/java/org/apache/ignite/internal/cli/call/cluster/status/ClusterStatus.java
+++ 
b/modules/cli/src/main/java/org/apache/ignite/internal/cli/call/cluster/status/ClusterStatus.java
@@ -49,8 +49,8 @@ public class ClusterStatus {
 this.metadataStorageNodes = metadataStorageNodes;
 }
 
-public int getNodeCount() {
-return nodeCount;
+public String nodeCount() {
+return nodeCount < 0 ? "N/A" : String.valueOf(nodeCount);
 }
 
 public boolean isInitialized() {
diff --git 
a/modules/cli/src/main/java/org/apache/ignite/internal/cli/call/cluster/status/ClusterStatusCall.java
 
b/modules/cli/src/main/java/org/apache/ignite/internal/cli/call/cluster/status/ClusterStatusCall.java
index f052bb156c..9c0fb22968 100644
--- 
a/modules/cli/src/main/java/org/apache/ignite/internal/cli/call/cluster/status/ClusterStatusCall.java
+++ 
b/modules/cli/src/main/java/org/apache/ignite/internal/cli/call/cluster/status/ClusterStatusCall.java
@@ -18,6 +18,7 @@
 package org.apache.ignite.internal.cli.call.cluster.status;
 
 import jakarta.inject.Singleton;
+import java.util.List;
 import 
org.apache.ignite.internal.cli.call.cluster.status.ClusterStatus.ClusterStatusBuilder;
 import 
org.apache.ignite.internal.cli.call.cluster.topology.PhysicalTopologyCall;
 import org.apache.ignite.internal.cli.core.call.Call;
@@ -28,6 +29,7 @@ import 
org.apache.ignite.internal.cli.core.exception.IgniteCliApiException;
 import org.apache.ignite.internal.cli.core.rest.ApiClientFactory;
 import org.apache.ignite.rest.client.api.ClusterManagementApi;
 import org.apache.ignite.rest.client.invoker.ApiException;
+import org.apache.ignite.rest.client.model.ClusterNode;
 import org.apache.ignite.rest.client.model.ClusterState;
 
 /**
@@ -71,7 +73,11 @@ public class ClusterStatusCall implements Call {
 }
 
 private int fetchNumberOfAllNodes(UrlCallInput input) {
-return physicalTopologyCall.execute(input).body().size();
+List body = physicalTopologyCall.execute(input).body();
+if (body == null) {
+return -1;
+}
+return body.size();
 }
 
 private ClusterState fetchClusterState(String url) throws ApiException {
diff --git 
a/modules/cli/src/main/java/org/apache/ignite/internal/cli/decorators/ClusterStatusDecorator.java
 
b/modules/cli/src/main/java/org/apache/ignite/internal/cli/decorators/ClusterStatusDecorator.java
index 3d0c064941..e8ac764ea4 100644
--- 
a/modules/cli/src/main/java/org/apache/ignite/internal/cli/decorators/ClusterStatusDecorator.java
+++ 
b/modules/cli/src/main/java/org/apache/ignite/internal/cli/decorators/ClusterStatusDecorator.java
@@ -35,11 +35,11 @@ public class ClusterStatusDecorator implements 
Decorator ansi(
 "[name: %s, nodes: %d, status: %s, cmgNodes: %s, 
msNodes: %s]",
 data.getName(),
-data.getNodeCount(),
+data.nodeCount(),
 fg(Color.GREEN).mark("active"),
 data.getCmgNodes(),
 data.getMsNodes()
 )
-: () -> ansi("[nodes: %d, status: %s]", data.getNodeCount(), 
fg(Color.RED).mark("not initialized"));
+: () -> ansi("[nodes: %d, status: %s]", data.nodeCount(), 
fg(Color.RED).mark("not initialized"));
 }
 }



(ignite-extensions) branch master updated: IGNITE-19613 Add log4j-slf4j-impl dependency into ignite-cdc-ext (#268)

2024-06-05 Thread timoninmaxim
This is an automated email from the ASF dual-hosted git repository.

timoninmaxim pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite-extensions.git


The following commit(s) were added to refs/heads/master by this push:
 new 03eb0724 IGNITE-19613 Add log4j-slf4j-impl dependency into 
ignite-cdc-ext (#268)
03eb0724 is described below

commit 03eb0724d600322e7ee821d650f8694ab7ee7d90
Author: Andrey N 
AuthorDate: Wed Jun 5 14:43:22 2024 +0300

IGNITE-19613 Add log4j-slf4j-impl dependency into ignite-cdc-ext (#268)
---
 modules/cdc-ext/pom.xml | 6 ++
 1 file changed, 6 insertions(+)

diff --git a/modules/cdc-ext/pom.xml b/modules/cdc-ext/pom.xml
index 614a303a..c8052fe2 100644
--- a/modules/cdc-ext/pom.xml
+++ b/modules/cdc-ext/pom.xml
@@ -64,6 +64,12 @@
 ${snappy.version}
 
 
+
+org.apache.logging.log4j
+log4j-slf4j-impl
+${log4j2.version}
+
+
 
 org.apache.ignite
 ignite-log4j2



(ignite-3) branch main updated (7b9e845b68 -> 4be3f4f83d)

2024-06-05 Thread zstan
This is an automated email from the ASF dual-hosted git repository.

zstan pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/ignite-3.git


from 7b9e845b68 IGNITE-22207 Fix a deadlock in the ReplicaService (#3874)
 add 4be3f4f83d IGNITE-21975: Extend test coverage for SQL 
F302-01(INTERSECT table operator. INTERSECT DISTINCT table operator) (#3872)

No new revisions were added by this update.

Summary of changes:
 .../integrationTest/sql/set/test_set_distinct.test | 58 +++---
 1 file changed, 52 insertions(+), 6 deletions(-)



(ignite-3) branch main updated (1469191211 -> 7b9e845b68)

2024-06-05 Thread vpyatkov
This is an automated email from the ASF dual-hosted git repository.

vpyatkov pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/ignite-3.git


from 1469191211 IGNITE-22275 forbid to alter partitions number. (#3838)
 add 7b9e845b68 IGNITE-22207 Fix a deadlock in the ReplicaService (#3874)

No new revisions were added by this update.

Summary of changes:
 .../ignite/internal/replicator/ReplicaService.java | 39 ++
 1 file changed, 26 insertions(+), 13 deletions(-)



(ignite-3) branch main updated: IGNITE-22275 forbid to alter partitions number. (#3838)

2024-06-05 Thread vpyatkov
This is an automated email from the ASF dual-hosted git repository.

vpyatkov pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/ignite-3.git


The following commit(s) were added to refs/heads/main by this push:
 new 1469191211 IGNITE-22275 forbid to alter partitions number. (#3838)
1469191211 is described below

commit 146919121187e21053624b432ef7619172afe6d3
Author: Mirza Aliev 
AuthorDate: Wed Jun 5 15:00:27 2024 +0400

IGNITE-22275 forbid to alter partitions number. (#3838)
---
 .../catalog/CatalogParamsValidationUtils.java  | 11 +++
 .../catalog/commands/AlterZoneCommand.java |  4 +--
 .../ignite/internal/catalog/CatalogZoneTest.java   |  3 +-
 .../commands/AlterZoneCommandValidationTest.java   | 24 ++-
 .../utils/CatalogAlterZoneEventListenerTest.java   |  2 ++
 .../index/IndexAvailabilityControllerTest.java |  4 +++
 .../ignite/internal/sql/engine/ItZoneDdlTest.java  | 35 ++
 .../DistributionZoneSqlToCommandConverterTest.java |  2 --
 .../ignite/internal/rebalance/ItRebalanceTest.java |  8 ++---
 9 files changed, 61 insertions(+), 32 deletions(-)

diff --git 
a/modules/catalog/src/main/java/org/apache/ignite/internal/catalog/CatalogParamsValidationUtils.java
 
b/modules/catalog/src/main/java/org/apache/ignite/internal/catalog/CatalogParamsValidationUtils.java
index fcb5dd3b76..274644240c 100644
--- 
a/modules/catalog/src/main/java/org/apache/ignite/internal/catalog/CatalogParamsValidationUtils.java
+++ 
b/modules/catalog/src/main/java/org/apache/ignite/internal/catalog/CatalogParamsValidationUtils.java
@@ -119,6 +119,17 @@ public class CatalogParamsValidationUtils {
 }
 }
 
+/**
+ * Validates that given partitions number is null, meaning that altering 
of a partitions number is forbidden.
+ *
+ * @param partitions Partitions number to validate.
+ */
+public static void validatePartition(@Nullable Integer partitions) {
+if (partitions != null) {
+throw new CatalogValidationException("Partitions number cannot be 
altered");
+}
+}
+
 /**
  * Validates that given schema doesn't contain any relation with specified 
name.
  *
diff --git 
a/modules/catalog/src/main/java/org/apache/ignite/internal/catalog/commands/AlterZoneCommand.java
 
b/modules/catalog/src/main/java/org/apache/ignite/internal/catalog/commands/AlterZoneCommand.java
index 3b5b7e4363..31b88c1f28 100644
--- 
a/modules/catalog/src/main/java/org/apache/ignite/internal/catalog/commands/AlterZoneCommand.java
+++ 
b/modules/catalog/src/main/java/org/apache/ignite/internal/catalog/commands/AlterZoneCommand.java
@@ -18,10 +18,10 @@
 package org.apache.ignite.internal.catalog.commands;
 
 import static 
org.apache.ignite.internal.catalog.CatalogParamsValidationUtils.validateField;
+import static 
org.apache.ignite.internal.catalog.CatalogParamsValidationUtils.validatePartition;
 import static 
org.apache.ignite.internal.catalog.CatalogParamsValidationUtils.validateZoneDataNodesAutoAdjustParametersCompatibility;
 import static 
org.apache.ignite.internal.catalog.CatalogParamsValidationUtils.validateZoneFilter;
 import static 
org.apache.ignite.internal.catalog.commands.CatalogUtils.INFINITE_TIMER_VALUE;
-import static 
org.apache.ignite.internal.catalog.commands.CatalogUtils.MAX_PARTITION_COUNT;
 import static 
org.apache.ignite.internal.catalog.commands.CatalogUtils.fromParams;
 import static 
org.apache.ignite.internal.catalog.commands.CatalogUtils.zoneOrThrow;
 
@@ -144,7 +144,7 @@ public class AlterZoneCommand extends AbstractZoneCommand {
 }
 
 private void validate() {
-validateField(partitions, 1, MAX_PARTITION_COUNT, "Invalid number of 
partitions");
+validatePartition(partitions);
 validateField(replicas, 1, null, "Invalid number of replicas");
 validateField(dataNodesAutoAdjust, 0, null, "Invalid data nodes auto 
adjust");
 validateField(dataNodesAutoAdjustScaleUp, 0, null, "Invalid data nodes 
auto adjust scale up");
diff --git 
a/modules/catalog/src/test/java/org/apache/ignite/internal/catalog/CatalogZoneTest.java
 
b/modules/catalog/src/test/java/org/apache/ignite/internal/catalog/CatalogZoneTest.java
index 4975c64162..ebf80a0fff 100644
--- 
a/modules/catalog/src/test/java/org/apache/ignite/internal/catalog/CatalogZoneTest.java
+++ 
b/modules/catalog/src/test/java/org/apache/ignite/internal/catalog/CatalogZoneTest.java
@@ -344,7 +344,6 @@ public class CatalogZoneTest extends BaseCatalogManagerTest 
{
 
 CatalogCommand alterCmd = AlterZoneCommand.builder()
 .zoneName(zoneName)
-.partitions(10)
 .replicas(2)
 .dataNodesAutoAdjustScaleUp(3)
 .dataNodesAutoAdjustScaleDown(4)
@@ -361,7 +360,7 @@ public class CatalogZoneTest extends BaseCatalogManagerTest 
{
 assertSame(zone, manager.zone(zone.id(), clock.nowLong()));
 
 

(ignite-3) branch main updated (49ab1b248a -> 26c1fb27bc)

2024-06-05 Thread mpochatkin
This is an automated email from the ASF dual-hosted git repository.

mpochatkin pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/ignite-3.git


from 49ab1b248a IGNITE-22284 .NET: Fix tests on macOS (#3875)
 add 26c1fb27bc IGNITE-22411 Fix CLI package (#3877)

No new revisions were added by this update.

Summary of changes:
 build.gradle   |  5 ++-
 packaging/build.gradle |  5 ++-
 packaging/cli/build.gradle |  4 +-
 .../common/{lin => linux}/bootstrap-functions.sh   |  0
 packaging/common/{lin => linux}/setup-java.sh  |  0
 .../{win => windows}/bootstrap-functions.bat   |  0
 packaging/db/build.gradle  | 49 +++---
 packaging/{ => db}/linux/common.sh |  0
 packaging/{ => db}/linux/deb/postUninstall.sh  |  0
 packaging/{ => db}/linux/deb/preUninstall.sh   |  0
 packaging/{ => db}/linux/postInstall.sh|  0
 packaging/{ => db}/linux/preInstall.sh |  0
 packaging/{ => db}/linux/rpm/postUninstall.sh  |  0
 packaging/{ => db}/linux/rpm/preUninstall.sh   |  0
 packaging/{ => db}/linux/service/ignite3db.conf|  0
 packaging/{ => db}/linux/service/ignite3db.service |  0
 packaging/{ => db}/linux/service/vars.env  |  0
 packaging/{ => db}/linux/start.sh  |  0
 packaging/{zip/lin => db/zip/linux}/ignite3db  |  0
 packaging/{zip/lin => db/zip/linux}/vars.env   |  0
 .../{zip/win => db/zip/windows}/ignite3db.bat  |  0
 packaging/{zip/win => db/zip/windows}/vars.bat |  0
 22 files changed, 24 insertions(+), 39 deletions(-)
 rename packaging/common/{lin => linux}/bootstrap-functions.sh (100%)
 rename packaging/common/{lin => linux}/setup-java.sh (100%)
 rename packaging/common/{win => windows}/bootstrap-functions.bat (100%)
 rename packaging/{ => db}/linux/common.sh (100%)
 rename packaging/{ => db}/linux/deb/postUninstall.sh (100%)
 rename packaging/{ => db}/linux/deb/preUninstall.sh (100%)
 rename packaging/{ => db}/linux/postInstall.sh (100%)
 rename packaging/{ => db}/linux/preInstall.sh (100%)
 rename packaging/{ => db}/linux/rpm/postUninstall.sh (100%)
 rename packaging/{ => db}/linux/rpm/preUninstall.sh (100%)
 rename packaging/{ => db}/linux/service/ignite3db.conf (100%)
 rename packaging/{ => db}/linux/service/ignite3db.service (100%)
 rename packaging/{ => db}/linux/service/vars.env (100%)
 rename packaging/{ => db}/linux/start.sh (100%)
 rename packaging/{zip/lin => db/zip/linux}/ignite3db (100%)
 rename packaging/{zip/lin => db/zip/linux}/vars.env (100%)
 rename packaging/{zip/win => db/zip/windows}/ignite3db.bat (100%)
 rename packaging/{zip/win => db/zip/windows}/vars.bat (100%)



(ignite-3) branch IGNITE-22277 updated (6bb91c7250 -> 9dc9b5c1eb)

2024-06-05 Thread mpochatkin
This is an automated email from the ASF dual-hosted git repository.

mpochatkin pushed a change to branch IGNITE-22277
in repository https://gitbox.apache.org/repos/asf/ignite-3.git


from 6bb91c7250 Fix tests
 add 9dc9b5c1eb Fix checkstyle

No new revisions were added by this update.

Summary of changes:
 .../ignite/internal/catalog/sql/CreateFromAnnotationsTest.java   | 9 +
 1 file changed, 5 insertions(+), 4 deletions(-)



(ignite-3) branch main updated (2bdd91f92d -> 49ab1b248a)

2024-06-05 Thread ptupitsyn
This is an automated email from the ASF dual-hosted git repository.

ptupitsyn pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/ignite-3.git


from 2bdd91f92d Bump org.assertj:assertj-core from 3.25.3 to 3.26.0 (#3839)
 add 49ab1b248a IGNITE-22284 .NET: Fix tests on macOS (#3875)

No new revisions were added by this update.

Summary of changes:
 .../Apache.Ignite.Tests/Linq/LinqTests.Functions.cs | 11 ++-
 .../platforms/dotnet/Apache.Ignite.Tests/SslTests.cs| 17 +
 2 files changed, 19 insertions(+), 9 deletions(-)