[ignite] branch temp-fix-sonar-pr-run updated (8162c7c9327 -> 6242f49fef9)
This is an automated email from the ASF dual-hosted git repository. ivandasch pushed a change to branch temp-fix-sonar-pr-run in repository https://gitbox.apache.org/repos/asf/ignite.git from 8162c7c9327 IGNITE-20466 Wip. add 6242f49fef9 IGNITE-20466 Wip. No new revisions were added by this update. Summary of changes: .github/workflows/sonar-pr-from-fork-manual.yml | 4 1 file changed, 4 deletions(-)
[ignite] branch temp-fix-sonar-pr-run updated (069d34fb97c -> 8162c7c9327)
This is an automated email from the ASF dual-hosted git repository. ivandasch pushed a change to branch temp-fix-sonar-pr-run in repository https://gitbox.apache.org/repos/asf/ignite.git from 069d34fb97c IGNITE-20466 Wip. add 8162c7c9327 IGNITE-20466 Wip. No new revisions were added by this update. Summary of changes: .github/workflows/sonar-pr-from-fork-manual.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
[ignite] branch temp-fix-sonar-pr-run updated (63ac1737287 -> 069d34fb97c)
This is an automated email from the ASF dual-hosted git repository. ivandasch pushed a change to branch temp-fix-sonar-pr-run in repository https://gitbox.apache.org/repos/asf/ignite.git from 63ac1737287 IGNITE-20466 Wip. add 069d34fb97c IGNITE-20466 Wip. No new revisions were added by this update. Summary of changes: .../workflows/{sonar-pr-from-fork.yml => sonar-pr-from-fork-manual.yml} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename .github/workflows/{sonar-pr-from-fork.yml => sonar-pr-from-fork-manual.yml} (98%)
[ignite] branch temp-fix-sonar-pr-run updated (0e02e90d03a -> 63ac1737287)
This is an automated email from the ASF dual-hosted git repository. ivandasch pushed a change to branch temp-fix-sonar-pr-run in repository https://gitbox.apache.org/repos/asf/ignite.git from 0e02e90d03a IGNITE-20466 Wip. add 63ac1737287 IGNITE-20466 Wip. No new revisions were added by this update. Summary of changes: .github/workflows/sonar-pr-from-fork-ga.yml | 96 - .github/workflows/sonar-pr-from-fork.yml| 3 + 2 files changed, 3 insertions(+), 96 deletions(-) delete mode 100644 .github/workflows/sonar-pr-from-fork-ga.yml
[ignite] branch temp-fix-sonar-pr-run updated (9ad646a5c40 -> 0e02e90d03a)
This is an automated email from the ASF dual-hosted git repository. ivandasch pushed a change to branch temp-fix-sonar-pr-run in repository https://gitbox.apache.org/repos/asf/ignite.git from 9ad646a5c40 IGNITE-20466 Add temporary solution to sonar problem, allow to run check manually. add 0e02e90d03a IGNITE-20466 Wip. No new revisions were added by this update. Summary of changes: .github/workflows/{sonar-pr-from-fork.yml => sonar-pr-from-fork-ga.yml} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) copy .github/workflows/{sonar-pr-from-fork.yml => sonar-pr-from-fork-ga.yml} (98%)
[ignite] branch temp-fix-sonar-pr-run created (now 9ad646a5c40)
This is an automated email from the ASF dual-hosted git repository. ivandasch pushed a change to branch temp-fix-sonar-pr-run in repository https://gitbox.apache.org/repos/asf/ignite.git at 9ad646a5c40 IGNITE-20466 Add temporary solution to sonar problem, allow to run check manually. This branch includes the following new commits: new 9ad646a5c40 IGNITE-20466 Add temporary solution to sonar problem, allow to run check manually. 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] 01/01: IGNITE-20466 Add temporary solution to sonar problem, allow to run check manually.
This is an automated email from the ASF dual-hosted git repository. ivandasch pushed a commit to branch temp-fix-sonar-pr-run in repository https://gitbox.apache.org/repos/asf/ignite.git commit 9ad646a5c40bff41d7a709d8e4807d60e88cd1bc Author: Ivan Dashchinskiy AuthorDate: Fri Sep 29 16:03:09 2023 +0300 IGNITE-20466 Add temporary solution to sonar problem, allow to run check manually. --- .github/workflows/sonar-pr-from-fork.yml | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sonar-pr-from-fork.yml b/.github/workflows/sonar-pr-from-fork.yml index f4309f68ce6..a80d418f98b 100644 --- a/.github/workflows/sonar-pr-from-fork.yml +++ b/.github/workflows/sonar-pr-from-fork.yml @@ -18,7 +18,12 @@ name: Sonar Quality Pull Request Analysis # TODO IGNITE-20466 Investigate and fix the issue with running this workflow on PRs from forks. -on: pull_request +on: + workflow_dispatch: +inputs: + pull-request-id: +description: 'Pull Request ID' +required: true permissions: contents: read @@ -35,7 +40,7 @@ jobs: steps: - uses: actions/checkout@v3 with: - ref: "refs/pull/${{ github.event.number }}/merge" + ref: "refs/pull/${{ github.event.pull-request-id }}/merge" fetch-depth: 0 - name: Set up JDK11
[ignite] branch master updated: IGNITE-20418 Added the multiple nodes argument to the 'indexes_force_rebuild' command (#10941)
This is an automated email from the ASF dual-hosted git repository. namelchev pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/ignite.git The following commit(s) were added to refs/heads/master by this push: new fc8a07e0f0e IGNITE-20418 Added the multiple nodes argument to the 'indexes_force_rebuild' command (#10941) fc8a07e0f0e is described below commit fc8a07e0f0ebe27d4ed17612da18f90707ae60a2 Author: Vladimir Steshin AuthorDate: Fri Sep 29 14:51:12 2023 +0300 IGNITE-20418 Added the multiple nodes argument to the 'indexes_force_rebuild' command (#10941) --- docs/_docs/tools/control-script.adoc | 4 +- .../internal/commandline/ArgumentParser.java | 11 +- .../GridCommandHandlerIndexForceRebuildTest.java | 255 +++-- .../internal/management/api/ArgumentGroup.java | 3 + ...rgumentGroup.java => ArgumentGroupsHolder.java} | 21 +- .../internal/management/api/CommandUtils.java | 126 +++--- .../cache/CacheIndexesForceRebuildCommand.java | 179 +-- .../cache/CacheIndexesForceRebuildCommandArg.java | 38 ++- .../management/cache/IndexForceRebuildTask.java| 26 ++- ...mandHandlerClusterByClassTest_cache_help.output | 6 +- ...dlerClusterByClassWithSSLTest_cache_help.output | 6 +- 11 files changed, 584 insertions(+), 91 deletions(-) diff --git a/docs/_docs/tools/control-script.adoc b/docs/_docs/tools/control-script.adoc index 490c55e7f37..843878b6a5f 100644 --- a/docs/_docs/tools/control-script.adoc +++ b/docs/_docs/tools/control-script.adoc @@ -1071,12 +1071,12 @@ To trigger the rebuild process of all indexes for the specified caches or the ca tab:Unix[] [source,shell] -control.sh --cache indexes_force_rebuild --node-id nodeId --cache-names cacheName1,...cacheNameN|--group-names groupName1,...groupNameN +control.sh --cache indexes_force_rebuild --node-ids nodeId1,...nodeIdN|--all-nodes --cache-names cacheName1,...cacheNameN|--group-names groupName1,...groupNameN tab:Window[] [source,shell] -control.bat --cache indexes_force_rebuild --node-id nodeId --cache-names cacheName1,...cacheNameN|--group-names groupName1,...groupNameN +control.bat --cache indexes_force_rebuild --node-ids nodeId1,...nodeIdN|--all-nodes --cache-names cacheName1,...cacheNameN|--group-names groupName1,...groupNameN -- diff --git a/modules/control-utility/src/main/java/org/apache/ignite/internal/commandline/ArgumentParser.java b/modules/control-utility/src/main/java/org/apache/ignite/internal/commandline/ArgumentParser.java index 604f3a47d24..1a6e1d19cb9 100644 --- a/modules/control-utility/src/main/java/org/apache/ignite/internal/commandline/ArgumentParser.java +++ b/modules/control-utility/src/main/java/org/apache/ignite/internal/commandline/ArgumentParser.java @@ -21,8 +21,6 @@ package org.apache.ignite.internal.commandline; import java.lang.reflect.Field; import java.util.ArrayDeque; import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collections; import java.util.Deque; import java.util.HashSet; import java.util.Iterator; @@ -42,6 +40,7 @@ import org.apache.ignite.internal.management.api.Argument; import org.apache.ignite.internal.management.api.ArgumentGroup; import org.apache.ignite.internal.management.api.CliSubcommandsWithPrefix; import org.apache.ignite.internal.management.api.Command; +import org.apache.ignite.internal.management.api.CommandUtils; import org.apache.ignite.internal.management.api.CommandsRegistry; import org.apache.ignite.internal.management.api.Positional; import org.apache.ignite.internal.util.typedef.internal.U; @@ -350,13 +349,11 @@ public class ArgumentParser { (name, val) -> {} ); -ArgumentGroup argGrp = cmdPath.peek().argClass().getAnnotation(ArgumentGroup.class); -Set grpdFlds = argGrp == null -? Collections.emptySet() -: new HashSet<>(Arrays.asList(argGrp.value())); +List> grpdFlds = CommandUtils.argumentGroupsValues(cmdPath.peek().argClass()); Consumer namedArgCb = fld -> namedArgs.add( -toArg.apply(fld, grpdFlds.contains(fld.getName()) || fld.getAnnotation(Argument.class).optional()) +toArg.apply(fld, CommandUtils.argumentGroupIdx(grpdFlds, fld.getName()) >= 0 +|| fld.getAnnotation(Argument.class).optional()) ); Consumer positionalArgCb = fld -> positionalArgs.add(new CLIArgument<>( diff --git a/modules/control-utility/src/test/java/org/apache/ignite/util/GridCommandHandlerIndexForceRebuildTest.java b/modules/control-utility/src/test/java/org/apache/ignite/util/GridCommandHandlerIndexForceRebuildTest.java index 3486d746826..34aa9b51239 100644 --- a/modules/control-utility/src/test/java/org/apache/ignite/util/GridCommandHandlerIndexForceRebuildTest.java +++
[ignite] branch cache_dumps updated (7fe7e1627d5 -> 4d555e9f6a3)
This is an automated email from the ASF dual-hosted git repository. nizhikov pushed a change to branch cache_dumps in repository https://gitbox.apache.org/repos/asf/ignite.git from 7fe7e1627d5 Merge branch 'master' into cache_dumps add 9f70c2a048b IGNITE-20136 SQL Calcite: Add FORCE_INDEX/NO_INDEX hints - Fixes #10902. add 66bd852a89f IGNITE-19880 Fixed negative duration in the SQL query system view (#10958) add 4d555e9f6a3 Merge branch 'master' into cache_dumps No new revisions were added by this update. Summary of changes: .../query/calcite/CalciteQueryProcessor.java | 12 +- .../query/calcite/hint/HintDefinition.java | 86 ++ .../query/calcite/hint/HintOptionsChecker.java}| 17 +- .../processors/query/calcite/hint/HintUtils.java | 175 + .../processors/query/calcite/hint/HintsConfig.java | 85 ++ .../query/calcite/prepare/IgnitePlanner.java | 6 +- .../query/calcite/prepare/PlannerHelper.java | 40 ++- .../query/calcite/rel/AbstractIndexScan.java | 5 +- .../query/calcite/rel/IgniteIndexScan.java | 3 +- .../rel/logical/IgniteLogicalIndexScan.java| 3 +- .../rel/logical/IgniteLogicalTableScan.java| 23 +- .../calcite/rule/HashAggregateConverterRule.java | 2 +- .../calcite/rule/SortAggregateConverterRule.java | 2 +- .../calcite/rule/logical/ExposeIndexRule.java | 63 + .../calcite/rule/logical/FilterScanMergeRule.java | 2 +- .../calcite/rule/logical/LogicalOrToUnionRule.java | 1 + .../calcite/rule/logical/ProjectScanMergeRule.java | 1 + .../query/calcite/schema/CacheTableImpl.java | 3 +- .../query/calcite/schema/SystemViewIndexImpl.java | 3 +- .../query/calcite/schema/SystemViewTableImpl.java | 3 +- .../processors/query/calcite/util/HintUtils.java | 60 - .../integration/IndexScanlIntegrationTest.java | 78 ++ .../query/calcite/planner/AbstractPlannerTest.java | 6 +- .../query/calcite/planner/TestTable.java | 3 +- .../planner/hints/CommonHintsPlannerTest.java | 118 + .../planner/hints/ForceIndexHintPlannerTest.java | 208 +++ .../calcite/planner/hints/HintsTestSuite.java} | 11 +- .../planner/hints/NoIndexHintPlannerTest.java | 288 + .../apache/ignite/testsuites/PlannerTestSuite.java | 3 + .../query/running/QueryHistoryTracker.java | 3 +- .../query/running/RunningQueryManager.java | 6 +- .../processors/query/SqlSystemViewsSelfTest.java | 21 ++ 32 files changed, 1222 insertions(+), 118 deletions(-) create mode 100644 modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/hint/HintDefinition.java copy modules/{core/src/main/java/org/apache/ignite/internal/binary/BinaryWriteReplacer.java => calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/hint/HintOptionsChecker.java} (70%) create mode 100644 modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/hint/HintUtils.java create mode 100644 modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/hint/HintsConfig.java delete mode 100644 modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/util/HintUtils.java create mode 100644 modules/calcite/src/test/java/org/apache/ignite/internal/processors/query/calcite/planner/hints/CommonHintsPlannerTest.java create mode 100644 modules/calcite/src/test/java/org/apache/ignite/internal/processors/query/calcite/planner/hints/ForceIndexHintPlannerTest.java copy modules/{slf4j/src/test/java/org/apache/ignite/testsuites/IgniteSlf4jTestSuite.java => calcite/src/test/java/org/apache/ignite/internal/processors/query/calcite/planner/hints/HintsTestSuite.java} (80%) create mode 100644 modules/calcite/src/test/java/org/apache/ignite/internal/processors/query/calcite/planner/hints/NoIndexHintPlannerTest.java
[ignite-3] branch ignite-20368 updated: IGNITE-20447 Introduce Failure handling component (#2629)
This is an automated email from the ASF dual-hosted git repository. sk0x50 pushed a commit to branch ignite-20368 in repository https://gitbox.apache.org/repos/asf/ignite-3.git The following commit(s) were added to refs/heads/ignite-20368 by this push: new ffe67c56d6 IGNITE-20447 Introduce Failure handling component (#2629) ffe67c56d6 is described below commit ffe67c56d64e93621eed5cdd0d0a0116e72e60bf Author: Sergey Uttsel AuthorDate: Fri Sep 29 11:43:48 2023 +0300 IGNITE-20447 Introduce Failure handling component (#2629) --- modules/failure-handler/build.gradle | 33 ++ .../ignite/internal/failure/FailureContext.java| 66 +++ .../ignite/internal/failure/FailureHandler.java| 34 ++ .../ignite/internal/failure/FailureProcessor.java | 75 ++ .../ignite/internal/failure/FailureType.java | 35 ++ .../internal/failure/FailureProcessorTest.java | 43 + settings.gradle| 2 + 7 files changed, 288 insertions(+) diff --git a/modules/failure-handler/build.gradle b/modules/failure-handler/build.gradle new file mode 100644 index 00..b6d8be625a --- /dev/null +++ b/modules/failure-handler/build.gradle @@ -0,0 +1,33 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +apply from: "$rootDir/buildscripts/java-core.gradle" +apply from: "$rootDir/buildscripts/publishing.gradle" +apply from: "$rootDir/buildscripts/java-junit5.gradle" +apply from: "$rootDir/buildscripts/java-integration-test.gradle" +apply from: "$rootDir/buildscripts/java-test-fixtures.gradle" + +dependencies { +implementation project(':ignite-core') + +testImplementation libs.mockito.core +testImplementation libs.mockito.junit + +testImplementation(testFixtures(project(':ignite-core'))) +} + +description = 'ignite-failure-handler' diff --git a/modules/failure-handler/src/main/java/org/apache/ignite/internal/failure/FailureContext.java b/modules/failure-handler/src/main/java/org/apache/ignite/internal/failure/FailureContext.java new file mode 100644 index 00..1100a6c216 --- /dev/null +++ b/modules/failure-handler/src/main/java/org/apache/ignite/internal/failure/FailureContext.java @@ -0,0 +1,66 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.apache.ignite.internal.failure; + +import org.apache.ignite.internal.tostring.S; + +/** + * Failure context contains information about failure type and exception if applicable. + * This information could be used for appropriate handling of the failure. + */ +public class FailureContext { +/** Type. */ +private final FailureType type; + +/** Error. */ +private final Throwable err; + +/** + * Creates instance of {@link FailureContext}. + * + * @param type Failure type. + * @param err Exception. + */ +public FailureContext(FailureType type, Throwable err) { +this.type = type; +this.err = err; +} + +/** + * Gets the failure type. + * + * @return Failure type. + */ +public FailureType type() { +return type; +} + +/** + * Gets the exception. + * + * @return Exception or {@code null}. + */ +public Throwable error() { +return err; +} + +/** {@inheritDoc} */ +@Override public String toString() { +return S.toString(FailureContext.class, this); +} +} diff --git
[ignite-3] branch ignite-20368 created (now 0860e0caa4)
This is an automated email from the ASF dual-hosted git repository. sk0x50 pushed a change to branch ignite-20368 in repository https://gitbox.apache.org/repos/asf/ignite-3.git at 0860e0caa4 IGNITE-20386 Remove CatalogTables (#2640) No new revisions were added by this update.
[ignite-3] branch test-mute deleted (was bff5dc50a9)
This is an automated email from the ASF dual-hosted git repository. sk0x50 pushed a change to branch test-mute in repository https://gitbox.apache.org/repos/asf/ignite-3.git was bff5dc50a9 Test This change permanently discards the following revisions: discard bff5dc50a9 Test