Uh oh!
There was an error while loading. Please reload this page.
HBASE-29843 HBaseRPCController.setPriority(final TableName tn) is nev… - #7692
Conversation
Apache-HBase
commented
Jan 29, 2026
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Jan 29, 2026
💔 -1 overall
This message was automatically generated. |
Apache9
commented
Jan 30, 2026
@stoty Please see if this could solve Phoenix's problem? I introduced a new setPriority method and the default implementation in the interface is call setPriority(int) and then setPriority(TableName). Thanks. |
| (int) Math.min(Integer.MAX_VALUE, TimeUnit.NANOSECONDS.toMillis(timeoutNs))); | ||
| } | ||
| controller.setPriority(priority); | ||
| controller.setPriority(priority, tableName); |
There was a problem hiding this comment.
Thank you for this change.
I think we could make this work from the Phoenix side with adding a function to https://github.com/apache/phoenix/blob/master/phoenix-core-client/src/main/java/org/apache/hadoop/hbase/ipc/controller/MetadataRpcController.java#L70
public void setPriority(int priority, final TableName tn) {
setPriority(tn);
}
There was a problem hiding this comment.
With this change in place, Phoenix does not need any change, since the default method of setPriority(int, TableName) is to call setPriority(int) and then setPriority(TableName).
There was a problem hiding this comment.
When we call controller.setPriority(priority, tableName); on the metadataRpcController which doesn't have a setPriority(priority, tableName) method it results calling theDelegatingHBaseRpcController's setPriority(int priority, @Nullable TableName tableName) method
It calls the delegate.setPriority(priority, tableName) ( not setPriority(int) and then setPriority(TableName) )
Where the delegate is HBaseRpcControllerImpl
So we won't call the MetadataRpcController's setPriority(TableName)
9daf5fd to
5c261a8CompareApache9
commented
Feb 14, 2026
@richardantal Do you think I should also include this change on 2.x branches? Or just include this in 3.x? Which is better for Phoenix? |
richardantal
commented
Feb 17, 2026
For Phoenix it is enough to just include this change to 3.x and master branch. |
richardantal
left a comment
There was a problem hiding this comment.
LGTM from phoenix side
| tn != null && tn.isSystemTable() ? HConstants.SYSTEMTABLE_QOS : HConstants.NORMAL_QOS); | ||
| } | ||
| static int calcPriority(int priority, TableName tableName) { |
There was a problem hiding this comment.
nit: This is never used anywhere.
…er called on branch-3+
PDavid
left a comment
There was a problem hiding this comment.
Thanks, looks good to me. 👍
Uh oh!
There was an error while loading. Please reload this page.
…er called on branch-3+