Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-15439

[Ignite 3] Fix Errorprone errors in Raft module.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • None
    • 3.0.0-alpha3
    • None
    • Docs Required, Release Notes Required

    Description

      Static analyzer tool Errorprone reports errors for few modules.
      These errors are muted and must be fixed.

      Let's fix error in Raft module.

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project ignite-raft: Compilation failure
      [ERROR] /home/amashenkov/work/apache-ignite-3/modules/raft/src/main/java/org/apache/ignite/raft/jraft/rpc/impl/AbstractClientService.java:[79,30] [CollectionIncompatibleType] Argument 'member.address()' should not be passed to this method; its type NetworkAddress is not compatible with its collection's type argument String
      [ERROR]     (see https://errorprone.info/bugpattern/CollectionIncompatibleType)
      

      See

       @Override public void onDisappeared(ClusterNode member) {
              readyAddresses.remove(member.address());
          }
      

      Attachments

        Issue Links

          Activity

            People

              amashenkov Andrey Mashenkov
              amashenkov Andrey Mashenkov
              Alexey Scherbakov Alexey Scherbakov
              Votes:
              0 Vote for this issue
              Watchers:
              2 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 - 10m
                  10m