XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 1.4.0
    • None
    • Snapshot
    • None

    Description

      rocksdb-checkpoint-differ overrides import restrictions on rocksdb classes from root POM.

                      <RestrictImports>
                        <includeTestCode>false</includeTestCode>
                        <reason>Use managed RocksObjects under org.apache.hadoop.hdds.utils.db.managed instead.</reason>
                        <!-- By default, ban all the classes in org.rocksdb -->
                        <bannedImport>org.rocksdb.**</bannedImport>
                        <allowedImports>
                          <allowedImport>org.rocksdb.AbstractEventListener</allowedImport>
                          <allowedImport>org.rocksdb.Checkpoint</allowedImport>
                          <allowedImport>org.rocksdb.ColumnFamilyDescriptor</allowedImport>
                          <allowedImport>org.rocksdb.ColumnFamilyHandle</allowedImport>
                          <allowedImport>org.rocksdb.ColumnFamilyOptions</allowedImport>
                          <allowedImport>org.rocksdb.CompactionJobInfo</allowedImport>
                          <allowedImport>org.rocksdb.CompressionType</allowedImport>
                          <allowedImport>org.rocksdb.DBOptions</allowedImport>
                          <allowedImport>org.rocksdb.FlushOptions</allowedImport>
                          <allowedImport>org.rocksdb.LiveFileMetaData</allowedImport>
                          <allowedImport>org.rocksdb.Options</allowedImport>
                          <allowedImport>org.rocksdb.RocksDB</allowedImport>
                          <allowedImport>org.rocksdb.RocksDBException</allowedImport>
                          <allowedImport>org.rocksdb.SstFileReader</allowedImport>
                          <allowedImport>org.rocksdb.TableProperties</allowedImport>
                          <allowedImport>org.rocksdb.ReadOptions</allowedImport>
                          <allowedImport>org.rocksdb.SstFileReaderIterator</allowedImport>
                        </allowedImports>
                        <exclusion>org.apache.hadoop.hdds.utils.db.managed.*</exclusion>
                      </RestrictImports>
      
      • Some of these are unnecessary, this module could use Managed... classes instead. Using non-managed versions prevents leak detection.
      • Some are OK to use and could be moved to root POM.
      • exclusion is useless since this module does not define classes in the org.apache.hadoop.hdds.utils.db.managed package.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              adoroszlai Attila Doroszlai
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: