You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by GitBox <gi...@apache.org> on 2020/12/08 19:50:20 UTC

[GitHub] [ozone] bharatviswa504 commented on pull request #1660: HDDS-4537. Remove refreshPipeline in listKeys.

bharatviswa504 commented on pull request #1660:
URL: https://github.com/apache/ozone/pull/1660#issuecomment-740930509


   > Tests are failing with:
   > 
   > ```
   > om_1        | java.lang.NullPointerException
   > om_1        | 	at org.apache.hadoop.ozone.om.helpers.OmKeyLocationInfo.getProtobuf(OmKeyLocationInfo.java:174)
   > om_1        | 	at org.apache.hadoop.ozone.om.helpers.OmKeyLocationInfo.getProtobuf(OmKeyLocationInfo.java:160)
   > om_1        | 	at org.apache.hadoop.ozone.om.helpers.OmKeyLocationInfoGroup.getProtobuf(OmKeyLocationInfoGroup.java:91)
   > om_1        | 	at org.apache.hadoop.ozone.om.helpers.OmKeyInfo.getProtobuf(OmKeyInfo.java:399)
   > om_1        | 	at org.apache.hadoop.ozone.om.helpers.OmKeyInfo.getProtobuf(OmKeyInfo.java:385)
   > om_1        | 	at org.apache.hadoop.ozone.protocolPB.OzoneManagerRequestHandler.listKeys(OzoneManagerRequestHandler.java:400)
   > om_1        | 	at org.apache.hadoop.ozone.protocolPB.OzoneManagerRequestHandler.handleReadRequest(OzoneManagerRequestHandler.java:156)
   > ```
   > 
   > I think the following additional change is needed:
   > 
   > ```
   > diff --git hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/protocolPB/OzoneManagerRequestHandler.java hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/protocolPB/OzoneManagerRequestHandler.java
   > index 35ab2753d..54484f6ec 100644
   > --- hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/protocolPB/OzoneManagerRequestHandler.java
   > +++ hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/protocolPB/OzoneManagerRequestHandler.java
   > @@ -397,7 +397,7 @@ private ListKeysResponse listKeys(ListKeysRequest request)
   >          request.getPrefix(),
   >          request.getCount());
   >      for (OmKeyInfo key : keys) {
   > -      resp.addKeyInfo(key.getProtobuf());
   > +      resp.addKeyInfo(key.getProtobuf(true));
   >      }
   > 
   >      return resp.build();
   > ```
   
   Thank You @adoroszlai for the hint, looks like this is the issue. (Even failed UT's when I run see the same issue)
   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org