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

IGNITE-23392 Add SessionContext API #11618

Open
wants to merge 29 commits into
base: application_context
Choose a base branch
from

Conversation

timoninmaxim
Copy link
Member

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 [email protected] or ask anу advice on http://asf.slack.com #ignite channel.

Copy link

sonarcloud bot commented Oct 24, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
5 New Code Smells (required ≤ 1)

See analysis details on SonarCloud

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

@timoninmaxim timoninmaxim changed the base branch from master to application_context October 28, 2024 10:57
@timoninmaxim timoninmaxim force-pushed the IGNITE-23392__application_context_srv branch from f5d921f to 8fa7e43 Compare November 12, 2024 20:18
@timoninmaxim timoninmaxim changed the title IGNITE-23392 Add ApplicationContext API IGNITE-23392 Add SessionContext API Nov 13, 2024
@timoninmaxim timoninmaxim force-pushed the IGNITE-23392__application_context_srv branch from fc2c340 to 1e2227d Compare November 16, 2024 17:26
@timoninmaxim timoninmaxim force-pushed the IGNITE-23392__application_context_srv branch from 1e2227d to 40fa10d Compare November 16, 2024 17:32
@timoninmaxim timoninmaxim force-pushed the IGNITE-23392__application_context_srv branch 2 times, most recently from 207c370 to d8bfe06 Compare November 16, 2024 20:29
@timoninmaxim timoninmaxim force-pushed the IGNITE-23392__application_context_srv branch from d8bfe06 to 6f33e04 Compare November 16, 2024 20:43
@@ -221,6 +222,12 @@ private void dropTable(H2TableDescriptor tbl) {

/** {@inheritDoc} */
@Override public void onFunctionCreated(String schema, String name, boolean deterministic, Method method) {
if (!Modifier.isStatic(method.getModifiers())) {
log.warning("Skip creating SQL function '" + name + "' in H2 engine because it is not static.");
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's use LT.warn here to reduce number of logging in case user application generates a lot of query with the same UDF.

Copy link
Member Author

Choose a reason for hiding this comment

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

This log message appears only once, when cache is created.

import org.jetbrains.annotations.Nullable;

/**
* Provides access to attributes set with {@link Ignite#withApplicationAttributes}.
Copy link
Contributor

@nizhikov nizhikov Nov 20, 2024

Choose a reason for hiding this comment

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

Let's extend javadoc with the explanation about attributes hierarchy.

Copy link
Member Author

Choose a reason for hiding this comment

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

Let's add javadocs for hierarchy in patch for ticket IGNITE-23725

import org.jetbrains.annotations.Nullable;

/**
* Provides access to session context.
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's extend javadoc with the explanation about attributes hierarchy.

Copy link
Member Author

Choose a reason for hiding this comment

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

Let's add javadocs for hierarchy in patch for ticket IGNITE-23725

@timoninmaxim timoninmaxim force-pushed the IGNITE-23392__application_context_srv branch from 9f2c3a4 to cef71fa Compare November 26, 2024 15:21
@timoninmaxim timoninmaxim force-pushed the IGNITE-23392__application_context_srv branch from 455f3c1 to 37b4965 Compare November 26, 2024 16:18
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