hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-7953) Some HFilePerformanceEvaluation tests might fail because of scanner.getValue when there is no more rows
Date Thu, 21 Mar 2013 16:23:15 GMT

    [ 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

Mime
View raw message