Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-14417

Gradle build sometimes fails RE BlockPoolSlice

    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: main (9.0)
    • Component/s: Build
    • Labels:
      None

      Description

      There seems to be some package visibility hacks around our Hdfs integration:

      /Users/dsmiley/SearchDev/lucene-solr/solr/core/src/test/org/apache/solr/cloud/hdfs/HdfsTestUtil.java:125: error: BlockPoolSlice is not public in org.apache.hadoop.hdfs.server.datanode.fsdataset.impl; cannot be accessed from outside package
      List<Class<?>> modifiedHadoopClasses = Arrays.asList(BlockPoolSlice.class, DiskChecker.class,

      This happens on my Gradle build when running gradlew testClasses (i.e. to compile tests) but Ant proceeded without issue. The work-around is to run gradlew clean first but really I want our build to be smarter here.

      CC Kevin Risden

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dweiss Dawid Weiss
                Reporter:
                dsmiley David Smiley
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m