Skip to content

Commit

Permalink
HBASE-28740 Need to call parent class's serialization methods in Clos…
Browse files Browse the repository at this point in the history
…eExcessRegionReplicasProcedure (#6090)

Signed-off-by: Andrew Purtell <apurtell@apache.org>
Signed-off-by: Pankaj Kumar <pankajkumar@apache.org>
  • Loading branch information
Apache9 authored Jul 18, 2024
1 parent b4cbd5c commit aeeb855
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ protected CloseExcessRegionReplicasProcedureState getInitialState() {

@Override
protected void serializeStateData(ProcedureStateSerializer serializer) throws IOException {
super.serializeStateData(serializer);
CloseExcessRegionReplicasProcedureStateData data = CloseExcessRegionReplicasProcedureStateData
.newBuilder().setTableName(ProtobufUtil.toProtoTableName(tableName))
.setNewReplicaCount(newReplicaCount).build();
Expand All @@ -150,6 +151,7 @@ protected void serializeStateData(ProcedureStateSerializer serializer) throws IO

@Override
protected void deserializeStateData(ProcedureStateSerializer serializer) throws IOException {
super.deserializeStateData(serializer);
CloseExcessRegionReplicasProcedureStateData data =
serializer.deserialize(CloseExcessRegionReplicasProcedureStateData.class);
tableName = ProtobufUtil.toTableName(data.getTableName());
Expand Down

0 comments on commit aeeb855

Please sign in to comment.