You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2013/03/21 17:23:15 UTC

[jira] [Commented] (HBASE-7953) Some HFilePerformanceEvaluation tests might fail because of scanner.getValue when there is no more rows

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

Ted Yu commented on HBASE-7953:
-------------------------------

Can you use the following instead of calling System.out.println() ?
{code}
  static final Log LOG =
    LogFactory.getLog(HFilePerformanceEvaluation.class.getName());
{code}
{code}
+      if (scanner.seekTo(b) < 0) {
+        System.out.println("Not able to seekTo");
{code}
Include contents of b above.
{code}
+      if (scanner.seekTo(getGaussianRandomRowBytes()) < 0) {
+        System.out.println("Not able to seekTo");
{code}
Store getGaussianRandomRowBytes() in a variable and include the contents of the variable in log, please.
                
> Some HFilePerformanceEvaluation tests might fail because of scanner.getValue when there is no more rows
> -------------------------------------------------------------------------------------------------------
>
>                 Key: HBASE-7953
>                 URL: https://issues.apache.org/jira/browse/HBASE-7953
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Jean-Marc Spaggiari
>            Assignee: Jean-Marc Spaggiari
>         Attachments: HBASE-7953-v0-trunk.patch, HBASE-7953-v1-trunk.patch, HBASE-7953-v2-trunk.patch
>
>
> There is 2 places in the code (Both trunk and 0.94) where we are trying to get the row value even when scanner.next() returned null. Need to fix that.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira