tasanuma commented on pull request #3679:
URL: https://github.com/apache/hadoop/pull/3679#issuecomment-986786953


   One possible solution is to add Preconditions.checkArgument that checks that 
the length of the indices is equal to the size of the block location, and to 
check that ExitStatus is SUCCESS in the unit test.
   ```java
        if (blkLocs instanceof StripedBlockWithLocations) {
          // adjust indices if locations has been updated
          ((DBlockStriped) block).adjustIndices(adjustList);
          Preconditions.checkArgument(((DBlockStriped) block).indices.length
                  == block.locations.size());
        }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to