Hi all,

The following code run without exception, but it output nothing. And if I
remove the red code , it will output records. So does it because of
connection time out ? If so, it should throw exception rather than doing
nothing.


        ResultScanner scanner = HTableFactory.getTable("a").getScanner(new
Scan());
        Iterator<Result> iter = scanner.iterator();
*        try {
            Thread.sleep(1000*60*2);
        } catch (InterruptedException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }*

        while (iter.hasNext()) {
            Result result = iter.next();
            System.out.println(result);
        }

Jeff Zhang

Reply via email to