Skip to content

IGNITE-28731 Create cluster auto activation plugin#355

Open
DenisPolo wants to merge 1 commit into
apache:masterfrom
DenisPolo:ignite-28731
Open

IGNITE-28731 Create cluster auto activation plugin#355
DenisPolo wants to merge 1 commit into
apache:masterfrom
DenisPolo:ignite-28731

Conversation

@DenisPolo

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread .gigaide/gigaide.properties Outdated
@@ -0,0 +1,1882 @@
## changed at Wed Jun 24 14:13:56 VLAT 2026
#Wed Jun 24 14:13:56 VLAT 2026
com.gigaide.database.elements.stack.SqlFileStackElement.checkElement=true

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need this file?

@@ -0,0 +1,85 @@
Apache Ignite Auto Activation Plugin

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replace README.txt with README.md

</list>
</property>

<!-- Конфигурация TCP Discovery SPI -->

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, use english language for comments

</bean>

<bean id="ignConnectorConfiguration" class="org.apache.ignite.configuration.ConnectorConfiguration">
<!-- property name="host" value="0.0.0.0"/-->

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need this comment?


/** {@inheritDoc} */
@Override public void validateNewNode(ClusterNode cn) throws PluginValidationException {
// do nothing

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// do nothing
// No-op.

cluster.state(ClusterState.ACTIVE);
}
else {
if (logger.isInfoEnabled()) logger.info("Auto activation skipped - activation condition not meet");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (logger.isInfoEnabled()) logger.info("Auto activation skipped - activation condition not meet");
if (logger.isInfoEnabled())
logger.info("Auto activation skipped - activation condition not meet");


missingNodes.remove(attrVal);

if (missingNodes.isEmpty()) break;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (missingNodes.isEmpty()) break;
if (missingNodes.isEmpty())
break;

use new lines for body of if

this.requiredValues = requiredValues;
}

/** */

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/** */
/** {@inheritDoc} */

Comment on lines +1 to +18
package opt.apache.ignite.activation;

/*
* 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.
*/

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

license goes first and package then

@@ -0,0 +1,135 @@
package opt.apache.ignite.activation;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add license

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants