dombizita commented on PR #8783: URL: https://github.com/apache/ozone/pull/8783#issuecomment-3107262126
> Also right now we are overriding the org.apache.hadoop.ozone.container.common.impl.ContainerData.getState() to return as we wish with the help of byteman fault. And the debug verify cli helps to return the state, as it is also calling the same API. > > I would say this is not the best implementation. It would be better if we could somehow make the state persistent in the datatnode and not just override the API response. I think it would be a lot of pre-test setup work to actually make these unhealthy containers on the datanodes, which would not even necessarily test this tool's functionality, more the container health handling on the datanodes. I get that overriding the same method which is used by this tool could be not ideal, but in this case overriding this makes sense to me, as this method is used at other places in the code for testing container health related things. What do you think, could be any more place which could be used that wouldn't mean to make scenarios on the DN side to achieve the unhealthy containers? -- 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]
