Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public OMClientResponse validateAndUpdateCache(OzoneManager ozoneManager,
}

omClientResponse = new OMOpenKeysDeleteResponse(omResponse.build(),
deletedOpenKeys, ozoneManager.isRatisEnabled());
deletedOpenKeys, ozoneManager.isRatisEnabled(), getBucketLayout());

result = Result.SUCCESS;
} catch (IOException ex) {
Expand Down Expand Up @@ -151,8 +151,7 @@ private void updateOpenKeyTableCache(OzoneManager ozoneManager,
volumeName, bucketName);

for (OpenKey key: keysPerBucket.getKeysList()) {
String fullKeyName = omMetadataManager.getOpenKey(volumeName,
bucketName, key.getName(), key.getClientID());
String fullKeyName = key.getName();

// If an open key is no longer present in the table, it was committed
// and should not be deleted.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import org.apache.hadoop.ozone.om.helpers.BucketLayout;
import org.apache.hadoop.ozone.om.helpers.OmKeyInfo;
import org.apache.hadoop.ozone.om.response.CleanupTableInfo;
import org.apache.hadoop.ozone.protocol.proto.OzoneManagerProtocolProtos;
import org.apache.hadoop.ozone.protocol.proto.OzoneManagerProtocolProtos.OMResponse;

import javax.annotation.Nonnull;
import java.io.IOException;
Expand All @@ -43,10 +43,12 @@ public class OMOpenKeysDeleteResponse extends AbstractOMKeyDeleteResponse {
private Map<String, OmKeyInfo> keysToDelete;

public OMOpenKeysDeleteResponse(
@Nonnull OzoneManagerProtocolProtos.OMResponse omResponse,
@Nonnull Map<String, OmKeyInfo> keysToDelete, boolean isRatisEnabled) {
@Nonnull OMResponse omResponse,
@Nonnull Map<String, OmKeyInfo> keysToDelete,
boolean isRatisEnabled,
@Nonnull BucketLayout bucketLayout) {

super(omResponse, isRatisEnabled);
super(omResponse, isRatisEnabled, bucketLayout);
this.keysToDelete = keysToDelete;
}

Expand All @@ -55,8 +57,8 @@ public OMOpenKeysDeleteResponse(
* For a successful request, the other constructor should be used.
*/
public OMOpenKeysDeleteResponse(
@Nonnull OzoneManagerProtocolProtos.OMResponse omResponse, @Nonnull
BucketLayout bucketLayout) {
@Nonnull OMResponse omResponse,
@Nonnull BucketLayout bucketLayout) {

super(omResponse, bucketLayout);
}
Expand Down
Loading