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

ASF GitHub Bot commented on DRILL-8299:
---------------------------------------

jnturton opened a new pull request, #2697:
URL: https://github.com/apache/drill/pull/2697

   # [DRILL-8299](https://issues.apache.org/jira/browse/DRILL-8299): HashMap 
key type mismatch in MetadataContext
   
   ## Description
   
   The Map dirModifCheckMap is keyed using a HDFS Path instance, not a string. 
This updates accessing code accordingly.
   
   ## Documentation
   N/A
   
   ## Testing
   Existing unit tests.
   




> HashMap key type mismatch in MetadataContext
> --------------------------------------------
>
>                 Key: DRILL-8299
>                 URL: https://issues.apache.org/jira/browse/DRILL-8299
>             Project: Apache Drill
>          Issue Type: Bug
>            Reporter: PJ Fanning
>            Priority: Major
>
> The dirModifCheckMap used in this lookup is keyed using a HDFS Path instance, 
> not a string, so this code is not going to work:
> {code:java}
>   public boolean getStatus(String dir) {
>     if (dirModifCheckMap.containsKey(dir)) {
>       return dirModifCheckMap.get(dir);
>     }
>     return false;
>   }
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to