[jira] [Created] (HBASE-24693) regioninfo#isLast() has a logic error

2020-07-07 Thread Bo Cui (Jira)
Bo Cui created HBASE-24693:
--

 Summary: regioninfo#isLast() has a logic error
 Key: HBASE-24693
 URL: https://issues.apache.org/jira/browse/HBASE-24693
 Project: HBase
  Issue Type: Bug
Affects Versions: 2.2.3, master
Reporter: Bo Cui


[https://github.com/apache/hbase/blob/90f4ff7d7c6997f61dbe40748b5c157879352acb/hbase-client/src/main/java/org/apache/hadoop/hbase/client/RegionInfo.java#L771]

it should be 
{code:java}
default boolean isLast() {
  return Bytes.equals(getEndKey(), HConstants.EMPTY_END_ROW);
}
{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Resolved] (HBASE-24650) Change the return types of the new checkAndMutate methods introduced in HBASE-8458

2020-07-07 Thread Toshihiro Suzuki (Jira)


 [ 
https://issues.apache.org/jira/browse/HBASE-24650?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Toshihiro Suzuki resolved HBASE-24650.
--
Hadoop Flags: Incompatible change,Reviewed
Release Note: 
This changed the return type of checkAndMutate methods to support 
CheckAndMutate with Increment/Append.

The new APIs for the Table interface:
{code}
/**
 * checkAndMutate that atomically checks if a row matches the specified 
condition. If it does,
 * it performs the specified action.
 *
 * @param checkAndMutate The CheckAndMutate object.
 * @return A CheckAndMutateResult object that represents the result for the 
CheckAndMutate.
 * @throws IOException if a remote or network exception occurs.
 */
default CheckAndMutateResult checkAndMutate(CheckAndMutate checkAndMutate) 
throws IOException {
  return checkAndMutate(Collections.singletonList(checkAndMutate)).get(0);
}

/**
 * Batch version of checkAndMutate. The specified CheckAndMutates are batched 
only in the sense
 * that they are sent to a RS in one RPC, but each CheckAndMutate operation is 
still executed
 * atomically (and thus, each may fail independently of others).
 *
 * @param checkAndMutates The list of CheckAndMutate.
 * @return A list of CheckAndMutateResult objects that represents the result 
for each
 *   CheckAndMutate.
 * @throws IOException if a remote or network exception occurs.
 */
default List checkAndMutate(List 
checkAndMutates)
  throws IOException {
  throw new NotImplementedException("Add an implementation!");
}
{code}

The new APIs for the AsyncTable interface:
{code}
/**
 * checkAndMutate that atomically checks if a row matches the specified 
condition. If it does,
 * it performs the specified action.
 *
 * @param checkAndMutate The CheckAndMutate object.
 * @return A {@link CompletableFuture}s that represent the result for the 
CheckAndMutate.
 */
CompletableFuture checkAndMutate(CheckAndMutate 
checkAndMutate);

/**
 * Batch version of checkAndMutate. The specified CheckAndMutates are batched 
only in the sense
 * that they are sent to a RS in one RPC, but each CheckAndMutate operation is 
still executed
 * atomically (and thus, each may fail independently of others).
 *
 * @param checkAndMutates The list of CheckAndMutate.
 * @return A list of {@link CompletableFuture}s that represent the result for 
each
 *   CheckAndMutate.
 */
List> checkAndMutate(
  List checkAndMutates);

/**
 * A simple version of batch checkAndMutate. It will fail if there are any 
failures.
 *
 * @param checkAndMutates The list of rows to apply.
 * @return A {@link CompletableFuture} that wrapper the result list.
 */
default CompletableFuture> checkAndMutateAll(
  List checkAndMutates) {
  return allOf(checkAndMutate(checkAndMutates));
}
{code}
  Resolution: Fixed

> Change the return types of the new checkAndMutate methods introduced in 
> HBASE-8458
> --
>
> Key: HBASE-24650
> URL: https://issues.apache.org/jira/browse/HBASE-24650
> Project: HBase
>  Issue Type: Sub-task
>  Components: Client
>Reporter: Toshihiro Suzuki
>Assignee: Toshihiro Suzuki
>Priority: Major
> Fix For: 3.0.0-alpha-1, 2.4.0
>
>
> To support CheckAndMutate with Increment/Append, the new checkAndMutate 
> methods introduced in HBASE-8458 need to return the result of the specified 
> Increment/Append operation in addition to a boolean value represents whether 
> it's successful or not. Currently, the methods return only boolean value(s), 
> so we need to change the return types of the methods. The methods are 
> unreleased yet currently, so I think it's no problem to change the return 
> types of the methods.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Created] (HBASE-24692) WebUI header bar overlaps page content when window is too narrow

2020-07-07 Thread Nick Dimiduk (Jira)
Nick Dimiduk created HBASE-24692:


 Summary: WebUI header bar overlaps page content when window is too 
narrow
 Key: HBASE-24692
 URL: https://issues.apache.org/jira/browse/HBASE-24692
 Project: HBase
  Issue Type: Bug
  Components: UI
Affects Versions: 2.3.0
Reporter: Nick Dimiduk


It seems the CSS on our WebUI is such that the header will expand down 
vertically as the content wraps dynamically. However, the page content does not 
shift down along with it, resulting in the header overlapping the page content.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Resolved] (HBASE-24691) Fix flaky TestWALEntryStream

2020-07-07 Thread Guanghao Zhang (Jira)


 [ 
https://issues.apache.org/jira/browse/HBASE-24691?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Guanghao Zhang resolved HBASE-24691.

Resolution: Duplicate

Resolved as duplicate.

> Fix flaky TestWALEntryStream
> 
>
> Key: HBASE-24691
> URL: https://issues.apache.org/jira/browse/HBASE-24691
> Project: HBase
>  Issue Type: Sub-task
>Reporter: Guanghao Zhang
>Assignee: Guanghao Zhang
>Priority: Major
>
> [https://builds.apache.org/view/H-L/view/HBase/job/HBase-Find-Flaky-Tests/job/branch-2.2/lastSuccessfulBuild/artifact/dashboard.html]
>  
> Failed 100.0% (13 / 13) recently.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)