[
https://issues.apache.org/jira/browse/HBASE-20293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16442205#comment-16442205
]
Toshihiro Suzuki commented on HBASE-20293:
------------------------------------------
I just attached a patch for branch-1. In branch-1, the jruby version is older
than the master branch, so I had to modify a little bit things from the patch
for the master branch.
{code:java}
724 locator.getAllRegionLocations().
725 select { |s|
RegionReplicaUtil.isDefaultReplica(s.getRegionInfo) }.
726 map { |i|
Bytes.toStringBinary(i.getRegionInfo().getStartKey) }.
727 delete_if { |k| k == "" }
{code}
It seems like the dots must be at the last of the statement.
{code:java}
41 puts(format('Total number of splits = %<numsplits>d',
42 numsplits: (splits.size + 1)))
{code}
It seems like this hash expression is not allowed.
Thanks.
> get_splits returns duplicate split points when region replication is on
> -----------------------------------------------------------------------
>
> Key: HBASE-20293
> URL: https://issues.apache.org/jira/browse/HBASE-20293
> Project: HBase
> Issue Type: Bug
> Components: shell
> Reporter: Toshihiro Suzuki
> Assignee: Toshihiro Suzuki
> Priority: Minor
> Attachments: HBASE-20293.branch-1.001.patch,
> HBASE-20293.master.001.patch, HBASE-20293.master.002.patch,
> HBASE-20293.master.003.patch, HBASE-20293.master.004.patch
>
>
> When region replication is on, get_splits returns duplicate split points like
> the following:
> {code}
> hbase(main):001:0> create "test", "cf", {REGION_REPLICATION => 3}, SPLITS =>
> ["10"]
> Created table test
> Took 1.0975 seconds
> hbase(main):002:0> get_splits "test"
> Total number of splits = 4
> 10
> 10
> 10
> Took 0.0941 seconds
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)