Skip to content

Conversation

@alex-plekhanov
Copy link
Contributor

Thank you for submitting the pull request to the Apache Ignite.

In order to streamline the review of the contribution
we ask you to ensure the following steps have been taken:

The Contribution Checklist

  • There is a single JIRA ticket related to the pull request.
  • The web-link to the pull request is attached to the JIRA ticket.
  • The JIRA ticket has the Patch Available state.
  • The pull request body describes changes that have been made.
    The description explains WHAT and WHY was made instead of HOW.
  • The pull request title is treated as the final commit message.
    The following pattern must be used: IGNITE-XXXX Change summary where XXXX - number of JIRA issue.
  • A reviewer has been mentioned through the JIRA comments
    (see the Maintainers list)
  • The pull request has been checked by the Teamcity Bot and
    the green visa attached to the JIRA ticket (see TC.Bot: Check PR)

Notes

If you need any help, please email dev@ignite.apache.org or ask anу advice on http://asf.slack.com #ignite channel.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 2, 2025

Quality Gate Failed Quality Gate failed

Failed conditions
2 New Code Smells (required ≤ 1)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@nizhikov nizhikov self-requested a review December 16, 2025 16:13
* @return {@code this} for chaining.
*/
@IgniteSpiConfiguration(optional = true)
public TcpCommunicationSpi setMessageQueueWarningSize(int msgQueueWarnSize) {
Copy link
Contributor

@nizhikov nizhikov Dec 16, 2025

Choose a reason for hiding this comment

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

queueWarningSize and queueLimit looks coupled to me.
If we make queueLimit bigger then warning size must become bigger too.

Can we make this new proeprty double?
So queueWarningSize depends on queueLimit.

and actual warning limit will be equal to queueLimit * warningFactor

Copy link
Contributor

Choose a reason for hiding this comment

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

Do we want to make this new API stable from the first merge?
Do we need IgniteExperimental annotation here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

These parameters solve different problems. Queue limit - it's an OOM protection, warning size - it's an diagnostic. They can be set independently, for example, queue limit can be 0, while warning size more than 0, so warning size it's not a factor of queue limit.

About IgniteExperimental - it's just a one parameter for log warning, not an entire subsystem, I think setting annotation for each minor fix is overkill.

@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
5 New Code Smells (required ≤ 1)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

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