sarvekshayr opened a new pull request, #8391: URL: https://github.com/apache/ozone/pull/8391
## What changes were proposed in this pull request? `ReconfigurableBase` updates properties one by one. But some group of related properties may be reconfigurable only atomically. Example: replication is configured with "type" and "replication" (which is the type-specific description of the replication config). Updating type or replication separately results in invalid configuration (RATIS/THREE -> EC/THREE -> EC/rs-3-2-1024k should be updated in one step). To handle this situation, reconfiguration framework now allows registering callbacks for "reconfiguration completed" event. Reconfigured properties are accessible via `ReconfigurableBase#getReconfigurationTaskStatus`. ## What is the link to the Apache JIRA [HDDS-12554](https://issues.apache.org/jira/browse/HDDS-12554) ## How was this patch tested? Tested on a docker cluster. ``` bash-5.1$ ozone admin reconfig --service=OM --address=datanode:19864 status DN: Reconfiguring status for node [datanode:19864]: started at Wed Apr 30 09:16:13 UTC 2025 and finished at Wed Apr 30 09:16:13 UTC 2025. SUCCESS: Changed property ozone.block.deleting.service.workers From: "10" To: "15" SUCCESS: Changed property hdds.datanode.block.delete.threads.max From: "5" To: "15" All reconfigurable properties were updated successfully. ``` Logs ``` 2025-05-05 15:36:00 2025-05-05 10:06:00,761 [Reconfiguration Task] INFO conf.ReconfigurableBase: Starting reconfiguration task. 2025-05-05 15:36:00 2025-05-05 10:06:00,773 [Reconfiguration Task] INFO conf.ReconfigurableBase: Property rpc.engine.org.apache.hadoop.ipc.ProtocolMetaInfoPB is not configurable: old value: org.apache.hadoop.ipc.ProtobufRpcEngine2, new value: null 2025-05-05 15:36:00 2025-05-05 10:06:00,773 [Reconfiguration Task] INFO conf.ReconfigurableBase: Property rpc.engine.org.apache.hadoop.ozone.protocolPB.StorageContainerDatanodeProtocolPB is not configurable: old value: org.apache.hadoop.ipc.ProtobufRpcEngine, new value: null 2025-05-05 15:36:00 2025-05-05 10:06:00,773 [Reconfiguration Task] INFO conf.ReconfigurableBase: Property bind.address is not configurable: old value: 0.0.0.0, new value: null 2025-05-05 15:36:00 2025-05-05 10:06:00,773 [Reconfiguration Task] INFO conf.ReconfigurableBase: Change property: ozone.block.deleting.service.workers from "10" to "15". 2025-05-05 15:36:00 2025-05-05 10:06:00,774 [Reconfiguration Task] INFO conf.ReconfigurableBase: Change property: hdds.datanode.block.delete.threads.max from "5" to "15". 2025-05-05 15:36:00 2025-05-05 10:06:00,774 [Reconfiguration Task] INFO conf.ReconfigurableBase: Property rpc.engine.org.apache.hadoop.hdds.protocolPB.ReconfigureProtocolDatanodePB is not configurable: old value: org.apache.hadoop.ipc.ProtobufRpcEngine, new value: null 2025-05-05 15:36:00 2025-05-05 10:06:00,774 [Reconfiguration Task] INFO conf.ReconfigurableBase: Property rpc.engine.org.apache.hadoop.ozone.protocolPB.ReconDatanodeProtocolPB is not configurable: old value: org.apache.hadoop.ipc.ProtobufRpcEngine, new value: null 2025-05-05 15:36:00 2025-05-05 10:06:00,774 [Reconfiguration Task] INFO conf.ReconfigurableBase: Property hdds.datanode.client.address is not configurable: old value: 0.0.0.0:19864, new value: null 2025-05-05 15:36:00 2025-05-05 10:06:00,774 [Reconfiguration Task] INFO conf.ReconfigurableBase: Reconfiguration completed. 2 properties were updated. 2025-05-05 15:36:00 2025-05-05 10:06:00,774 [Reconfiguration Task] INFO ozone.HddsDatanodeService: Reconfiguration completed. Properties are updated. ``` -- 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]
