You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Zheng Wang (Jira)" <ji...@apache.org> on 2020/08/19 12:05:00 UTC
[jira] [Created] (HBASE-24908) Correct the description of
hbase.offpeak.end.hour
Zheng Wang created HBASE-24908:
----------------------------------
Summary: Correct the description of hbase.offpeak.end.hour
Key: HBASE-24908
URL: https://issues.apache.org/jira/browse/HBASE-24908
Project: HBase
Issue Type: Improvement
Components: documentation
Reporter: Zheng Wang
Assignee: Zheng Wang
The inclusive in description should be exclusive, it will mislead users.
{code:java}
@Override
public boolean isOffPeakHour(int targetHour) {
if (startHour <= endHour) {
return startHour <= targetHour && targetHour < endHour;
}
return targetHour < endHour || startHour <= targetHour;
}
{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)