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

TenantControl - creating cache records must use tenant #17121

Merged
merged 4 commits into from Jun 24, 2020

Conversation

lprimak
Copy link
Contributor

@lprimak lprimak commented Jun 23, 2020

Version 3.12.X

Wrapped factory instantiation in try/finally block with tenant control enabled.
This is so factories have their tenant environment set

Please view diff w/o whitespace changes to make it a very easy diff :)

4.0 version of this PR #17122

when factories get invoked, appropriate tenant environment is created
@ghost ghost added the Source: Community PR or issue was opened by a community user label Jun 23, 2020
@devOpsHazelcast
Copy link
Collaborator

devOpsHazelcast commented Jun 23, 2020

CLA assistant check
All committers have signed the CLA.

Copy link
Collaborator

@vbekiaris vbekiaris left a comment

Choose a reason for hiding this comment

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

looks good, just one comment about exception throwing. Also, run mvn -Pcheckstyle clean install locally to ensure you fixed the checkstyle errors. Here is the output from PR builder:

04:46:51 [INFO] --- maven-checkstyle-plugin:2.15:checkstyle (default) @ hazelcast ---
04:47:24 [INFO] Starting audit...
04:47:24 /home/jenkins/jenkins_slave/workspace/Hazelcast-pr-builder/hazelcast/src/main/java/com/hazelcast/cache/impl/AbstractCacheRecordStore.java:153:5: Method length is 69 lines (max allowed is 60).
04:47:24 Audit done.

- moved some of constructor's functionality into a private method to comply with checkstyle rules
@lprimak
Copy link
Contributor Author

lprimak commented Jun 23, 2020

I have fixed the failed test

Copy link
Collaborator

@vbekiaris vbekiaris left a comment

Choose a reason for hiding this comment

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

👍

@vbekiaris vbekiaris merged commit 08e53cf into hazelcast:3.12.z Jun 24, 2020
@vbekiaris vbekiaris added this to the 3.12.9 milestone Jun 24, 2020
@hazelcast hazelcast deleted a comment from devOpsHazelcast Jun 26, 2020
@hazelcast hazelcast deleted a comment Jun 26, 2020
@hazelcast hazelcast deleted a comment from vbekiaris Jun 26, 2020
@hazelcast hazelcast deleted a comment Jun 26, 2020
@hazelcast hazelcast deleted a comment from lprimak Jun 26, 2020
@hazelcast hazelcast deleted a comment from vbekiaris Jun 26, 2020
@mmedenjak mmedenjak removed the request for review from ahmetmircik June 26, 2020 09:14
@lprimak lprimak deleted the TENANT_CACHE_CREATE_FIX branch November 7, 2020 23:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants