{"record":{"id":"a02073854f18af6f","repo":"fluent/fluentd","slug":"specified-worker-id-id-collisions-is-detected","errorCode":null,"errorMessage":"specified worker_id<#{id}> collisions is detected on <worker> directive. Available worker id(s): #{available_worker_ids}","messagePattern":"specified worker_id<#(.+?)> collisions is detected on <worker> directive\\. Available worker id\\(s\\): #(.+?)","errorType":"exception","errorClass":"Fluent::ConfigError","httpStatus":null,"severity":"error","filePath":"lib/fluent/static_config_analysis.rb","lineNumber":82,"sourceCode":"    def reset\n      @outputs = []\n      @inputs = []\n      @filters = []\n      @labels = {}\n    end\n\n    def static_worker_analyse(conf)\n      available_worker_ids = [*0...@workers]\n\n      ret = []\n      supported_directives = %w[source match filter label]\n      conf.elements(name: 'worker').each do |config|\n        ids = parse_worker_id(config)\n        ids.each do |id|\n          if available_worker_ids.include?(id)\n            available_worker_ids.delete(id)\n          else\n            raise Fluent::ConfigError, \"specified worker_id<#{id}> collisions is detected on <worker> directive. Available worker id(s): #{available_worker_ids}\"\n          end\n        end\n\n        config.elements.each do |elem|\n          unless supported_directives.include?(elem.name)\n            raise Fluent::ConfigError, \"<worker> section cannot have <#{elem.name}> directive\"\n          end\n        end\n\n        nodes = [\n          static_label_analyse(config),\n          static_filter_and_output_analyse(config),\n          static_input_analyse(config),\n        ].flatten\n        ret << Elem::Worker.new(ids, config, nodes)\n      end\n\n      ret","sourceCodeStart":64,"sourceCodeEnd":100,"githubUrl":"https://github.com/fluent/fluentd/blob/dd45c6e18dc7be33b5e5a0f0767bf46307ff5626/lib/fluent/static_config_analysis.rb#L64-L100","documentation":"Error \"specified worker_id<#{id}> collisions is detected on <worker> directive. Available worker id(s): #{available_worker_ids}\" thrown in fluent/fluentd.","triggerScenarios":"Thrown at lib/fluent/static_config_analysis.rb:82 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"dd45c6e18dc7be33b5e5a0f0767bf46307ff5626","analyzedAt":"2026-08-21T16:22:07.332Z","schemaVersion":2},"datasetVersion":"2026-08-21T18:17:14.833Z"}