test-libhdfs fails on Linux
Console output:
[exec] Opened /tmp/testfile.txt for writing successfully...
[exec] Wrote 14 bytes
[exec] Current position: 14
[exec] Flushed /tmp/testfile.txt successfully!
[exec] hdfsAvailable: 14
[exec] Current position: 1
[exec] Read following 13 bytes:
[exec] ello, World!
[exec] Read following 14 bytes:
[exec] Hello, World!
[exec] hdfsCopy(remote-local): Success!
[exec] hdfsCopy(remote-remote): Success!
[exec] hdfsMove(local-local): Success!
[exec] hdfsMove(remote-local): Success!
[exec] hdfsRename: Success!
[exec] hdfsCopy(remote-remote): Success!
[exec] hdfsCreateDirectory: Success!
[exec] hdfsSetReplication: Success!
[exec] hdfsGetWorkingDirectory: hdfs://localhost:23000/user/hadoopqa
[exec] hdfsSetWorkingDirectory: Success!
[exec] hdfsGetWorkingDirectory: /tmp
[exec] hdfsGetDefaultBlockSize: 67108864
[exec] hdfsGetCapacity: 1645537427456
[exec] hdfsGetUsed: 24576
[exec] hdfsGetPathInfo - SUCCESS!
[exec] Name: /tmp, Type: D, Replication: 0, BlockSize: 0, Size: 0, LastMod: Tue May 27 03:27:35 2008
[exec] Name: hdfs://localhost:23000/tmp/newdir, Type: D, Replication: 0, BlockSize: 0, Size: 0, LastMod: Tue May 27 03:27:35 2008
[exec] Name: hdfs://localhost:23000/tmp/testfile.txt, Type: F, Replication: 2, BlockSize: 67108864, Size: 14, LastMod: Tue May 27 03:27:35 2008
[exec] Name: hdfs://localhost:23000/tmp/testfile2.txt, Type: F, Replication: 1, BlockSize: 67108864, Size: 14, LastMod: Tue May 27 03:27:35 2008
[exec] Exception in thread "main" java.lang.NoSuchMethodError: getFileCacheHints
[exec] stopping datanode
[exec] stopping namenode
[exec] exiting with 1
[exec] make: *** [test] Error 1
{"report":{"fcp":3592.899999976158,"ttfb":367.5,"pageVisibility":"visible","entityId":12396920,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":16,"apdex":0.5,"journeyId":"1fa4cd8e-13cc-4ae5-8707-4537cec07b53","navigationType":0,"readyForUser":3766.1999999284744,"redirectCount":0,"resourceLoadedEnd":2262.600000023842,"resourceLoadedStart":374.60000002384186,"resourceTiming":[{"duration":616.1999999284744,"initiatorType":"link","name":"https://issues.apache.org/jira/s/b62489a2eaac59d9b8a093c1a51d034f-CDN/xd97tr/820010/13pdxe5/49fa3aa3d35a2cc689cbf274e66cc41a/_/download/contextbatch/css/_super/batch.css","startTime":374.60000002384186,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":374.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":990.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":617.6000000238419,"initiatorType":"link","name":"https://issues.apache.org/jira/s/56490edcf9d54e35149505f78cca6a47-CDN/xd97tr/820010/13pdxe5/72cb823bcc50211a60c1ebe830467cae/_/download/contextbatch/css/jira.browse.project,jira.view.issue,project.issue.navigator,atl.general,atl.global,jira.global,jira.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&richediton=true&slack-enabled=true","startTime":374.89999997615814,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":374.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":992.5,"responseStart":0,"secureConnectionStart":0},{"duration":675.7999999523163,"initiatorType":"script","name":"https://issues.apache.org/jira/s/5263129088916436ab9aeb2417075b3f-CDN/xd97tr/820010/13pdxe5/49fa3aa3d35a2cc689cbf274e66cc41a/_/download/contextbatch/js/_super/batch.js?locale=en-UK","startTime":375,"connectEnd":375,"connectStart":375,"domainLookupEnd":375,"domainLookupStart":375,"fetchStart":375,"redirectEnd":0,"redirectStart":0,"requestStart":375,"responseEnd":1050.7999999523163,"responseStart":1050.7999999523163,"secureConnectionStart":375},{"duration":1483.8999999761581,"initiatorType":"script","name":"https://issues.apache.org/jira/s/611c208bd094adb71a6f4f3e7f6fff3d-CDN/xd97tr/820010/13pdxe5/72cb823bcc50211a60c1ebe830467cae/_/download/contextbatch/js/jira.browse.project,jira.view.issue,project.issue.navigator,atl.general,atl.global,jira.global,jira.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en-UK&richediton=true&slack-enabled=true","startTime":375.2999999523163,"connectEnd":375.2999999523163,"connectStart":375.2999999523163,"domainLookupEnd":375.2999999523163,"domainLookupStart":375.2999999523163,"fetchStart":375.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":375.2999999523163,"responseEnd":1859.1999999284744,"responseStart":1859.1999999284744,"secureConnectionStart":375.2999999523163},{"duration":730.3999999761581,"initiatorType":"script","name":"https://issues.apache.org/jira/s/d41d8cd98f00b204e9800998ecf8427e-CDN/xd97tr/820010/13pdxe5/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":375.39999997615814,"connectEnd":375.39999997615814,"connectStart":375.39999997615814,"domainLookupEnd":375.39999997615814,"domainLookupStart":375.39999997615814,"fetchStart":375.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":375.39999997615814,"responseEnd":1105.7999999523163,"responseStart":1105.7999999523163,"secureConnectionStart":375.39999997615814},{"duration":736.6999999284744,"initiatorType":"script","name":"https://issues.apache.org/jira/s/d41d8cd98f00b204e9800998ecf8427e-CDN/xd97tr/820010/13pdxe5/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":375.60000002384186,"connectEnd":375.60000002384186,"connectStart":375.60000002384186,"domainLookupEnd":375.60000002384186,"domainLookupStart":375.60000002384186,"fetchStart":375.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":375.60000002384186,"responseEnd":1112.2999999523163,"responseStart":1112.1999999284744,"secureConnectionStart":375.60000002384186},{"duration":778.6000000238419,"initiatorType":"link","name":"https://issues.apache.org/jira/s/981f587853769311cda7c3b845131a06-CDN/xd97tr/820010/13pdxe5/cb5a5495a038c0744457f25821ba9ee8/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":375.6999999284744,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":375.6999999284744,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1154.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":749.5,"initiatorType":"script","name":"https://issues.apache.org/jira/rest/api/1.0/shortcuts/820010/5840efff50357da9055d4714dc0713f/shortcuts.js?context=issuenavigation&context=issueaction","startTime":375.89999997615814,"connectEnd":375.89999997615814,"connectStart":375.89999997615814,"domainLookupEnd":375.89999997615814,"domainLookupStart":375.89999997615814,"fetchStart":375.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":375.89999997615814,"responseEnd":1125.3999999761581,"responseStart":1125.2999999523163,"secureConnectionStart":375.89999997615814},{"duration":765.3000000715256,"initiatorType":"link","name":"https://issues.apache.org/jira/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/xd97tr/820010/13pdxe5/efa42a25652b26dfd802540c024826b3/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-jira.view.issue,-project.issue.navigator/batch.css?jira.create.linked.issue=true&richediton=true","startTime":389.1999999284744,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":389.1999999284744,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1154.5,"responseStart":0,"secureConnectionStart":0},{"duration":741.3999999761581,"initiatorType":"script","name":"https://issues.apache.org/jira/s/efa8931cd5ac13ed95c56ca8a1dc1967-CDN/xd97tr/820010/13pdxe5/efa42a25652b26dfd802540c024826b3/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-jira.view.issue,-project.issue.navigator/batch.js?jira.create.linked.issue=true&locale=en-UK&richediton=true","startTime":389.7999999523163,"connectEnd":389.7999999523163,"connectStart":389.7999999523163,"domainLookupEnd":389.7999999523163,"domainLookupStart":389.7999999523163,"fetchStart":389.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":389.7999999523163,"responseEnd":1131.1999999284744,"responseStart":1131.1999999284744,"secureConnectionStart":389.7999999523163},{"duration":1396.1000000238419,"initiatorType":"script","name":"https://issues.apache.org/jira/s/d41d8cd98f00b204e9800998ecf8427e-CDN/xd97tr/820010/13pdxe5/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":514.7999999523163,"connectEnd":514.7999999523163,"connectStart":514.7999999523163,"domainLookupEnd":514.7999999523163,"domainLookupStart":514.7999999523163,"fetchStart":514.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":514.7999999523163,"responseEnd":1910.8999999761581,"responseStart":1910.8999999761581,"secureConnectionStart":514.7999999523163},{"duration":1747.7000000476837,"initiatorType":"script","name":"https://issues.apache.org/jira/s/d41d8cd98f00b204e9800998ecf8427e-CDN/xd97tr/820010/13pdxe5/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":514.8999999761581,"connectEnd":514.8999999761581,"connectStart":514.8999999761581,"domainLookupEnd":514.8999999761581,"domainLookupStart":514.8999999761581,"fetchStart":514.8999999761581,"redirectEnd":0,"redirectStart":0,"requestStart":514.8999999761581,"responseEnd":2262.600000023842,"responseStart":2262.5,"secureConnectionStart":514.8999999761581},{"duration":464.3000000715256,"initiatorType":"xmlhttprequest","name":"https://issues.apache.org/jira/rest/webResources/1.0/resources","startTime":1447.2999999523163,"connectEnd":1447.2999999523163,"connectStart":1447.2999999523163,"domainLookupEnd":1447.2999999523163,"domainLookupStart":1447.2999999523163,"fetchStart":1447.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":1447.2999999523163,"responseEnd":1911.6000000238419,"responseStart":1911.6000000238419,"secureConnectionStart":1447.2999999523163}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":209,"responseStart":367,"responseEnd":513,"domLoading":373,"domInteractive":3835,"domContentLoadedEventStart":3835,"domContentLoadedEventEnd":3889,"domComplete":4733,"loadEventStart":4733,"loadEventEnd":4740,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":3817.2999999523163},{"name":"bigPipe.sidebar-id.end","time":3818.1999999284744},{"name":"bigPipe.activity-panel-pipe-id.start","time":3818.1999999284744},{"name":"bigPipe.activity-panel-pipe-id.end","time":3819.7999999523163},{"name":"activityTabFullyLoaded","time":3907.399999976158}],"measures":[],"correlationId":"f5b1eb3cc6526","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":104,"dbReadsTimeInMs":3,"dbConnsTimeInMs":11,"applicationHash":"ace47f9899e9ee25d7157d59aa17ab06aee30d3d","experiments":[]}}
Looks like only LINUX test-libhdfs caught this. Attached patch replaces the use of removed getFileCacheHints to getFileBLockLocations.