{"record":{"id":"2aa72f873db0ed78","repo":"apache/hadoop","slug":"can-t-parse-vecsum-length-of-s","errorCode":null,"errorMessage":"Can't parse VECSUM_LENGTH of '%s'.\n","messagePattern":"Can't parse VECSUM_LENGTH of '(.+?)'\\.\n","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfs-tests/vecsum.c","lineNumber":186,"sourceCode":"\n    opts = calloc(1, sizeof(struct options));\n    if (!opts) {\n        fprintf(stderr, \"failed to calloc options\\n\");\n        goto error;\n    }\n    opts->path = getenv(\"VECSUM_PATH\");\n    if (!opts->path) {\n        fprintf(stderr, \"You must set the VECSUM_PATH environment \"\n            \"variable to the path of the file to read.\\n\");\n        goto error;\n    }\n    length_str = getenv(\"VECSUM_LENGTH\");\n    if (!length_str) {\n        length_str = \"2147483648\";\n    }\n    opts->length = atoll(length_str);\n    if (!opts->length) {\n        fprintf(stderr, \"Can't parse VECSUM_LENGTH of '%s'.\\n\",\n                length_str);\n        goto error;\n    }\n    if (opts->length % VECSUM_CHUNK_SIZE) {\n        fprintf(stderr, \"VECSUM_LENGTH must be a multiple of '%lld'.  The \"\n                \"currently specified length of '%lld' is not.\\n\",\n                (long long)VECSUM_CHUNK_SIZE, (long long)opts->length);\n        goto error;\n    }\n    pass_str = getenv(\"VECSUM_PASSES\");\n    if (!pass_str) {\n        fprintf(stderr, \"You must set the VECSUM_PASSES environment \"\n            \"variable to the number of passes to make.\\n\");\n        goto error;\n    }\n    opts->passes = atoi(pass_str);\n    if (opts->passes <= 0) {\n        fprintf(stderr, \"Invalid value for the VECSUM_PASSES \"","sourceCodeStart":168,"sourceCodeEnd":204,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfs-tests/vecsum.c#L168-L204","documentation":"Error \"Can't parse VECSUM_LENGTH of '%s'.\n\" thrown in apache/hadoop.","triggerScenarios":"strtoll failed to parse the VECSUM_LENGTH environment variable.","commonSituations":"VECSUM_LENGTH contains non-numeric text such as '10MB' or is empty.","solutions":["Set VECSUM_LENGTH to a plain integer (bytes), e.g. export VECSUM_LENGTH=1048576.","Remove units or non-numeric characters; only base-10 digits are accepted."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2add9630210752f88ceb1bb74eb65e37bf41da8e","analyzedAt":"2026-08-22T19:55:07.957Z","schemaVersion":2},"datasetVersion":"2026-08-22T20:17:22.307Z"}