{"record":{"id":"b762e9b8339f5ca2","repo":"apache/druid","slug":"no-file-descriptors-found-in-the-descriptor-set-b762e9","errorCode":null,"errorMessage":"No file descriptors found in the descriptor set","messagePattern":"No file descriptors found in the descriptor set","errorType":"exception","errorClass":"ParseException","httpStatus":null,"severity":"error","filePath":"extensions-core/protobuf-extensions/src/main/java/org/apache/druid/data/input/protobuf/InlineDescriptorProtobufBytesDecoder.java","lineNumber":65,"sourceCode":"\n    initializeDescriptor();\n  }\n\n  @JsonProperty\n  public String getDescriptorString()\n  {\n    return descriptorString;\n  }\n\n  @Override\n  protected DescriptorProtos.FileDescriptorSet loadFileDescriptorSet()\n  {\n    try {\n      byte[] decodedDesc = StringUtils.decodeBase64String(descriptorString);\n\n      final var descriptorSet = DescriptorProtos.FileDescriptorSet.parseFrom(decodedDesc);\n      if (descriptorSet.getFileCount() == 0) {\n        throw new ParseException(null, \"No file descriptors found in the descriptor set\");\n      }\n\n      return descriptorSet;\n    }\n    catch (IllegalArgumentException e) {\n      throw new IAE(\"Descriptor string does not have valid Base64 encoding\");\n    }\n    catch (IOException e) {\n      throw new ParseException(descriptorString, e, \"Failed to initialize descriptor\");\n    }\n  }\n\n  @Override\n  public boolean equals(Object o)\n  {\n    if (this == o) {\n      return true;\n    }","sourceCodeStart":47,"sourceCodeEnd":83,"githubUrl":"https://github.com/apache/druid/blob/9b90983fd291f26935af934383ce360473179e4d/extensions-core/protobuf-extensions/src/main/java/org/apache/druid/data/input/protobuf/InlineDescriptorProtobufBytesDecoder.java#L47-L83","documentation":"Content validation in InlineDescriptorProtobufBytesDecoder.loadFileDescriptorSet: the base64-decoded descriptor string parsed to a FileDescriptorSet with zero file descriptors, so the inline descriptor defines no message schema and decoding cannot proceed.","triggerScenarios":"Thrown at extensions-core/protobuf-extensions/src/main/java/org/apache/druid/data/input/protobuf/InlineDescriptorProtobufBytesDecoder.java:65 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Regenerate the base64 descriptor from a .proto with message definitions (protoc --descriptor_set_out, then base64 the output).","Verify the full base64 string was copied into the spec without truncation."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"9b90983fd291f26935af934383ce360473179e4d","analyzedAt":"2026-09-07T13:32:30.957Z","contentChangedAt":"2026-09-07T13:32:30.957Z","schemaVersion":2},"datasetVersion":"2026-09-17T15:17:12.973Z"}