[ 
https://issues.apache.org/jira/browse/HADOOP-4173?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vinod K V updated HADOOP-4173:
------------------------------

    Attachment: HADOOP-4173-20080923.txt

For tasks' memory management feature, we read proc file system for finding the 
running processes and reading their stat files. Linux programs access procfs 
via VFS, but windows programs can access cygwin's procfs only if they work 
directly under cygwin(i.e. talk to cygwin dll). The current problem arises 
because of the inability of a windows java application(which, once started, 
runs outside cygwin environment) to read proc file-system.  My earlier sanity 
checks for determining procfs availibilty on Windows/cygwin were just limited 
to the command line and not included external programs, so couldn't catch this 
problem earlier.

So, for now, I am attaching a patch to disable the feature completely on 
Windows/Cygwin, and let it run only on Linux. Later, we can try including this 
feature by changing - how we get list of processes(run a cygwin "ls" on /proc) 
and how we get each process' information (run a cygwin "cat" on each process, 
costly?).

> TestProcfsBasedProcessTree failing on Windows machine
> -----------------------------------------------------
>
>                 Key: HADOOP-4173
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4173
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: test, util
>         Environment: Windows
>            Reporter: Ramya R
>            Assignee: Vinod K V
>             Fix For: 0.19.0
>
>         Attachments: HADOOP-4173-20080923.txt
>
>
> TestProcfsBasedProcessTree unit test is failing on Windows. Here is the 
> output:
>     [junit] Running org.apache.hadoop.util.TestProcfsBasedProcessTree
>     [junit] 2008-09-14 21:39:24,354 INFO  util.TestProcfsBasedProcessTree 
> (TestProcfsBasedProcessTree.java:testProcessTree(121)) - Root process pid: 
> 5512
>     [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.609 sec
>     [junit] Test org.apache.hadoop.util.TestProcfsBasedProcessTree FAILED

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to