Before merging the HDFS-4949 feature branch to trunk, we need to resolve any regressions introduced in Windows compatibility.
Support Centralized Cache Management on Windows.
There is at least one known problem: the new calls to mlock and munlock cause the native build on Windows to fail during link due to unresolved external symbols. We'll need to stub that call to throw on Windows.
This patch is sufficient to resolve regressions on Windows before we merge HDFS-4949 to trunk. Summary:
Andrew Wang and Colin Patrick McCabe, would you please review? Thanks!
Thanks Chris, +1. I'll commit this shortly.
Thanks Chris, committed to branch.