hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hadi Kahraman (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-16814) FuzzyRowFilter causes remote call timeout
Date Wed, 12 Oct 2016 07:30:21 GMT

    [ https://issues.apache.org/jira/browse/HBASE-16814?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15567911#comment-15567911
] 

Hadi Kahraman commented on HBASE-16814:
---------------------------------------

test code:

{code}
import java.util.*;
import org.apache.hadoop.conf.*;
import org.apache.hadoop.fs.*;
import org.apache.hadoop.hbase.*;
import org.apache.hadoop.hbase.client.*;
import org.apache.hadoop.hbase.filter.*;
import org.apache.hadoop.hbase.util.*;

public class x {
    public static void main(String[] args) throws Exception {
        Configuration config = new Configuration();
        Configuration hbaseConf = HBaseConfiguration.create(config);
        hbaseConf.addResource(new Path("../Applications/hbase-1.1.4/conf/hbase-site.xml"));
        System.out.println("connecting...");
        Connection hbaseConnection = ConnectionFactory.createConnection(hbaseConf);
        System.out.println("connected...");
        TableName tname = TableName.valueOf("test");
        Table table = hbaseConnection.getTable(tname);
        Scan s = new Scan();
        s.setStartRow(Bytes.toBytes("row10"));
        s.setStopRow(Bytes.toBytes("row17"));
        s.addFamily(Bytes.toBytes("cf"));
        byte[] match = Bytes.toBytes("?????3");
        byte[] mask = {1,1,1,1,1,0};
        Pair pair = new Pair<>(match, mask);
        FuzzyRowFilter fuzzy = new FuzzyRowFilter(Arrays.asList(pair));
        FilterList filterList = new FilterList(FilterList.Operator.MUST_PASS_ALL);
        filterList.addFilter(fuzzy);
        s.setFilter(filterList);
        ResultScanner rs = table.getScanner(s);
        System.out.println("starting scan...");
        for (Result rr = rs.next(); rr != null; rr = rs.next()) {
            System.out.println("Found row: " + rr);
        }
        rs.close();
        table.close();
        hbaseConnection.close();
    }
}
{code}

> FuzzyRowFilter causes remote call timeout
> -----------------------------------------
>
>                 Key: HBASE-16814
>                 URL: https://issues.apache.org/jira/browse/HBASE-16814
>             Project: HBase
>          Issue Type: Bug
>          Components: Client
>    Affects Versions: 1.2.2, 1.2.3
>         Environment: LinuxMint 17.3 (=Ubuntu 14.04), Java 1.8
>            Reporter: Hadi Kahraman
>
> FuzzyRowFilter causes ResultScanner.next hang and timeout. The same code works well on
hbase 1.2.1, 1.2.0, 1.1.4.
> hbase server: cloudera 5.7.0 (hbase 1.2.0) on 4 hosts, 1 master, 3 workers



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message