apache/hadoop · error
testLibHdfs: some threads failed: [
Error message
testLibHdfs: some threads failed: [
What it means
Error "testLibHdfs: some threads failed: [" thrown in apache/hadoop.
Source
Thrown at hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfs-tests/test_libhdfs_threaded.c:387
int ret = testHdfsOperationsImpl(ti);
ti->success = ret;
}
static int checkFailures(struct tlhThreadInfo *ti, int tlhNumThreads)
{
int i, threadsFailed = 0;
const char *sep = "";
for (i = 0; i < tlhNumThreads; i++) {
if (ti[i].success != 0) {
threadsFailed = 1;
}
}
if (!threadsFailed) {
fprintf(stderr, "testLibHdfs: all threads succeeded. SUCCESS.\n");
return EXIT_SUCCESS;
}
fprintf(stderr, "testLibHdfs: some threads failed: [");
for (i = 0; i < tlhNumThreads; i++) {
if (ti[i].success != 0) {
fprintf(stderr, "%s%d", sep, i);
sep = ", ";
}
}
fprintf(stderr, "]. FAILURE.\n");
return EXIT_FAILURE;
}
int testRecursiveJvmMutex() {
jthrowable jthr;
JNIEnv *env = getJNIEnv();
if (!env) {
fprintf(stderr, "testRecursiveJvmMutex: getJNIEnv failed\n");
return -EIO;
}
jthr = newRuntimeError(env, "Dummy error to print for testing");View on GitHub (pinned to 2add963021)
Solutions
- Inspect the per-thread error lines printed before this summary; each failing thread logs its own hdfsRead/hdfsPread errno.
- Run the test with a single thread (-t 1) to isolate whether the failure is thread-related or a plain HDFS error.
- Confirm the test file size and read length arguments match what was written by the setup phase.
When it happens
Trigger: Printed when one or more worker threads in testLibHdfs reported a failure after joining.
Common situations: Happens when any of hdfsRead, hdfsPread, hdfsSeek, or hdfsClose failed inside a worker thread during the threaded read test.
AI-assisted analysis of apache/hadoop@2add963021 (2026-08-22).
Data as JSON: /api/errors/ace4b5d72c696513.
Report an issue: GitHub.