-
Notifications
You must be signed in to change notification settings - Fork 478
Update javadoc to indicate composite view returned or not #4077
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
Conversation
|
Do you have extra files in this commit? It looks like you may have include the changes for ScanConsistencyIT. |
|
I think I must have branched off my other feature branch, not main. Working on fix |
b01acf4 to
11200c3
Compare
ctubbsii
left a comment
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.
I made one suggestion in one place, but it might apply to other places as well... I just wasn't going to be comment the same thing in multiple places.
It looks like this is targeting the main branch. The PR should be targeting the 2.1 branch instead, as these methods exist there as well.
core/src/main/java/org/apache/accumulo/core/client/admin/NamespaceOperations.java
Outdated
Show resolved
Hide resolved
InstanceOperations: Did not find any changes needed to be made: - modifyProperties() returns non-composite (System level only) view as stated in the javadocs - getSystemConfiguration() returns composite view as stated in the javadocs - getSiteConfiguration() returns non-composite (Site level only) view as stated in the javadocs NamespaceOperations: - modifyProperties() returns non-composite (Namespace level only) view as stated in the javadocs (no changes here) - getProperties() returns a composite view. Updated javadocs. - getConfiguration() returns a composite view. Updated javadocs. - getNamespaceProperties() returns a non-composite (Namespace level only) view. Updated javadocs. TableOperations: - modifyProperties() returns non-composite (Table level only) view as stated in the javadocs (no changes here) - getProperties() returns a composite view. Updated javadocs. - getConfiguration() returns a composite view. Updated javadocs. - getTableProperties() returns a non-composite (Table level only) view. Updated javadocs. No other methods were applicable.
| * method returns a Map instead of an Iterable. | ||
| * Gets a merged view of the properties of a namespace from its parent configuration. These | ||
| * properties are inherited by tables in this namespace. Note that recently changed properties may | ||
| * not be available immediately. This new method returns a Map instead of an Iterable. |
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.
I don't feel that the This new method... lines should be included. They would only be valid for one version, until the are no longer "new". IDE's will highlight the return type when someone tries to use it. Feel free to ignore if it does seem useful and I'm missing that context.
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.
Yes I agree. I found it strange that "new" was included. It was already present and I didn't want to make any unwanted changes. I'll remove it
3310d19 to
81b12d5
Compare
|
Changed to target 2.1 branch, not main |
|
It seemed odd that this didn't include changes to InstanceOperations, so I went and looked and it seems we don't have a method to retrieve the non-merged view of the system configuration like we do for namespace and tables. That's a frustrating inconsistency, but it shouldn't be added in a bugfix release. It can be addressed in 3.1, separate from this javadoc update, if we want to add that. |
Yeah, I was also wondering that. Let me know if you think I should open an issue for that |
|
@ctubbsii are you ok with these changes now? |
ctubbsii
left a comment
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.
@keith-turner asked:
@ctubbsii are you ok with these changes now?
Yeah, seems fine. My previous rejection was only because of the need to change the base branch to 2.1.
I see my suggested wording about the parent configuration was also added, but after looking at it in context, I'm wondering if it should say "with its parent configuration" rather than "from its parent configuration". Regardless, I'm fine with these changes, with or without additional tweaks to that phrasing.
|
I also think 'with' is better. Changed |
closes #4038
InstanceOperations:
Did not find any changes needed to be made:
stated in the javadocs
javadocs
stated in the javadocs
NamespaceOperations:
as stated in the javadocs (no changes here)
only) view. Updated javadocs.
TableOperations:
as stated in the javadocs (no changes here)
only) view. Updated javadocs.
No other methods were applicable.