You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-user@hadoop.apache.org by Ted <r6...@gmail.com> on 2013/05/31 14:30:58 UTC

are ResultScanners vaid after hTable.close()

I tried scouring the API docs as well as googling this and I can't
find a definitive answer.

If I get an HTable instance and I close it, do I have to make sure I'm
finished using the ResultScanner and the Results before I close the
hTable? (i.e. like JDBC connection/resultSets?)

It looks like my code "runs" even after I close the hTable but I'm not
sure that it's not just working due to prefetched due / scannerCaching
or something.

-- 
Ted.

Re: are ResultScanners vaid after hTable.close()

Posted by Harsh J <ha...@cloudera.com>.
This is the Hadoop users list. Please ask HBase questions on their
own, vibrant user community at user@hbase.apache.org for best
responses. I've moved your post there. Please respond back over this
moved address instead of the hadoop lists.

On Fri, May 31, 2013 at 6:00 PM, Ted <r6...@gmail.com> wrote:
> I tried scouring the API docs as well as googling this and I can't
> find a definitive answer.
>
> If I get an HTable instance and I close it, do I have to make sure I'm
> finished using the ResultScanner and the Results before I close the
> hTable? (i.e. like JDBC connection/resultSets?)
>
> It looks like my code "runs" even after I close the hTable but I'm not
> sure that it's not just working due to prefetched due / scannerCaching
> or something.
>
> --
> Ted.



-- 
Harsh J

Re: are ResultScanners vaid after hTable.close()

Posted by Harsh J <ha...@cloudera.com>.
This is the Hadoop users list. Please ask HBase questions on their
own, vibrant user community at user@hbase.apache.org for best
responses. I've moved your post there. Please respond back over this
moved address instead of the hadoop lists.

On Fri, May 31, 2013 at 6:00 PM, Ted <r6...@gmail.com> wrote:
> I tried scouring the API docs as well as googling this and I can't
> find a definitive answer.
>
> If I get an HTable instance and I close it, do I have to make sure I'm
> finished using the ResultScanner and the Results before I close the
> hTable? (i.e. like JDBC connection/resultSets?)
>
> It looks like my code "runs" even after I close the hTable but I'm not
> sure that it's not just working due to prefetched due / scannerCaching
> or something.
>
> --
> Ted.



-- 
Harsh J

Re: are ResultScanners vaid after hTable.close()

Posted by Harsh J <ha...@cloudera.com>.
This is the Hadoop users list. Please ask HBase questions on their
own, vibrant user community at user@hbase.apache.org for best
responses. I've moved your post there. Please respond back over this
moved address instead of the hadoop lists.

On Fri, May 31, 2013 at 6:00 PM, Ted <r6...@gmail.com> wrote:
> I tried scouring the API docs as well as googling this and I can't
> find a definitive answer.
>
> If I get an HTable instance and I close it, do I have to make sure I'm
> finished using the ResultScanner and the Results before I close the
> hTable? (i.e. like JDBC connection/resultSets?)
>
> It looks like my code "runs" even after I close the hTable but I'm not
> sure that it's not just working due to prefetched due / scannerCaching
> or something.
>
> --
> Ted.



-- 
Harsh J

Re: are ResultScanners vaid after hTable.close()

Posted by Harsh J <ha...@cloudera.com>.
This is the Hadoop users list. Please ask HBase questions on their
own, vibrant user community at user@hbase.apache.org for best
responses. I've moved your post there. Please respond back over this
moved address instead of the hadoop lists.

On Fri, May 31, 2013 at 6:00 PM, Ted <r6...@gmail.com> wrote:
> I tried scouring the API docs as well as googling this and I can't
> find a definitive answer.
>
> If I get an HTable instance and I close it, do I have to make sure I'm
> finished using the ResultScanner and the Results before I close the
> hTable? (i.e. like JDBC connection/resultSets?)
>
> It looks like my code "runs" even after I close the hTable but I'm not
> sure that it's not just working due to prefetched due / scannerCaching
> or something.
>
> --
> Ted.



-- 
Harsh J

Re: are ResultScanners vaid after hTable.close()

Posted by Harsh J <ha...@cloudera.com>.
This is the Hadoop users list. Please ask HBase questions on their
own, vibrant user community at user@hbase.apache.org for best
responses. I've moved your post there. Please respond back over this
moved address instead of the hadoop lists.

On Fri, May 31, 2013 at 6:00 PM, Ted <r6...@gmail.com> wrote:
> I tried scouring the API docs as well as googling this and I can't
> find a definitive answer.
>
> If I get an HTable instance and I close it, do I have to make sure I'm
> finished using the ResultScanner and the Results before I close the
> hTable? (i.e. like JDBC connection/resultSets?)
>
> It looks like my code "runs" even after I close the hTable but I'm not
> sure that it's not just working due to prefetched due / scannerCaching
> or something.
>
> --
> Ted.



-- 
Harsh J