{"record":{"id":"8b1a35abb38d2c67","repo":"apache/pulsar","slug":"description-should-be-at-most-64-characters","errorCode":null,"errorMessage":"description should be at most 64 characters","messagePattern":"description should be at most 64 characters","errorType":"validation","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"pulsar-client/src/main/java/org/apache/pulsar/client/impl/ClientBuilderImpl.java","lineNumber":513,"sourceCode":"        return this;\n    }\n\n    @Override\n    public ClientBuilder tlsFactoryConfig(String tlsFactoryConfig) {\n        conf.setTlsFactoryConfig(StringUtils.isBlank(tlsFactoryConfig) ? \"\" : tlsFactoryConfig);\n        return this;\n    }\n\n    @Override\n    public ClientBuilder autoCertRefreshSeconds(int autoCertRefreshSeconds) {\n        conf.setAutoCertRefreshSeconds(autoCertRefreshSeconds);\n        return this;\n    }\n\n    @Override\n    public ClientBuilder description(String description) {\n        if (description != null && description.length() > 64) {\n            throw new IllegalArgumentException(\"description should be at most 64 characters\");\n        }\n        conf.setDescription(description);\n        return this;\n    }\n\n    @Override\n    public ClientBuilder sharedResources(PulsarClientSharedResources sharedResources) {\n        this.sharedResources = (PulsarClientSharedResourcesImpl) sharedResources;\n        return this;\n    }\n\n    @Override\n    public ClientBuilder lookupProperties(Map<String, String> properties) {\n        conf.setLookupProperties(properties);\n        return this;\n    }\n}\n","sourceCodeStart":495,"sourceCodeEnd":531,"githubUrl":"https://github.com/apache/pulsar/blob/820761864ed8e2a7d2e52dd9763ad2ae117c1395/pulsar-client/src/main/java/org/apache/pulsar/client/impl/ClientBuilderImpl.java#L495-L531","documentation":"Builder validation in ClientBuilderImpl.description: the free-form client description string exceeds the 64-character limit imposed because it is carried in the protocol (client_VERSION connection metadata), so longer values would break the wire format; the description argument is the faulty input.","triggerScenarios":"Thrown at pulsar-client/src/main/java/org/apache/pulsar/client/impl/ClientBuilderImpl.java:513 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Shorten the description to at most 64 characters"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"820761864ed8e2a7d2e52dd9763ad2ae117c1395","analyzedAt":"2026-09-06T00:14:20.138Z","contentChangedAt":"2026-09-06T00:14:20.138Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}