[
https://issues.apache.org/jira/browse/HDFS-17857?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18040821#comment-18040821
]
ASF GitHub Bot commented on HDFS-17857:
---------------------------------------
dlmarion opened a new pull request, #8104:
URL: https://github.com/apache/hadoop/pull/8104
<!--
Thanks for sending a pull request!
1. If this is your first time, please read our contributor guidelines:
https://cwiki.apache.org/confluence/display/HADOOP/How+To+Contribute
2. Make sure your PR title starts with JIRA issue id, e.g.,
'HADOOP-17799. Your PR title ...'.
-->
### Description of PR
This change adds an implementation to FaultInjectorFileIoEvents that
responds to related properties. If enabled, then FaultInjectorFileIoEvents will
throw an UncheckedIOException for the configured I/O operations at the
configured percentage of calls for that operation type.
### How was this patch tested?
Patch includes a unit test. I'm also planning on backporting to the 3.4
branch so that I can test locally with an application.
### For code changes:
- [x ] Does the title or this PR starts with the corresponding JIRA issue id
(e.g. 'HADOOP-17799. Your PR title ...')?
- [ ] Object storage: have the integration tests been executed and the
endpoint declared according to the connector-specific documentation?
- [ ] If adding new dependencies to the code, are these dependencies
licensed in a way that is compatible for inclusion under [ASF
2.0](http://www.apache.org/legal/resolved.html#category-a)?
- [ ] If applicable, have you updated the `LICENSE`, `LICENSE-binary`,
`NOTICE-binary` files?
> Create implementation for FaultInjectorFileIoEvents
> ---------------------------------------------------
>
> Key: HDFS-17857
> URL: https://issues.apache.org/jira/browse/HDFS-17857
> Project: Hadoop HDFS
> Issue Type: Improvement
> Components: hdfs
> Reporter: Dave Marion
> Assignee: Dave Marion
> Priority: Minor
> Fix For: 3.5.0
>
>
> The existing FaultInjectorFileIoEvents methods have no implementation and the
> current implementation does not load a user supplied class that implements
> some interface. I think the only way that this could be used is for someone
> to create their own class with the same name and either insert it into the
> jar, or place a new jar at the beginning of the classpath.
> I think the existing FaultInjectorFileIoEvents class can be modified to throw
> exceptions for file I/O events.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]