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 2025/02/27 19:40:20 UTC
[PR] Removes a constructor from SimpleLoadBalancer [accumulo]
ddanielr opened a new pull request, #5363:
URL: https://github.com/apache/accumulo/pull/5363
Removes the single TableId constructor from SimpleLoadBalancer and modifies the balancer logic to use the tablesToBalance method from the balancerParams.
This ensures that the SimpleLoadBalancer will only balance on a subset of tables vs balancing all tables.
--
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] Removes a constructor from SimpleLoadBalancer [accumulo]
Posted by "ddanielr (via GitHub)" <gi...@apache.org>.
ddanielr commented on PR #5363:
URL: https://github.com/apache/accumulo/pull/5363#issuecomment-2689240668
Seeing an issue with the TableLoadBalancerTest. Needs more investigation.
--
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] Removes a constructor from SimpleLoadBalancer [accumulo]
Posted by "ddanielr (via GitHub)" <gi...@apache.org>.
ddanielr commented on code in PR #5363:
URL: https://github.com/apache/accumulo/pull/5363#discussion_r1978034032
##########
core/src/main/java/org/apache/accumulo/core/spi/balancer/SimpleLoadBalancer.java:
##########
@@ -294,8 +294,8 @@ List<TabletMigration> move(ServerCounts tooMuch, ServerCounts tooLittle, int cou
private TableId getTableToMigrate(ServerCounts tooMuch, Map<TableId,Integer> tooMuchMap,
Map<TableId,Integer> tooLittleMap) {
- if (tableToBalance != null) {
Review Comment:
> @ddanielr the problem w/ TableLoadBalancerTest was related to this removal. I added prints locally and ran the test and found that the simple load balancer was balancing for all tabels w/o this even if it was given a smaller set of tables. Tried to fix this in [26a4c09](https://github.com/apache/accumulo/commit/26a4c09fad15dd1f716172cf7d066c5f0f162d38)
I tested your changes in isolation and found that that the underlying error was a call to `TServerStatus.getTableMap()` that was just adding every table and tablet count into the tables to consider for migrations. which you fixed in [26a4c09](https://github.com/apache/accumulo/commit/26a4c09fad15dd1f716172cf7d066c5f0f162d38)
Added an additional test for this by balancing a subset of the overall tables and was able to replicate the failure in the SimpleLoadBalancerTest without your changes.
--
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] Removes a constructor from SimpleLoadBalancer [accumulo]
Posted by "ddanielr (via GitHub)" <gi...@apache.org>.
ddanielr commented on PR #5363:
URL: https://github.com/apache/accumulo/pull/5363#issuecomment-2699300293
Reviewed this code with @keith-turner and realized that removing this constructor actually breaks all user created table balancers that are supposed to be loaded by the TableLoadBalancer.
TableLoadBalancer requires user defined balancers to have a constructor that accepts a tableId, but we do not enforce that behavior with any interface in the SPI.
This is also not documented in the javadoc.
Leaving this open to make javadoc updates. But these changes will need to be done in `main` and not in `2.1`
--
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] Removes a constructor from SimpleLoadBalancer [accumulo]
Posted by "ddanielr (via GitHub)" <gi...@apache.org>.
ddanielr commented on PR #5363:
URL: https://github.com/apache/accumulo/pull/5363#issuecomment-2968083084
Closing this in favor of #5426 to handle this work in the `main` branch
--
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] Removes a constructor from SimpleLoadBalancer [accumulo]
Posted by "ddanielr (via GitHub)" <gi...@apache.org>.
ddanielr closed pull request #5363: Removes a constructor from SimpleLoadBalancer
URL: https://github.com/apache/accumulo/pull/5363
--
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] Removes a constructor from SimpleLoadBalancer [accumulo]
Posted by "ddanielr (via GitHub)" <gi...@apache.org>.
ddanielr commented on code in PR #5363:
URL: https://github.com/apache/accumulo/pull/5363#discussion_r1978034032
##########
core/src/main/java/org/apache/accumulo/core/spi/balancer/SimpleLoadBalancer.java:
##########
@@ -294,8 +294,8 @@ List<TabletMigration> move(ServerCounts tooMuch, ServerCounts tooLittle, int cou
private TableId getTableToMigrate(ServerCounts tooMuch, Map<TableId,Integer> tooMuchMap,
Map<TableId,Integer> tooLittleMap) {
- if (tableToBalance != null) {
Review Comment:
> @ddanielr the problem w/ TableLoadBalancerTest was related to this removal. I added prints locally and ran the test and found that the simple load balancer was balancing for all tabels w/o this even if it was given a smaller set of tables. Tried to fix this in [26a4c09](https://github.com/apache/accumulo/commit/26a4c09fad15dd1f716172cf7d066c5f0f162d38)
I tested your changes in isolation and found that that the underlying error was a call to `TServerStatus.getTableMap()` that was just adding every table and tablet count into the tables to consider for migrations. which you fixed in [26a4c09](https://github.com/apache/accumulo/commit/26a4c09fad15dd1f716172cf7d066c5f0f162d38)
Added an additional test for this by balancing a subset of the overall tables and was able to replicate the failure in the SimpleLoadBalancerTest before applying your changes.
--
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] Removes a constructor from SimpleLoadBalancer [accumulo]
Posted by "keith-turner (via GitHub)" <gi...@apache.org>.
keith-turner commented on code in PR #5363:
URL: https://github.com/apache/accumulo/pull/5363#discussion_r1976472692
##########
core/src/main/java/org/apache/accumulo/core/spi/balancer/SimpleLoadBalancer.java:
##########
@@ -294,8 +294,8 @@ List<TabletMigration> move(ServerCounts tooMuch, ServerCounts tooLittle, int cou
private TableId getTableToMigrate(ServerCounts tooMuch, Map<TableId,Integer> tooMuchMap,
Map<TableId,Integer> tooLittleMap) {
- if (tableToBalance != null) {
Review Comment:
@ddanielr the problem w/ TableLoadBalancerTest was related to this removal. I added prints locally and ran the test and found that the simple load balancer was balancing for all tabels w/o this even if it was given a smaller set of tables. Tried to fix this in 26a4c09fad15dd1f716172cf7d066c5f0f162d38
--
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