You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "ddanielr (via GitHub)" <gi...@apache.org> on 2023/11/27 17:57:55 UTC
[PR] Fixes compaction property log message bug [accumulo]
ddanielr opened a new pull request, #3987:
URL: https://github.com/apache/accumulo/pull/3987
Fixes an incorrect logging statement from appearing during normal startup conditions when processing `service.<service>.planner` compaction properties.
Bug was introduced in #3915.
Log message:
```
[main] WARN org.apache.accumulo.core.util.compaction.CompactionServicesConfig [] - Ignoring compaction property default.planner as does not match the prefix used by the referenced planner definition
```
Steps to replicate bug:
1. git checkout `main`
2. Run any of the tests in `CompactionServicesConfigTest`
3. See the log message in the output.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fixes compaction property log message bug [accumulo]
Posted by "keith-turner (via GitHub)" <gi...@apache.org>.
keith-turner commented on code in PR #3987:
URL: https://github.com/apache/accumulo/pull/3987#discussion_r1420947348
##########
core/src/main/java/org/apache/accumulo/core/util/compaction/CompactionServicesConfig.java:
##########
@@ -133,13 +133,11 @@ public CompactionServicesConfig(AccumuloConfiguration aconf) {
if (eprop == null || aconf.isPropertySet(eprop)) {
rateLimits.put(tokens[0], ConfigurationTypeHelper.getFixedMemoryAsBytes(val));
}
- } else if (!(tokens.length == 2 && tokens[1].equals("planner"))) {
+ } else if (tokens.length == 2 && tokens[1].equals("planner")) {
Review Comment:
Just to make sure I am understanding this correctly, is this ignoring the planner class when looking for planner options?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fixes compaction property log message bug [accumulo]
Posted by "ddanielr (via GitHub)" <gi...@apache.org>.
ddanielr merged PR #3987:
URL: https://github.com/apache/accumulo/pull/3987
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fixes compaction property log message bug [accumulo]
Posted by "keith-turner (via GitHub)" <gi...@apache.org>.
keith-turner commented on code in PR #3987:
URL: https://github.com/apache/accumulo/pull/3987#discussion_r1420967661
##########
core/src/main/java/org/apache/accumulo/core/util/compaction/CompactionServicesConfig.java:
##########
@@ -133,13 +133,11 @@ public CompactionServicesConfig(AccumuloConfiguration aconf) {
if (eprop == null || aconf.isPropertySet(eprop)) {
rateLimits.put(tokens[0], ConfigurationTypeHelper.getFixedMemoryAsBytes(val));
}
- } else if (!(tokens.length == 2 && tokens[1].equals("planner"))) {
+ } else if (tokens.length == 2 && tokens[1].equals("planner")) {
Review Comment:
Thanks, I wasn't completely sure.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fixes compaction property log message bug [accumulo]
Posted by "ddanielr (via GitHub)" <gi...@apache.org>.
ddanielr commented on code in PR #3987:
URL: https://github.com/apache/accumulo/pull/3987#discussion_r1420966884
##########
core/src/main/java/org/apache/accumulo/core/util/compaction/CompactionServicesConfig.java:
##########
@@ -133,13 +133,11 @@ public CompactionServicesConfig(AccumuloConfiguration aconf) {
if (eprop == null || aconf.isPropertySet(eprop)) {
rateLimits.put(tokens[0], ConfigurationTypeHelper.getFixedMemoryAsBytes(val));
}
- } else if (!(tokens.length == 2 && tokens[1].equals("planner"))) {
+ } else if (tokens.length == 2 && tokens[1].equals("planner")) {
Review Comment:
Yes, because we've already processed the planner property on line 96.
https://github.com/apache/accumulo/pull/3987/files#diff-ba8ebe6daae5454d3fd92a0f328ed7a6b40a5796994831c314f5ad0a6dd5aa8aR96
Since we aren't going to do anything with the planner option in this loop we just call `return` for this property and move on to the next property.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fixes compaction property log message bug [accumulo]
Posted by "ddanielr (via GitHub)" <gi...@apache.org>.
ddanielr commented on code in PR #3987:
URL: https://github.com/apache/accumulo/pull/3987#discussion_r1420966884
##########
core/src/main/java/org/apache/accumulo/core/util/compaction/CompactionServicesConfig.java:
##########
@@ -133,13 +133,11 @@ public CompactionServicesConfig(AccumuloConfiguration aconf) {
if (eprop == null || aconf.isPropertySet(eprop)) {
rateLimits.put(tokens[0], ConfigurationTypeHelper.getFixedMemoryAsBytes(val));
}
- } else if (!(tokens.length == 2 && tokens[1].equals("planner"))) {
+ } else if (tokens.length == 2 && tokens[1].equals("planner")) {
Review Comment:
Yes, because we've already processed the planner option on line 96.
https://github.com/apache/accumulo/pull/3987/files#diff-ba8ebe6daae5454d3fd92a0f328ed7a6b40a5796994831c314f5ad0a6dd5aa8aR96
Since we aren't going to do anything with the planner option in this loop we just call `return` for this property and move on to the next property.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org