-
Notifications
You must be signed in to change notification settings - Fork 1.9k
IGNITE-27420 WalEnable/Disable Commands unable to modify groups with multiple caches #12601
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
base: master
Are you sure you want to change the base?
Conversation
| CacheGroupDescriptor grpDesc = ctx.cache().cacheGroupDescriptor(cacheOrGrpId); | ||
|
|
||
| if (grpDesc != null) { | ||
| for (DynamicCacheDescriptor cacheDesc : ctx.cache().cacheDescriptors().values()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks we can extract caches with grpDesc#caches()?
| assert msg.startsWith("Cache doesn't exist") || | ||
| msg.startsWith("Failed to change WAL mode because some caches no longer exist") : | ||
| msg.startsWith("Failed to change WAL mode because some caches no longer exist") || | ||
| msg.startsWith("Cache names cannot be empty.") : |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is misleading error, user should never receive it.
| Map<String, Integer> cachesInGrp = grpDesc.caches(); | ||
| if (cachesInGrp.isEmpty()) | ||
| throw new IgniteException("Cache group '" + cacheOrGrpName + | ||
| "' does not contain any caches."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can be written in single line. We have limit in 140 symbols
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
The description explains WHAT and WHY was made instead of HOW.
The following pattern must be used:
IGNITE-XXXX Change summarywhereXXXX- number of JIRA issue.(see the Maintainers list)
the
green visaattached 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.