{"record":{"id":"b9160f9114ac5aa8","repo":"apache/hadoop","slug":"vecsum-length-must-be-a-multiple-of-lld-the-c","errorCode":null,"errorMessage":"VECSUM_LENGTH must be a multiple of '%lld'.  The currently specified length of '%lld' is not.\n","messagePattern":"VECSUM_LENGTH must be a multiple of '%lld'\\.  The currently specified length of '%lld' is not\\.\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":191,"sourceCode":"    }\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 \"\n            \"environment variable.  You must set this to a \"\n            \"number greater than 0.\\n\");\n        goto error;\n    }\n    ty_str = getenv(\"VECSUM_TYPE\");","sourceCodeStart":173,"sourceCodeEnd":209,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfs-tests/vecsum.c#L173-L209","documentation":"Error \"VECSUM_LENGTH must be a multiple of '%lld'.  The currently specified length of '%lld' is not.\n\" thrown in apache/hadoop.","triggerScenarios":"vecsum validates that VECSUM_LENGTH is a multiple of the required alignment and it is not.","commonSituations":"User supplied an odd byte length not divisible by the checksum unit size used by the benchmark.","solutions":["Choose a VECSUM_LENGTH that is an exact multiple of the printed alignment (typically sizeof(double) or the read chunk size).","Round the length up or down to the nearest multiple and re-export VECSUM_LENGTH."],"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"}