AI Slop Code Risk Monitor

apache/kafka

SlopCodeMonitor badge for apache/kafka Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

Apache Kafka - A distributed event streaming platform

1.8 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for apache/kafka, a Java project with 34,099 GitHub stars. SynthScan examined 1,815,444 lines of code across 7346 source files, recording 1699 pattern matches distributed across 21 syntactic categories. The legacy adjusted pattern signal is 1.8 (Low pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

1.8
Adjusted Signal
1.8
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
34.1K
Stars
Java
Language
1.8M
Lines of Code
7.3K
Files
1.7K
Pattern Hits
2026-10-31
Scan Date
0.02
HC Hit Rate

Risk Review · Payload v1

Use each vector to guide manual verification of the underlying findings.

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 4.3/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 1402 finding(s).

Hallucinated Dependency & Supply Chain Risk 4.0/100 · LOW

Are imports declared and package/API names verified? 206 finding(s).

Agent Over-Engineering Ratio 1.7/100 · LOW

Are wrappers, guards, and repeated structures necessary? 434 finding(s).

PR Review Velocity Impact 8.2/100 · LOW

Which changes need focused human review? 1699 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 113HIGH 65MEDIUM 37LOW 1484

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 1699 distinct pattern matches across 21 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hallucination Indicators113 hits · 1255 pts
SeverityFileLineSnippetContext
CRITICAL…apache/kafka/clients/admin/StaticBrokerConfigTest.java140 // broker (see org.apache.kafka.common.test.KafkaClusterTestKit.Builder.createNodeConfig()),COMMENT
CRITICAL…/kafka/clients/consumer/ShareConsumerCallbackTest.java328 throw new org.apache.kafka.common.errors.OutOfOrderSequenceException("Exception thrown in AcknowledgemenCODE
CRITICAL…rg/apache/kafka/clients/producer/MockProducerTest.java93 new org.apache.kafka.clients.producer.RoundRobinPartitioner(),CODE
CRITICAL…g/apache/kafka/clients/admin/KafkaAdminClientTest.java1739 new org.apache.kafka.common.feature.SupportedVersionRange(versionRange.minVersion(),CODE
CRITICAL…lients/consumer/internals/ShareCompletedFetchTest.java341 assertArrayEquals("key".getBytes(), org.apache.kafka.common.utils.Utils.toNullableArray(thrown.keyBufferCODE
CRITICAL…ts/consumer/internals/ApplicationEventHandlerTest.java98 org.apache.kafka.common.utils.Utils.sleep(delayMs);CODE
CRITICAL…a/common/record/internal/UnalignedFileRecordsTest.java55 org.apache.kafka.common.requests.ByteBufferChannel channel = new org.apache.kafka.common.requests.ByteBufferChanCODE
CRITICAL…authbearer/ClientAssertionKeycloakIntegrationTest.java134 org.junit.jupiter.api.Assumptions.assumeTrue(CODE
CRITICAL…authbearer/ClientAssertionKeycloakIntegrationTest.java964 new org.apache.kafka.common.config.types.Password(passphrase));CODE
CRITICAL…authbearer/ClientAssertionKeycloakIntegrationTest.java993 new org.apache.kafka.common.config.types.Password(passphrase));CODE
CRITICAL…authbearer/ClientAssertionKeycloakIntegrationTest.java1024 new org.apache.kafka.common.config.types.Password(wrongPassphrase));CODE
CRITICAL…a/org/apache/kafka/clients/admin/KafkaAdminClient.java4647 return new ScramFormatter(org.apache.kafka.common.security.scram.internals.ScramMechanism.forMechanismName(publiCODE
CRITICAL…/org/apache/kafka/clients/consumer/ConsumerConfig.java415 " use <code>org.apache.kafka.clients.consumer.ShareConsumer.acknowledge()</code> to acknowledge delivery of CODE
CRITICAL…/org/apache/kafka/clients/consumer/ConsumerConfig.java418 " <code>org.apache.kafka.clients.consumer.ShareConsumer.acknowledge()</code> to acknowledge delivery of recoCODE
CRITICAL…/src/main/java/org/apache/kafka/common/utils/Time.java84 throw new org.apache.kafka.common.errors.TimeoutException("Condition not satisfied before deadline")CODE
CRITICAL…c/test/java/org/apache/kafka/tools/ToolsTestUtils.java169 return org.apache.kafka.test.TestUtils.tempFile(sb.toString());CODE
CRITICAL⚡…rc/main/java/org/apache/kafka/tools/ConfigCommand.java384 .map(mechanismName -> new UserScramCredentialDeletion(user, org.apache.kafka.clients.admin.ScramMechanisCODE
CRITICAL⚡…rc/main/java/org/apache/kafka/tools/ConfigCommand.java392 org.apache.kafka.common.security.scram.internals.ScramMechanism.forMechanismName(mechanismNaCODE
CRITICAL⚡…rc/main/java/org/apache/kafka/tools/ConfigCommand.java396 new ScramCredentialInfo(org.apache.kafka.clients.admin.ScramMechanism.fromMechanismName(mechCODE
CRITICAL…/main/java/org/apache/kafka/tools/DumpLogSegments.java639 if (message.apiKey() == org.apache.kafka.coordinator.group.generated.CoordinatorRecordType.GROUP_METADATA.idCODE
CRITICAL…/unit/kafka/server/ReplicaAlterLogDirsThreadTest.scala459 assertEquals(new org.apache.kafka.server.common.TopicIdPartition(topicId, t1p0.partition()), topicIdPartitionCaptureCODE
CRITICAL…ala/unit/kafka/server/BrokerLifecycleManagerTest.scala99 assertEquals(10L, context.mockChannelManager.unsentQueue.getFirst.request.build().asInstanceOf[BrokerRegistrationRCODE
CRITICAL⚡…it/kafka/server/StreamsGroupHeartbeatRequestTest.scala797 val options = new org.apache.kafka.clients.admin.AlterConfigsOptions()CODE
CRITICAL⚡…it/kafka/server/StreamsGroupHeartbeatRequestTest.scala807 val options2 = new org.apache.kafka.clients.admin.AlterConfigsOptions()CODE
CRITICAL⚡…it/kafka/server/StreamsGroupHeartbeatRequestTest.scala817 val options3 = new org.apache.kafka.clients.admin.AlterConfigsOptions()CODE
CRITICAL…/test/scala/unit/kafka/server/ReplicaManagerTest.scala4489 new org.apache.kafka.server.common.TopicIdPartition(topicId, topicIdPartition0.partition()),CODE
CRITICAL…/test/scala/unit/kafka/server/ReplicaManagerTest.scala4490 new org.apache.kafka.server.common.TopicIdPartition(topicId, topicIdPartition1.partition())CODE
CRITICAL…/test/scala/unit/kafka/server/ReplicaManagerTest.scala4535 new org.apache.kafka.server.common.TopicIdPartition(topicId, topicIdPartition0.partition()),CODE
CRITICAL…/test/scala/unit/kafka/server/ReplicaManagerTest.scala4536 new org.apache.kafka.server.common.TopicIdPartition(topicId, topicIdPartition1.partition())CODE
CRITICAL…on/kafka/server/DynamicBrokerReconfigurationTest.scala889 val metricsFromOldTests = KafkaYammerMetrics.defaultRegistry.allMetrics.keySet.asScala.filter(isProcessorMetric)CODE
CRITICAL…on/kafka/server/DynamicBrokerReconfigurationTest.scala1013 assertEquals(2, broker.config.dynamicConfig.reconfigurables.asScala.count(r => r.isInstanceOf[DataPlaneAcceptor]))CODE
CRITICAL…on/kafka/server/DynamicBrokerReconfigurationTest.scala1016 def acceptors: Seq[DataPlaneAcceptor] = broker.config.dynamicConfig.reconfigurables.asScala.filter(_.isInstanceOf[DaCODE
CRITICAL…on/kafka/server/DynamicBrokerReconfigurationTest.scala1322 Thread.getAllStackTraces.keySet.asScala.toList.map(_.getName)CODE
CRITICAL…ntegration/kafka/server/GssapiAuthenticationTest.scala272 _ => org.apache.kafka.test.TestUtils.defaultApiVersionsResponse(ListenerType.BROKER)) {CODE
CRITICAL…src/test/scala/integration/kafka/api/MetricsTest.scala221 def errorMetricCount = KafkaYammerMetrics.defaultRegistry.allMetrics.keySet.asScala.count(_.getName == "ErrorsPerSecCODE
CRITICAL…egration/kafka/api/PlaintextAdminIntegrationTest.scala1284 val matching = client.listConsumerGroups.all.get.asScala.filter(group =>CODE
CRITICAL…egration/kafka/api/PlaintextAdminIntegrationTest.scala1370 val matching = client.listConsumerGroups.all.get.asScala.filter(group =>CODE
CRITICAL…egration/kafka/api/PlaintextAdminIntegrationTest.scala1556 val matching = client.listConsumerGroups.all.get.asScala.filter(group =>CODE
CRITICALcore/src/main/scala/kafka/cluster/Partition.scala1693 new org.apache.kafka.server.common.TopicIdPartition(topicId.getOrElse(throw new IllegalStateException("Topic id noCODE
CRITICALcore/src/main/scala/kafka/server/KafkaApis.scala2347 val renewerList = createTokenRequest.data.renewers.asScala.toList.map(entry =>CODE
CRITICAL…fka/coordinator/group/GroupCoordinatorServiceTest.java174 Arguments.arguments(new org.apache.kafka.common.errors.TimeoutException(), Errors.COORDINATOR_NOT_AVAILABLE.CODE
CRITICAL…fka/coordinator/group/GroupCoordinatorServiceTest.java529 Arguments.arguments(new org.apache.kafka.common.errors.TimeoutException(), Errors.COORDINATOR_NOT_AVAILABLE.CODE
CRITICAL…ache/kafka/coordinator/group/GroupMetadataManager.java4202 StreamsGroupMember updatedMember = new org.apache.kafka.coordinator.group.streams.CurrentAssignmentBuilder(membeCODE
CRITICAL…ache/kafka/coordinator/group/GroupMetadataManager.java4635 new org.apache.kafka.coordinator.group.streams.GroupSpecBuilder(assignmentConfigs)CODE
CRITICAL…ache/kafka/coordinator/group/GroupMetadataManager.java4641 new org.apache.kafka.coordinator.group.streams.TargetAssignmentBuilder(groupEpoch, assignor)CODE
CRITICAL…ache/kafka/coordinator/group/GroupMetadataManager.java6620 streamsGroup.updateTargetAssignment(memberId, org.apache.kafka.coordinator.group.streams.TasksTuple.fromTargCODE
CRITICAL…s/integration/InMemoryStoreMetricsIntegrationTest.java250 props.put(StreamsConfig.STATE_DIR_CONFIG, org.apache.kafka.test.TestUtils.tempDirectory().getAbsolutePath());CODE
CRITICAL…st/java/org/apache/kafka/streams/KafkaStreamsTest.java314 org.apache.kafka.clients.consumer.CloseOptions.groupMembershipOperation(org.apache.kafka.clients.consumeCODE
CRITICAL…st/java/org/apache/kafka/streams/KafkaStreamsTest.java317 org.apache.kafka.clients.consumer.CloseOptions.groupMembershipOperation(org.apache.kafka.clients.consumeCODE
CRITICAL…a/streams/processor/internals/StreamsProducerTest.java110 = new MockProducer<>(cluster, true, new org.apache.kafka.clients.producer.RoundRobinPartitioner(), new ByteArrayCODE
CRITICAL…a/streams/processor/internals/StreamsProducerTest.java112 = new MockProducer<>(cluster, true, new org.apache.kafka.clients.producer.RoundRobinPartitioner(), new ByteArrayCODE
CRITICAL…a/streams/processor/internals/RecordCollectorTest.java152 = new MockProducer<>(cluster, true, new org.apache.kafka.clients.producer.RoundRobinPartitioner(), new ByteArrayCODE
CRITICAL…a/streams/processor/internals/RecordCollectorTest.java1875 new org.apache.kafka.clients.producer.RoundRobinPartitioner(),CODE
CRITICAL…ssor/internals/assignment/TaskAssignmentUtilsTest.java354 final org.apache.kafka.streams.processor.assignment.TaskAssignor.TaskAssignment noError = new org.apache.kafka.sCODE
CRITICAL…ssor/internals/assignment/TaskAssignmentUtilsTest.java368 final org.apache.kafka.streams.processor.assignment.TaskAssignor.TaskAssignment missingProcessId = new org.apachCODE
CRITICAL…ssor/internals/assignment/TaskAssignmentUtilsTest.java381 final org.apache.kafka.streams.processor.assignment.TaskAssignor.TaskAssignment unknownProcessId = new org.apachCODE
CRITICAL…ssor/internals/assignment/TaskAssignmentUtilsTest.java396 final org.apache.kafka.streams.processor.assignment.TaskAssignor.TaskAssignment unknownTaskId = new org.apache.kCODE
CRITICAL…ssor/internals/assignment/TaskAssignmentUtilsTest.java414 final org.apache.kafka.streams.processor.assignment.TaskAssignor.TaskAssignment activeTaskDuplicated = new org.aCODE
CRITICAL⚡…streams/state/internals/InMemoryKeyValueStoreTest.java626 org.apache.kafka.streams.query.RangeQuery.withNoBounds(),CODE
CRITICAL⚡…streams/state/internals/InMemoryKeyValueStoreTest.java627 org.apache.kafka.streams.query.PositionBound.unbounded(),CODE
53 more matches not shown…
Over-Commented Block833 hits · 826 pts
SeverityFileLineSnippetContext
LOW.asf.yaml1# Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOW…ients-integration-tests/src/test/resources/log4j2.yaml1# Licensed to the Apache Software Foundation (ASF) under one or moreCOMMENT
LOWclients/src/test/resources/log4j2.yaml1# Licensed to the Apache Software Foundation (ASF) under one or moreCOMMENT
LOW…resources/common/message/SimpleKeyedArraysMessage.json1// Licensed to the Apache Software Foundation (ASF) under one or moreCOMMENT
LOW…est/resources/common/message/SimpleExampleMessage.json1// Licensed to the Apache Software Foundation (ASF) under one or moreCOMMENT
LOW…st/resources/common/message/NullableStructMessage.json1// Licensed to the Apache Software Foundation (ASF) under one or moreCOMMENT
LOW…test/resources/common/message/SimpleArraysMessage.json1// Licensed to the Apache Software Foundation (ASF) under one or moreCOMMENT
LOW…est/resources/common/message/SimpleRecordsMessage.json1// Licensed to the Apache Software Foundation (ASF) under one or moreCOMMENT
LOW…/src/test/resources/common/message/AllTypeMessage.json1// Licensed to the Apache Software Foundation (ASF) under one or moreCOMMENT
LOW…l/CommonNameLoggingTrustManagerFactoryWrapperTest.java81 // Self-signedCOMMENT
LOW…ts/src/main/resources/common/message/VoteResponse.json1// Licensed to the Apache Software Foundation (ASF) under one or moreCOMMENT
LOW…ces/common/message/DescribeDelegationTokenRequest.json1// Licensed to the Apache Software Foundation (ASF) under one or moreCOMMENT
LOW…es/common/message/DescribeTopicPartitionsResponse.json1// Licensed to the Apache Software Foundation (ASF) under one or moreCOMMENT
LOW…esources/common/message/BrokerRegistrationRequest.json1// Licensed to the Apache Software Foundation (ASF) under one or moreCOMMENT
LOW…ain/resources/common/message/DeleteRecordsRequest.json1// Licensed to the Apache Software Foundation (ASF) under one or moreCOMMENT
LOW…ources/common/message/AllocateProducerIdsResponse.json1// Licensed to the Apache Software Foundation (ASF) under one or moreCOMMENT
LOW…rces/common/message/CreateDelegationTokenResponse.json1// Licensed to the Apache Software Foundation (ASF) under one or moreCOMMENT
LOW…sources/common/message/ShareGroupDescribeResponse.json1// Licensed to the Apache Software Foundation (ASF) under one or moreCOMMENT
LOW…sources/common/message/ShareGroupDescribeResponse.json21 //COMMENT
LOW…src/main/resources/common/message/MetadataRequest.json1// Licensed to the Apache Software Foundation (ASF) under one or moreCOMMENT
LOW…src/main/resources/common/message/MetadataRequest.json21 "validVersions": "0-13",COMMENT
LOW…ces/common/message/ControllerRegistrationResponse.json1// Licensed to the Apache Software Foundation (ASF) under one or moreCOMMENT
LOW…urces/common/message/AssignReplicasToDirsResponse.json1// Licensed to the Apache Software Foundation (ASF) under one or moreCOMMENT
LOW…/main/resources/common/message/ShareFetchResponse.json1// Licensed to the Apache Software Foundation (ASF) under one or moreCOMMENT
LOW…/main/resources/common/message/ShareFetchResponse.json21 //COMMENT
LOW…/resources/common/message/ShareAcknowledgeRequest.json1// Licensed to the Apache Software Foundation (ASF) under one or moreCOMMENT
LOW…c/main/resources/common/message/HeartbeatResponse.json1// Licensed to the Apache Software Foundation (ASF) under one or moreCOMMENT
LOW…/main/resources/common/message/StopReplicaRequest.json1// Licensed to the Apache Software Foundation (ASF) under one or moreCOMMENT
LOW…/src/main/resources/common/message/ProduceRequest.json1// Licensed to the Apache Software Foundation (ASF) under one or moreCOMMENT
LOW…/src/main/resources/common/message/ProduceRequest.json21 // Versions 0-2 were removed in Apache Kafka 4.0, version 3 is the new baseline. Due to a bug in librdkafka,COMMENT
LOW…main/resources/common/message/DeleteGroupsRequest.json1// Licensed to the Apache Software Foundation (ASF) under one or moreCOMMENT
LOW…urces/common/message/WriteShareGroupStateResponse.json1// Licensed to the Apache Software Foundation (ASF) under one or moreCOMMENT
LOW…urces/common/message/WriteShareGroupStateResponse.json21 //COMMENT
LOW…age/StreamsGroupTopologyDescriptionUpdateResponse.json1// Licensed to the Apache Software Foundation (ASF) under one or moreCOMMENT
LOW…age/StreamsGroupTopologyDescriptionUpdateResponse.json21 "flexibleVersions": "0+",COMMENT
LOW…ces/common/message/DescribeTopicPartitionsRequest.json1// Licensed to the Apache Software Foundation (ASF) under one or moreCOMMENT
LOW…s/src/main/resources/common/message/EndTxnRequest.json1// Licensed to the Apache Software Foundation (ASF) under one or moreCOMMENT
LOW…resources/common/message/AlterClientQuotasRequest.json1// Licensed to the Apache Software Foundation (ASF) under one or moreCOMMENT
LOW…in/resources/common/message/UpdateMetadataRequest.json1// Licensed to the Apache Software Foundation (ASF) under one or moreCOMMENT
LOW…rces/common/message/DeleteShareGroupStateResponse.json1// Licensed to the Apache Software Foundation (ASF) under one or moreCOMMENT
LOW…resources/common/message/UnregisterBrokerResponse.json1// Licensed to the Apache Software Foundation (ASF) under one or moreCOMMENT
LOW…n/resources/common/message/DescribeGroupsResponse.json1// Licensed to the Apache Software Foundation (ASF) under one or moreCOMMENT
LOW…/main/resources/common/message/LeaveGroupResponse.json1// Licensed to the Apache Software Foundation (ASF) under one or moreCOMMENT
LOW…ents/src/main/resources/common/message/AbortedTxn.json1// Licensed to the Apache Software Foundation (ASF) under one or moreCOMMENT
LOW…ommon/message/DescribeUserScramCredentialsRequest.json1// Licensed to the Apache Software Foundation (ASF) under one or moreCOMMENT
LOW…n/resources/common/message/FindCoordinatorRequest.json1// Licensed to the Apache Software Foundation (ASF) under one or moreCOMMENT
LOW…n/resources/common/message/FindCoordinatorRequest.json21 // Version 1 adds KeyType.COMMENT
LOW…esources/common/message/AddPartitionsToTxnRequest.json1// Licensed to the Apache Software Foundation (ASF) under one or moreCOMMENT
LOW…sage/StreamsGroupTopologyDescriptionUpdateRequest.json1// Licensed to the Apache Software Foundation (ASF) under one or moreCOMMENT
LOW…esources/common/message/ShareGroupDescribeRequest.json1// Licensed to the Apache Software Foundation (ASF) under one or moreCOMMENT
LOW…/resources/common/message/DescribeClusterResponse.json1// Licensed to the Apache Software Foundation (ASF) under one or moreCOMMENT
LOW…ain/resources/common/message/SaslHandshakeRequest.json1// Licensed to the Apache Software Foundation (ASF) under one or moreCOMMENT
LOW…n/resources/common/message/DescribeLogDirsRequest.json1// Licensed to the Apache Software Foundation (ASF) under one or moreCOMMENT
LOW…ts/src/main/resources/common/message/FetchRequest.json1// Licensed to the Apache Software Foundation (ASF) under one or moreCOMMENT
LOW…ts/src/main/resources/common/message/FetchRequest.json21 // Versions 0-3 were removed in Apache Kafka 4.0, Version 4 is the new baseline.COMMENT
LOW…ts/src/main/resources/common/message/FetchRequest.json41 //COMMENT
LOW…s/common/message/GetTelemetrySubscriptionsRequest.json1// Licensed to the Apache Software Foundation (ASF) under one or moreCOMMENT
LOW…sources/common/message/AlterReplicaLogDirsRequest.json1// Licensed to the Apache Software Foundation (ASF) under one or moreCOMMENT
LOW…mmon/message/DescribeUserScramCredentialsResponse.json1// Licensed to the Apache Software Foundation (ASF) under one or moreCOMMENT
LOW…in/resources/common/message/DescribeQuorumRequest.json1// Licensed to the Apache Software Foundation (ASF) under one or moreCOMMENT
773 more matches not shown…
Hyper-Verbose Identifiers330 hits · 343 pts
SeverityFileLineSnippetContext
LOW…fka/clients/producer/internals/TransactionManager.java1403 abstract class TxnRequestHandler implements RequestCompletionHandler {CODE
LOW…ka/clients/consumer/internals/ConsumerCoordinator.java1352 private class OffsetCommitResponseHandler extends CoordinatorResponseHandler<OffsetCommitResponse, Void> {CODE
LOW…ka/clients/consumer/internals/ConsumerCoordinator.java1514 private class OffsetFetchResponseHandler extends CoordinatorResponseHandler<OffsetFetchResponse, Map<TopicPartition,CODE
LOW…ka/clients/consumer/internals/AbstractCoordinator.java640 private class JoinGroupResponseHandler extends CoordinatorResponseHandler<JoinGroupResponse, ByteBuffer> {CODE
LOW…ka/clients/consumer/internals/AbstractCoordinator.java820 private class SyncGroupResponseHandler extends CoordinatorResponseHandler<SyncGroupResponse, ByteBuffer> {CODE
LOW…ka/clients/consumer/internals/AbstractCoordinator.java922 private class FindCoordinatorResponseHandler extends RequestFutureAdapter<ClientResponse, Void> {CODE
LOW…ka/clients/consumer/internals/AbstractCoordinator.java1200 private class LeaveGroupResponseHandler extends CoordinatorResponseHandler<LeaveGroupResponse, Void> {CODE
LOW…ka/clients/consumer/internals/AbstractCoordinator.java1238 private class HeartbeatResponseHandler extends CoordinatorResponseHandler<HeartbeatResponse, Void> {CODE
LOW…ka/clients/consumer/internals/AbstractCoordinator.java1292 protected abstract class CoordinatorResponseHandler<R, T> extends RequestFutureAdapter<ClientResponse, T> {CODE
LOWdocker/extract_docker_official_image_artifact.py40def set_executable_permissions(directory):CODE
LOWdocker/common.py58def build_docker_image_runner(command, image_type, kafka_archive=None):CODE
LOWdocker/prepare_docker_official_image_source.py49def remove_args_and_hardcode_values(file_path, kafka_version, kafka_url):CODE
LOWdocker/docker_official_image_build_test.py44def build_docker_official_image(image, tag, kafka_version, image_type):CODE
LOWdocker/test/docker_sanity_test.py89 def set_share_group_offset_reset_strategy(self, group_id, strategy, command_config):CODE
LOWdocker/test/docker_sanity_test.py166 def consumer_group_protocol_flow(self):CODE
LOWdocker/test/docker_sanity_test.py186 def share_group_protocol_flow(self):CODE
LOW…a/coordinator/AbstractCoordinatorConcurrencyTest.scala278 def getOrCreateLogs(): mutable.Map[TopicPartition, (UnifiedLog, Long)] = {CODE
LOW…er/handlers/DescribeTopicPartitionsRequestHandler.java43public class DescribeTopicPartitionsRequestHandler {CODE
LOW…rc/main/scala/kafka/tools/TestRaftRequestHandler.scala36class TestRaftRequestHandler(CODE
LOW…/coordinator/transaction/TransactionStateManager.scala414 private def getAndMaybeAddTransactionState(transactionalId: String,CODE
LOWcore/src/main/scala/kafka/network/SocketServer.scala1575 private def getOrCreateConnectionRateQuotaSensor(quotaLimit: Int, connectionQuotaEntity: ConnectionQuotaEntity): SensoCODE
LOWcore/src/main/scala/kafka/server/ReplicaManager.scala2318 private[kafka] def getOrCreatePartition(tp: TopicPartition,CODE
LOW…/src/main/scala/kafka/server/KafkaRequestHandler.scala91class KafkaRequestHandler(CODE
LOW…rc/main/scala/kafka/server/AbstractFetcherThread.scala838 def getAndMaybePut(topicPartition: TopicPartition): FetcherLagMetrics = {CODE
LOWcore/src/main/scala/kafka/server/ConfigHandler.scala159 def getOrDefault(prop: String): Long = updatedDynamicBrokerConfigs get prop match {CODE
LOWtests/unit/directory_layout/check_project_paths.py37 def check_create_path_resolver_override(self):CODE
LOWtests/unit/directory_layout/check_project_paths.py49 def check_create_path_resolver_default(self):CODE
LOWtests/unit/directory_layout/check_project_paths.py63 def check_versioned_source_paths(self):CODE
LOWtests/unit/directory_layout/check_project_paths.py71 def check_node_or_version_helper(self):CODE
LOW⚡tests/kafkatest/version.py65 def topic_command_supports_bootstrap_server(self):CODE
LOW⚡tests/kafkatest/version.py68 def topic_command_supports_if_not_exists_with_bootstrap_server(self):CODE
LOW⚡tests/kafkatest/version.py71 def supports_tls_to_zookeeper(self):CODE
LOW⚡tests/kafkatest/version.py75 def reassign_partitions_command_supports_bootstrap_server(self):CODE
LOW⚡tests/kafkatest/version.py78 def kafka_configs_command_uses_bootstrap_server(self):CODE
LOW⚡tests/kafkatest/version.py82 def kafka_configs_command_uses_bootstrap_server_scram(self):CODE
LOW⚡tests/kafkatest/version.py86 def supports_topic_ids_when_using_zk(self):CODE
LOW⚡tests/kafkatest/version.py107 def supports_command_property(self):CODE
LOW⚡tests/kafkatest/version.py114 def supports_formatter_property(self):CODE
LOW⚡tests/kafkatest/version.py121 def supports_consumer_close_timeout(self):CODE
LOW…ts/kafkatest/sanity_checks/test_verifiable_producer.py84 def test_multiple_kraft_security_protocols(CODE
LOW…ts/kafkatest/sanity_checks/test_verifiable_producer.py125 def test_multiple_kraft_sasl_mechanisms(self, metadata_quorum):CODE
LOW⚡tests/kafkatest/tests/verifiable_share_consumer_test.py78 def await_consumed_messages_by_a_consumer(self, consumer, node, min_messages=1, timeout_sec=10, total=False):CODE
LOW⚡tests/kafkatest/tests/verifiable_share_consumer_test.py86 def await_unique_consumed_messages(self, consumer, min_messages=1, timeout_sec=10):CODE
LOW⚡tests/kafkatest/tests/verifiable_share_consumer_test.py91 def await_acknowledged_messages(self, consumer, min_messages=1, timeout_sec=10):CODE
LOW⚡tests/kafkatest/tests/verifiable_share_consumer_test.py96 def await_unique_acknowledged_messages(self, consumer, min_messages=1, timeout_sec=10):CODE
LOWtests/kafkatest/tests/produce_consume_validate.py51 def start_producer_and_consumer(self):CODE
LOWtests/kafkatest/tests/produce_consume_validate.py93 def stop_producer_and_consumer(self):CODE
LOWtests/kafkatest/tests/produce_consume_validate.py99 def run_produce_consume_validate(self, core_test_action=None, *args):CODE
LOWtests/kafkatest/tests/end_to_end.py45 def create_zookeeper_if_necessary(self, num_nodes=1, **kwargs):CODE
LOWtests/kafkatest/tests/verifiable_consumer_test.py89 def await_all_members_stabilized(self, topic, num_partitions, consumer, timeout_sec):CODE
LOWtests/kafkatest/tests/tools/log_compaction_test.py52 def start_test_log_compaction_tool(self, security_protocol, compression_config={}):CODE
LOWtests/kafkatest/tests/tools/trogdor_test.py72 def test_network_partition_fault(self):CODE
LOW…sts/kafkatest/tests/tools/replica_verification_test.py60 def start_replica_verification_tool(self, security_protocol):CODE
LOWtests/kafkatest/tests/core/fetch_from_follower_test.py73 def test_consumer_preferred_read_replica(self, metadata_quorum, group_protocol=None):CODE
LOWtests/kafkatest/tests/core/transactions_test.py141 def copy_messages_transactionally(self, failure_mode, bounce_target,CODE
LOW…fkatest/tests/core/transactions_mixed_versions_test.py115 def copy_messages_transactionally(self, input_topic, output_topic,CODE
LOW…fkatest/tests/core/transactions_mixed_versions_test.py198 def test_transactions_mixed_versions(self, old_kafka_version, metadata_quorum=quorum.isolated_kraft, group_protocol=CODE
LOWtests/kafkatest/tests/core/share_consume_bench_test.py96 def test_two_share_consumers_in_a_group_topics(self, metadata_quorum):CODE
LOWtests/kafkatest/tests/core/share_consume_bench_test.py124 def test_one_share_consumer_subscribed_to_single_topic(self, metadata_quorum):CODE
LOWtests/kafkatest/tests/core/share_consume_bench_test.py151 def test_multiple_share_consumers_subscribed_to_single_topic(self, metadata_quorum):CODE
270 more matches not shown…
Cross-File Repetition31 hits · 155 pts
SeverityFileLineSnippetContext
HIGHtests/kafkatest/tests/verifiable_share_consumer_test.py0override this since we're adding services outside of the constructorSTRING
HIGHtests/kafkatest/tests/verifiable_consumer_test.py0override this since we're adding services outside of the constructorSTRING
HIGHtests/kafkatest/tests/core/log_dir_failure_test.py0override this since we're adding services outside of the constructorSTRING
HIGHtests/kafkatest/tests/core/replication_test.py0override this since we're adding services outside of the constructorSTRING
HIGHtests/kafkatest/tests/core/quota_test.py0override this since we're adding services outside of the constructorSTRING
HIGHtests/kafkatest/tests/core/transactions_test.py0:type test_context: ducktape.tests.test.testcontextSTRING
HIGH…fkatest/tests/core/transactions_mixed_versions_test.py0:type test_context: ducktape.tests.test.testcontextSTRING
HIGHtests/kafkatest/tests/core/share_consume_bench_test.py0:type test_context: ducktape.tests.test.testcontextSTRING
HIGHtests/kafkatest/tests/core/security_test.py0:type test_context: ducktape.tests.test.testcontextSTRING
HIGHtests/kafkatest/tests/core/produce_bench_test.py0:type test_context: ducktape.tests.test.testcontextSTRING
HIGH…fkatest/tests/core/replication_replica_failure_test.py0:type test_context: ducktape.tests.test.testcontextSTRING
HIGHtests/kafkatest/tests/core/log_dir_failure_test.py0:type test_context: ducktape.tests.test.testcontextSTRING
HIGHtests/kafkatest/tests/core/throttling_test.py0:type test_context: ducktape.tests.test.testcontextSTRING
HIGHtests/kafkatest/tests/core/round_trip_fault_test.py0:type test_context: ducktape.tests.test.testcontextSTRING
HIGHtests/kafkatest/tests/core/consume_bench_test.py0:type test_context: ducktape.tests.test.testcontextSTRING
HIGHtests/kafkatest/tests/core/replication_test.py0:type test_context: ducktape.tests.test.testcontextSTRING
HIGH…s/kafkatest/tests/core/group_mode_transactions_test.py0:type test_context: ducktape.tests.test.testcontextSTRING
HIGHtests/kafkatest/tests/core/reassign_partitions_test.py0:type test_context: ducktape.tests.test.testcontextSTRING
HIGHtests/kafkatest/tests/core/transactions_upgrade_test.py0:type test_context: ducktape.tests.test.testcontextSTRING
HIGHtests/kafkatest/tests/core/quota_test.py0:type test_context: ducktape.tests.test.testcontextSTRING
HIGH…/kafkatest/tests/core/eligible_leader_replicas_test.py0:type test_context: ducktape.tests.test.testcontextSTRING
HIGH…est/tests/client/client_compatibility_features_test.py0:type test_context: ducktape.tests.test.testcontextSTRING
HIGHtests/kafkatest/tests/client/compression_test.py0:type test_context: ducktape.tests.test.testcontextSTRING
HIGH…ts/client/client_compatibility_produce_consume_test.py0:type test_context: ducktape.tests.test.testcontextSTRING
HIGH…sts/kafkatest/services/transactional_message_copier.py0try to parse a string as json. return none if not parseable.STRING
HIGHtests/kafkatest/services/verifiable_consumer.py0try to parse a string as json. return none if not parseable.STRING
HIGHtests/kafkatest/services/verifiable_producer.py0try to parse a string as json. return none if not parseable.STRING
HIGHtests/kafkatest/services/verifiable_share_consumer.py0try to parse a string as json. return none if not parseable.STRING
HIGHtests/kafkatest/services/verifiable_consumer.py0this service wraps org.apache.kafka.tools.verifiableshareconsumer for use in system testing. note: this class should be STRING
HIGHtests/kafkatest/services/verifiable_producer.py0this service wraps org.apache.kafka.tools.verifiableshareconsumer for use in system testing. note: this class should be STRING
HIGHtests/kafkatest/services/verifiable_share_consumer.py0this service wraps org.apache.kafka.tools.verifiableshareconsumer for use in system testing. note: this class should be STRING
Structural Annotation Overuse84 hits · 150 pts
SeverityFileLineSnippetContext
LOW⚡…/consumer/internals/ConsumerMembershipManagerTest.java1955 // Step 4: Send ack and make sure we're done and our listener was called appropriatelyCOMMENT
LOW⚡…/consumer/internals/ConsumerMembershipManagerTest.java1964 // Step 5: receive an empty assignment, which means we should call revokeCOMMENT
LOW⚡…/consumer/internals/ConsumerMembershipManagerTest.java1972 // Step 6: revoke partitionsCOMMENT
LOW⚡…/consumer/internals/ConsumerMembershipManagerTest.java1982 // Step 7: assign partitions should still be called, even though it's emptyCOMMENT
LOW⚡…/consumer/internals/ConsumerMembershipManagerTest.java1992 // Step 8: Send ack and make sure we're done and our listener was called appropriatelyCOMMENT
LOW⚡…/consumer/internals/ConsumerMembershipManagerTest.java2351 // Step 2: put the state machine into the appropriate... stateCOMMENT
LOW⚡…/consumer/internals/ConsumerMembershipManagerTest.java2360 // Step 3: invoke the callbackCOMMENT
LOW…/consumer/internals/ConsumerMembershipManagerTest.java1929 // Step 2: put the state machine into the appropriate... stateCOMMENT
LOW…/consumer/internals/ConsumerMembershipManagerTest.java1944 // Step 3: assign partitionsCOMMENT
LOW…/consumer/internals/ConsumerMembershipManagerTest.java2010 // Step 1: set up mocksCOMMENT
LOW…/consumer/internals/ConsumerMembershipManagerTest.java2026 // Step 2: put the state machine into the appropriate... stateCOMMENT
LOW…/consumer/internals/ConsumerMembershipManagerTest.java2041 // Step 3: revoke partitionsCOMMENT
LOW…/consumer/internals/ConsumerMembershipManagerTest.java2053 // Step 4: Send ack and make sure we're done and our listener was called appropriatelyCOMMENT
LOW…/consumer/internals/ConsumerMembershipManagerTest.java2070 // Step 1: set up mocksCOMMENT
LOW…/consumer/internals/ConsumerMembershipManagerTest.java2085 // Step 2: put the state machine into the appropriate... stateCOMMENT
LOW…/consumer/internals/ConsumerMembershipManagerTest.java2100 // Step 3: revoke partitionsCOMMENT
LOW…/consumer/internals/ConsumerMembershipManagerTest.java2111 // Step 4: assign partitionsCOMMENT
LOW…/consumer/internals/ConsumerMembershipManagerTest.java2123 // Step 5: Send ack and make sure we're done and our listener was called appropriatelyCOMMENT
LOW…/consumer/internals/ConsumerMembershipManagerTest.java2336 // Step 1: set up mocksCOMMENT
LOW…/consumer/internals/ConsumerMembershipManagerTest.java2371 // Step 4: Receive ack and make sure we're done and our listener was called appropriatelyCOMMENT
LOW⚡…/consumer/internals/CoordinatorRequestManagerTest.java112 // Step 1: mark the coordinator as disconnected right after creation of the CoordinatorRequestManager.COMMENT
LOW⚡…/consumer/internals/CoordinatorRequestManagerTest.java117 // Step 2: sleep for one minute and mark the coordinator unknown again. Then verify that the warning wasCOMMENT
LOW⚡…/consumer/internals/CoordinatorRequestManagerTest.java125 // Step 3: sleep for *another* minute, mark the coordinator unknown again, and verify the accuracy.COMMENT
LOW⚡…authbearer/ClientAssertionKeycloakIntegrationTest.java528 // Step 1: Authenticate with client assertionCOMMENT
LOW⚡…authbearer/ClientAssertionKeycloakIntegrationTest.java538 // Step 2: Reconfigure with only client secret (assertion configs removed)COMMENT
LOW⚡…authbearer/ClientAssertionKeycloakIntegrationTest.java560 // Step 1: Authenticate with locally-generated assertionCOMMENT
LOW⚡…authbearer/ClientAssertionKeycloakIntegrationTest.java570 // Step 2: Reconfigure with file-based assertion (locally-generated configs removed)COMMENT
LOW…authbearer/ClientAssertionKeycloakIntegrationTest.java600 // Step 1: Authenticate with file-based assertionCOMMENT
LOW…authbearer/ClientAssertionKeycloakIntegrationTest.java620 // Step 2: Reconfigure with locally-generated assertion (file config removed)COMMENT
LOW…c/test/scala/unit/kafka/network/SocketServerTest.scala1476 // Step 1: Send client requests.COMMENT
LOW⚡…c/test/scala/unit/kafka/network/SocketServerTest.scala1487 // Step 2: Close the client-side socket and the proxy socket to the server, triggering close notification in theCOMMENT
LOW⚡…c/test/scala/unit/kafka/network/SocketServerTest.scala1497 // Step 3: Process the first request. Verify that the channel is not removed since the channelCOMMENT
LOW⚡…c/test/scala/unit/kafka/network/SocketServerTest.scala1504 // Step 4: Process buffered data. if `responseRequiredIndex>=0`, the channel should be failed and removed whenCOMMENT
LOW⚡…integration/kafka/api/ClientOAuthIntegrationTest.scala70 // Step 1: Generate the key pair dynamically.COMMENT
LOW⚡…integration/kafka/api/ClientOAuthIntegrationTest.scala77 // Step 2: Create the RSA JWK from key pair.COMMENT
LOW⚡…integration/kafka/api/ClientOAuthIntegrationTest.scala83 // Step 3: Create the OAuth server using the keys just createdCOMMENT
LOW⚡…e/src/main/java/kafka/server/share/SharePartition.java3378 // Step 1: Enqueue to DLQCOMMENT
LOW⚡…e/src/main/java/kafka/server/share/SharePartition.java3387 // Step 2: Transition ARCHIVING → ARCHIVEDCOMMENT
LOW…e/src/main/java/kafka/server/share/SharePartition.java3400 // Step 3: Persist ARCHIVED. On failure, ARCHIVED stays in memory — theCOMMENT
LOW…/streams/integration/InternalTopicIntegrationTest.java202 // Step 1: Configure and start a simple word count topologyCOMMENT
LOW⚡…/streams/integration/InternalTopicIntegrationTest.java215 // Step 2: Produce some input data to the input topic.COMMENT
LOW⚡…/streams/integration/InternalTopicIntegrationTest.java220 // Step 3: Verify the state changelog topics are compactCOMMENT
LOW…/streams/integration/InternalTopicIntegrationTest.java240 // Step 1: Configure and start a simple word count topologyCOMMENT
LOW⚡…/streams/integration/InternalTopicIntegrationTest.java256 // Step 2: Produce some input data to the input topic.COMMENT
LOW⚡…/streams/integration/InternalTopicIntegrationTest.java261 // Step 3: Verify the state changelog topics are compactCOMMENT
LOW⚡…ntegration/OuterJoinListValueStoreRestorationTest.java155 // Step 1: Initial Topology StartCOMMENT
LOW⚡…ntegration/OuterJoinListValueStoreRestorationTest.java159 // Step 2: Create Non-Joined RecordsCOMMENT
LOW⚡…ntegration/OuterJoinListValueStoreRestorationTest.java187 // Step 3: Force State RestorationCOMMENT
LOW⚡…ntegration/OuterJoinListValueStoreRestorationTest.java191 // Step 4: Restart with RestorationCOMMENT
LOW⚡…ntegration/OuterJoinListValueStoreRestorationTest.java195 // Step 5: Trigger Window AdvancementCOMMENT
LOW⚡…/internals/RocksDBTimestampedStoreWithHeadersTest.java285 // Step 1: Create a plain store with two keysCOMMENT
LOW⚡…/internals/RocksDBTimestampedStoreWithHeadersTest.java292 // Step 2: Open as timestamped store and migrate one key (simulating partial migration)COMMENT
LOW⚡…/internals/RocksDBTimestampedStoreWithHeadersTest.java299 // Step 3: Try to open with headers store - should failCOMMENT
LOWrelease/release.py261 # Step 1: Trigger build/test workflows and loop until CVE-freeCOMMENT
LOWrelease/release.py273 # Step 2: Push RC images to DockerHubCOMMENT
LOWdocs/streams/quickstart.md67### Step 1: Download the codeCOMMENT
LOWdocs/streams/quickstart.md75### Step 2: Start the Kafka serverCOMMENT
LOWdocs/streams/quickstart.md92### Step 3: Prepare input topic and start Kafka producerCOMMENT
LOWdocs/streams/quickstart.md124### Step 4: Start the Wordcount ApplicationCOMMENT
LOWdocs/streams/quickstart.md155### Step 5: Process some dataCOMMENT
24 more matches not shown…
Cross-Language Confusion23 hits · 142 pts
SeverityFileLineSnippetContext
HIGH⚡…t/tests/streams/streams_protocol_cross_version_test.py147 cmd = "grep -c -F -- '%s' %s 2>/dev/null || true" % (literal, path)CODE
HIGH⚡…t/tests/streams/streams_protocol_cross_version_test.py163 cmd = "grep -c -E -- '%s' %s 2>/dev/null || true" % (self.OLD_BROKER_REJECTION_PATTERN, path)CODE
HIGH⚡…ts/streams/streams_topology_description_plugin_test.py109 "grep -c '%s' %s || true" % (self.BROKER_SOLICITED_LOG, self.BROKER_LOG_FILE),CODE
HIGH⚡…ts/streams/streams_topology_description_plugin_test.py115 "grep -c '%s' %s || true" % (self.PUSH_REQUESTED_LOG, processor.LOG_FILE),CODE
HIGH⚡…ts/streams/streams_topology_description_plugin_test.py121 "grep -c '%s' %s || true" % (self.PUSH_SENDING_LOG, processor.LOG_FILE),CODE
HIGH⚡…ts/streams/streams_topology_description_plugin_test.py127 "grep -c '%s' %s || true" % (self.PUSH_SUCCESS_LOG, processor.LOG_FILE),CODE
HIGH⚡…ts/streams/streams_topology_description_plugin_test.py151 "grep -c '%s' %s || true" % (self.PUSH_REQUESTED_LOG, processor.LOG_FILE),CODE
HIGH⚡…ts/streams/streams_topology_description_plugin_test.py157 "grep -c '%s' %s || true" % (self.PUSH_SENDING_LOG, processor.LOG_FILE),CODE
HIGH⚡…ts/streams/streams_topology_description_plugin_test.py163 "grep -c '%s' %s || true" % (self.PUSH_SUCCESS_LOG, processor.LOG_FILE),CODE
HIGH⚡…ts/streams/streams_topology_description_plugin_test.py263 "grep -c '%s' %s || true" % (self.BROKER_SOLICITED_LOG, self.BROKER_LOG_FILE),CODE
HIGH⚡…ts/streams/streams_topology_description_plugin_test.py272 "grep -c '%s' %s || true" % (self.BROKER_SOLICITED_LOG, self.BROKER_LOG_FILE),CODE
HIGH⚡…ts/streams/streams_topology_description_plugin_test.py278 "grep -c '%s' %s || true" % (self.PUSH_SUCCESS_LOG, processor.LOG_FILE),CODE
HIGH…ts/streams/streams_topology_description_plugin_test.py191 "grep -c '%s' %s || true" % (self.PUSH_REQUESTED_LOG, processor.LOG_FILE),CODE
HIGH…ts/streams/streams_topology_description_plugin_test.py197 "grep -c '%s' %s || true" % (self.PUSH_SENDING_LOG, processor.LOG_FILE),CODE
HIGH…ts/streams/streams_topology_description_plugin_test.py250 "grep -c '%s' %s || true" % (self.BROKER_SOLICITED_LOG, self.BROKER_LOG_FILE),CODE
HIGH…ts/streams/streams_topology_description_plugin_test.py309 "grep -c '%s' %s || true" % (self.PUSH_SUCCESS_LOG, processor1.LOG_FILE),CODE
HIGH…ts/streams/streams_topology_description_plugin_test.py312 "grep -c '%s' %s || true" % (self.PUSH_SUCCESS_LOG, processor2.LOG_FILE),CODE
HIGH…ts/streams/streams_topology_description_plugin_test.py326 "grep -c '%s' %s || true" % (self.PUSH_SENDING_LOG, processor1.LOG_FILE),CODE
HIGH…ts/streams/streams_topology_description_plugin_test.py329 "grep -c '%s' %s || true" % (self.PUSH_SENDING_LOG, processor2.LOG_FILE),CODE
HIGHtests/kafkatest/tests/streams/streams_smoke_test.py167 "grep -c 'Requested topology description push at topology epoch' %s || true" % broker_log,CODE
HIGHtests/kafkatest/services/kafka/kafka.py1461 cmd += "&& sleep 1 && rm -f %s" % json_fileCODE
HIGHtests/kafkatest/services/kafka/kafka.py1503 cmd += " && sleep 1 && rm -f %s" % json_fileCODE
HIGHrelease/test_gh_actions.py21 or: cd release && python -m pytest test_gh_actions.py -vSTRING
Verbosity Indicators72 hits · 132 pts
SeverityFileLineSnippetContext
LOW⚡…/consumer/internals/ConsumerMembershipManagerTest.java1955 // Step 4: Send ack and make sure we're done and our listener was called appropriatelyCOMMENT
LOW⚡…/consumer/internals/ConsumerMembershipManagerTest.java1964 // Step 5: receive an empty assignment, which means we should call revokeCOMMENT
LOW⚡…/consumer/internals/ConsumerMembershipManagerTest.java1972 // Step 6: revoke partitionsCOMMENT
LOW⚡…/consumer/internals/ConsumerMembershipManagerTest.java1982 // Step 7: assign partitions should still be called, even though it's emptyCOMMENT
LOW⚡…/consumer/internals/ConsumerMembershipManagerTest.java1992 // Step 8: Send ack and make sure we're done and our listener was called appropriatelyCOMMENT
LOW⚡…/consumer/internals/ConsumerMembershipManagerTest.java2351 // Step 2: put the state machine into the appropriate... stateCOMMENT
LOW⚡…/consumer/internals/ConsumerMembershipManagerTest.java2360 // Step 3: invoke the callbackCOMMENT
LOW…/consumer/internals/ConsumerMembershipManagerTest.java1929 // Step 2: put the state machine into the appropriate... stateCOMMENT
LOW…/consumer/internals/ConsumerMembershipManagerTest.java1944 // Step 3: assign partitionsCOMMENT
LOW…/consumer/internals/ConsumerMembershipManagerTest.java2010 // Step 1: set up mocksCOMMENT
LOW…/consumer/internals/ConsumerMembershipManagerTest.java2026 // Step 2: put the state machine into the appropriate... stateCOMMENT
LOW…/consumer/internals/ConsumerMembershipManagerTest.java2041 // Step 3: revoke partitionsCOMMENT
LOW…/consumer/internals/ConsumerMembershipManagerTest.java2053 // Step 4: Send ack and make sure we're done and our listener was called appropriatelyCOMMENT
LOW…/consumer/internals/ConsumerMembershipManagerTest.java2070 // Step 1: set up mocksCOMMENT
LOW…/consumer/internals/ConsumerMembershipManagerTest.java2085 // Step 2: put the state machine into the appropriate... stateCOMMENT
LOW…/consumer/internals/ConsumerMembershipManagerTest.java2100 // Step 3: revoke partitionsCOMMENT
LOW…/consumer/internals/ConsumerMembershipManagerTest.java2111 // Step 4: assign partitionsCOMMENT
LOW…/consumer/internals/ConsumerMembershipManagerTest.java2123 // Step 5: Send ack and make sure we're done and our listener was called appropriatelyCOMMENT
LOW…/consumer/internals/ConsumerMembershipManagerTest.java2336 // Step 1: set up mocksCOMMENT
LOW…/consumer/internals/ConsumerMembershipManagerTest.java2371 // Step 4: Receive ack and make sure we're done and our listener was called appropriatelyCOMMENT
LOW⚡…/consumer/internals/CoordinatorRequestManagerTest.java112 // Step 1: mark the coordinator as disconnected right after creation of the CoordinatorRequestManager.COMMENT
LOW⚡…/consumer/internals/CoordinatorRequestManagerTest.java117 // Step 2: sleep for one minute and mark the coordinator unknown again. Then verify that the warning wasCOMMENT
LOW⚡…/consumer/internals/CoordinatorRequestManagerTest.java125 // Step 3: sleep for *another* minute, mark the coordinator unknown again, and verify the accuracy.COMMENT
LOW⚡…authbearer/ClientAssertionKeycloakIntegrationTest.java528 // Step 1: Authenticate with client assertionCOMMENT
LOW⚡…authbearer/ClientAssertionKeycloakIntegrationTest.java538 // Step 2: Reconfigure with only client secret (assertion configs removed)COMMENT
LOW⚡…authbearer/ClientAssertionKeycloakIntegrationTest.java560 // Step 1: Authenticate with locally-generated assertionCOMMENT
LOW⚡…authbearer/ClientAssertionKeycloakIntegrationTest.java570 // Step 2: Reconfigure with file-based assertion (locally-generated configs removed)COMMENT
LOW…authbearer/ClientAssertionKeycloakIntegrationTest.java600 // Step 1: Authenticate with file-based assertionCOMMENT
LOW…authbearer/ClientAssertionKeycloakIntegrationTest.java620 // Step 2: Reconfigure with locally-generated assertion (file config removed)COMMENT
LOW…c/test/scala/unit/kafka/network/SocketServerTest.scala1476 // Step 1: Send client requests.COMMENT
LOW⚡…c/test/scala/unit/kafka/network/SocketServerTest.scala1487 // Step 2: Close the client-side socket and the proxy socket to the server, triggering close notification in theCOMMENT
LOW⚡…c/test/scala/unit/kafka/network/SocketServerTest.scala1497 // Step 3: Process the first request. Verify that the channel is not removed since the channelCOMMENT
LOW⚡…c/test/scala/unit/kafka/network/SocketServerTest.scala1504 // Step 4: Process buffered data. if `responseRequiredIndex>=0`, the channel should be failed and removed whenCOMMENT
LOW⚡…integration/kafka/api/ClientOAuthIntegrationTest.scala70 // Step 1: Generate the key pair dynamically.COMMENT
LOW⚡…integration/kafka/api/ClientOAuthIntegrationTest.scala77 // Step 2: Create the RSA JWK from key pair.COMMENT
LOW⚡…integration/kafka/api/ClientOAuthIntegrationTest.scala83 // Step 3: Create the OAuth server using the keys just createdCOMMENT
LOW…e/src/main/java/kafka/server/share/SharePartition.java1725 // we need to check if the share partition has reached the max in-flight records limitCOMMENT
LOW⚡…e/src/main/java/kafka/server/share/SharePartition.java3378 // Step 1: Enqueue to DLQCOMMENT
LOW⚡…e/src/main/java/kafka/server/share/SharePartition.java3387 // Step 2: Transition ARCHIVING → ARCHIVEDCOMMENT
LOW…e/src/main/java/kafka/server/share/SharePartition.java3400 // Step 3: Persist ARCHIVED. On failure, ARCHIVED stays in memory — theCOMMENT
LOW…rc/main/java/kafka/server/share/DelayedShareFetch.java239 // may or may not have completed. We need to check if the async read has completed to decideCOMMENT
LOW…rc/main/java/kafka/server/share/DelayedShareFetch.java298 // If tryComplete did not invoke forceComplete, so we need to check if we have any partitions to fetch.COMMENT
LOW…/streams/integration/InternalTopicIntegrationTest.java202 // Step 1: Configure and start a simple word count topologyCOMMENT
LOW⚡…/streams/integration/InternalTopicIntegrationTest.java215 // Step 2: Produce some input data to the input topic.COMMENT
LOW⚡…/streams/integration/InternalTopicIntegrationTest.java220 // Step 3: Verify the state changelog topics are compactCOMMENT
LOW…/streams/integration/InternalTopicIntegrationTest.java240 // Step 1: Configure and start a simple word count topologyCOMMENT
LOW⚡…/streams/integration/InternalTopicIntegrationTest.java256 // Step 2: Produce some input data to the input topic.COMMENT
LOW⚡…/streams/integration/InternalTopicIntegrationTest.java261 // Step 3: Verify the state changelog topics are compactCOMMENT
LOW⚡…ntegration/OuterJoinListValueStoreRestorationTest.java155 // Step 1: Initial Topology StartCOMMENT
LOW⚡…ntegration/OuterJoinListValueStoreRestorationTest.java159 // Step 2: Create Non-Joined RecordsCOMMENT
LOW⚡…ntegration/OuterJoinListValueStoreRestorationTest.java187 // Step 3: Force State RestorationCOMMENT
LOW⚡…ntegration/OuterJoinListValueStoreRestorationTest.java191 // Step 4: Restart with RestorationCOMMENT
LOW⚡…ntegration/OuterJoinListValueStoreRestorationTest.java195 // Step 5: Trigger Window AdvancementCOMMENT
LOW⚡…/internals/RocksDBTimestampedStoreWithHeadersTest.java285 // Step 1: Create a plain store with two keysCOMMENT
LOW⚡…/internals/RocksDBTimestampedStoreWithHeadersTest.java292 // Step 2: Open as timestamped store and migrate one key (simulating partial migration)COMMENT
LOW⚡…/internals/RocksDBTimestampedStoreWithHeadersTest.java299 // Step 3: Try to open with headers store - should failCOMMENT
LOW…ache/kafka/server/share/session/ShareSessionCache.java288 // as part of final epoch from client, so we need to check if the session is stillCOMMENT
LOWrelease/release.py261 # Step 1: Trigger build/test workflows and loop until CVE-freeCOMMENT
LOWrelease/release.py273 # Step 2: Push RC images to DockerHubCOMMENT
LOW⚡…apache/kafka/storage/internals/log/UnifiedLogTest.java4809 // Step 1: Write transactional records as leader to establish current epochCOMMENT
12 more matches not shown…
Excessive Try-Catch Wrapping50 hits · 66 pts
SeverityFileLineSnippetContext
LOWdocker/common.py76 except Exception as e:CODE
LOW⚡docker/test/docker_sanity_test.py265 except Exception as e:CODE
LOW⚡docker/test/docker_sanity_test.py270 except Exception as e:CODE
LOW⚡docker/test/docker_sanity_test.py275 except Exception as e:CODE
LOW⚡docker/test/docker_sanity_test.py280 except Exception as e:CODE
LOW⚡docker/test/docker_sanity_test.py285 except Exception as e:CODE
LOW⚡docker/test/docker_sanity_test.py290 except Exception as e:CODE
LOW⚡docker/test/docker_sanity_test.py295 except Exception as e:CODE
LOW…est/tests/client/client_compatibility_features_test.py52 except Exception as e:CODE
LOW…est/tests/client/client_compatibility_features_test.py104 except Exception as e:CODE
LOW⚡tests/kafkatest/tests/client/share_consumer_test.py63 except Exception:CODE
MEDIUMtests/kafkatest/tests/client/share_consumer_test.py59def leader_settled(partition_leader, topicName, partition):CODE
LOWtests/kafkatest/services/streams.py236 except Exception as exception:CODE
MEDIUMtests/kafkatest/services/streams.py232def pids(self, node):CODE
LOWtests/kafkatest/services/monitor/http.py209 except Exception as e:CODE
MEDIUMtests/kafkatest/services/monitor/http.py96def stop(self):CODE
LOWtests/kafkatest/services/kafka/kafka.py700 except Exception:CODE
LOWtests/kafkatest/services/kafka/kafka.py705 except Exception:CODE
LOWtests/kafkatest/services/kafka/kafka.py1016 except Exception:CODE
LOWrelease/release.py310 except Exception as e:CODE
LOWrelease/release.py379except Exception as e:CODE
MEDIUMrelease/release.py303def prereq(name, soft_check):CODE
LOWrelease/runtime.py58 except Exception as e:CODE
LOWrelease/notes.py172 except Exception as e:STRING
LOWrelease/gpg.py35 except Exception:CODE
LOW.github/scripts/pr-reviewers-trailer.py101 except Exception as e:CODE
MEDIUM.github/scripts/pr-reviewers-trailer.py95def _run_json(cmd, source):CODE
MEDIUM.github/scripts/develocity_reports.py1289 print(f"Error occurred: {str(e)}")CODE
MEDIUM.github/scripts/develocity_reports.py108def get_cache(self) -> Optional[BuildCache]:CODE
MEDIUM.github/scripts/develocity_reports.py128def get_cache(self) -> Optional[BuildCache]:CODE
LOW⚡.github/scripts/develocity_reports.py113 except Exception as e:CODE
LOW⚡.github/scripts/develocity_reports.py121 except Exception as e:CODE
LOW.github/scripts/develocity_reports.py141 except Exception as e:CODE
LOW.github/scripts/develocity_reports.py155 except Exception as e:CODE
LOW.github/scripts/develocity_reports.py394 except Exception as e:CODE
LOW.github/scripts/develocity_reports.py598 except Exception as e:CODE
LOW.github/scripts/develocity_reports.py818 except Exception as e:CODE
LOW.github/scripts/develocity_reports.py914 except Exception as e:CODE
LOW.github/scripts/develocity_reports.py1287 except Exception as e:CODE
LOWcommitter-tools/refresh_collaborators.py149 except Exception as e:CODE
MEDIUMcommitter-tools/verify_license.py45 print("Error: Distributions directory not found:", distributions_dir)CODE
MEDIUMcommitter-tools/verify_license.py55 print("Error: No tarball matching 'kafka_2.13-*.tgz' found in:", distributions_dir)CODE
MEDIUMcommitter-tools/verify_license.py100 print("Error: No directory found after extraction.")CODE
MEDIUMcommitter-tools/verify_license.py109 print("Error: LICENSE file or libs directory not found in the extracted project.")CODE
LOWcommitter-tools/kafka-merge-pr.py142 except Exception as error:CODE
LOWcommitter-tools/kafka-merge-pr.py202 except Exception as error:CODE
LOWcommitter-tools/kafka-merge-pr.py225 except Exception as error:CODE
LOWcommitter-tools/kafka-merge-pr.py236 except Exception as error:CODE
LOWcommitter-tools/kafka-merge-pr.py274 except Exception as error:CODE
MEDIUMcommitter-tools/kafka-merge-pr.py77def get_json(url):CODE
Unused Imports61 hits · 60 pts
SeverityFileLineSnippetContext
LOWdocker/generate_kafka_pr_template.py36CODE
LOW…s/kafkatest/sanity_checks/test_performance_services.py17CODE
LOW…fkatest/tests/core/transactions_mixed_versions_test.py20CODE
LOW…fkatest/tests/core/transactions_mixed_versions_test.py23CODE
LOW…fkatest/tests/core/transactions_mixed_versions_test.py32CODE
LOW…fkatest/tests/core/replication_replica_failure_test.py20CODE
LOW…fkatest/tests/core/replication_replica_failure_test.py25CODE
LOW…fkatest/tests/core/replication_replica_failure_test.py27CODE
LOW…fkatest/tests/core/replication_replica_failure_test.py30CODE
LOW…fkatest/tests/core/replication_replica_failure_test.py31CODE
LOWtests/kafkatest/tests/core/round_trip_fault_test.py27CODE
LOWtests/kafkatest/tests/core/replication_test.py19CODE
LOW…atest/tests/core/compatibility_test_new_broker_test.py13CODE
LOWtests/kafkatest/tests/core/upgrade_test.py16CODE
LOWtests/kafkatest/tests/core/upgrade_test.py20CODE
LOWtests/kafkatest/tests/core/snapshot_test.py16CODE
LOWtests/kafkatest/tests/core/transactions_upgrade_test.py20CODE
LOWtests/kafkatest/tests/core/transactions_upgrade_test.py32CODE
LOWtests/kafkatest/tests/streams/streams_upgrade_test.py18CODE
LOWtests/kafkatest/tests/streams/streams_upgrade_test.py22CODE
LOWtests/kafkatest/tests/streams/streams_upgrade_test.py25CODE
LOWtests/kafkatest/tests/streams/streams_upgrade_test.py25CODE
LOWtests/kafkatest/tests/streams/streams_upgrade_test.py25CODE
LOW…est/tests/streams/streams_broker_compatibility_test.py16CODE
LOW…test/tests/streams/streams_application_upgrade_test.py23CODE
LOW…test/tests/streams/streams_application_upgrade_test.py23CODE
LOWtests/kafkatest/tests/streams/utils/__init__.py16CODE
LOWtests/kafkatest/tests/streams/utils/__init__.py16CODE
LOWtests/kafkatest/tests/streams/utils/__init__.py16CODE
LOWtests/kafkatest/tests/streams/utils/__init__.py16CODE
LOWtests/kafkatest/tests/streams/utils/__init__.py16CODE
LOWtests/kafkatest/tests/connect/connect_test.py23CODE
LOW…atest/tests/client/consumer_protocol_migration_test.py21CODE
LOWtests/kafkatest/tests/client/consumer_test.py21CODE
LOWtests/kafkatest/utils/__init__.py16CODE
LOWtests/kafkatest/utils/__init__.py16CODE
LOWtests/kafkatest/utils/__init__.py16CODE
LOWtests/kafkatest/utils/__init__.py16CODE
LOWtests/kafkatest/utils/__init__.py16CODE
LOWtests/kafkatest/utils/__init__.py16CODE
LOWtests/kafkatest/services/console_consumer.py24CODE
LOWtests/kafkatest/services/console_share_consumer.py20CODE
LOWtests/kafkatest/services/console_share_consumer.py24CODE
LOWtests/kafkatest/services/monitor/jmx.py22CODE
LOWtests/kafkatest/services/security/kafka_acls.py16CODE
LOWtests/kafkatest/services/kafka/__init__.py16CODE
LOWtests/kafkatest/services/kafka/__init__.py17CODE
LOWtests/kafkatest/services/kafka/__init__.py18CODE
LOWtests/kafkatest/services/performance/__init__.py16CODE
LOWtests/kafkatest/services/performance/__init__.py16CODE
LOWtests/kafkatest/services/performance/__init__.py16CODE
LOWtests/kafkatest/services/performance/__init__.py16CODE
LOWtests/kafkatest/services/performance/__init__.py17CODE
LOWtests/kafkatest/services/performance/__init__.py18CODE
LOWtests/kafkatest/services/performance/__init__.py19CODE
LOWtests/kafkatest/services/performance/__init__.py20CODE
LOWrelease/release.py57CODE
LOWrelease/svn.py24CODE
LOW.github/scripts/checkstyle.py21CODE
LOW.github/scripts/develocity_reports.py20CODE
1 more matches not shown…
AI Slop Vocabulary18 hits · 46 pts
SeverityFileLineSnippetContext
MEDIUM…a/org/apache/kafka/clients/producer/KafkaProducer.java781 * {@link KafkaConsumer#groupMetadata()} to leverage consumer group metadata. This will provideCOMMENT
MEDIUM…a/org/apache/kafka/clients/admin/KafkaAdminClient.java5037 // Simply leverage the existing fenceProducers implementation with a single transactional IDCOMMENT
LOW…a/org/apache/kafka/clients/consumer/KafkaConsumer.java319 * To use this mode, instead of subscribing to the topic using {@link #subscribe(Collection) subscribe}, you just callCOMMENT
LOW…a/org/apache/kafka/clients/consumer/KafkaConsumer.java655 * partitions using {@link #assign(Collection)} then this will simply return the same partitions thatCOMMENT
LOW…org/apache/kafka/common/internals/KafkaFutureImpl.java65 // function. CompletableFuture#thenApply will just return ExecutionException wrapping theCOMMENT
MEDIUMcore/src/main/scala/kafka/server/ReplicaManager.scala893 // Please refer to the documentation in `DelayedProduce#tryComplete` for a comprehensive description of thesCOMMENT
MEDIUM…ache/kafka/coordinator/group/GroupMetadataManager.java4706 // just apply the target assignment directly. It's a robust fall back, ensuring that we converge to the newCOMMENT
LOWvagrant/base.sh209# VMs, we can just create it if it doesn't exist and use it like we'd useCOMMENT
MEDIUM…/streams/processor/internals/StoreChangelogReader.java135 // NOTE we do not book keep the current offset since we leverage state manager as its source of truthCOMMENT
LOWtests/kafkatest/tests/core/transactions_test.py226 # To check ordering, we simply create input and output topicsCOMMENT
MEDIUMtests/kafkatest/tests/core/reassign_partitions_test.py137 # latter is more robust.COMMENT
MEDIUM…t/tests/streams/streams_protocol_cross_version_test.py58 # Topics the StreamsUpgradeTest harness reads from and writes to.COMMENT
MEDIUM…t/tests/streams/streams_protocol_cross_version_test.py62 # application.id hard-coded by the StreamsUpgradeTest harness, in every version.COMMENT
MEDIUM…t/tests/streams/streams_protocol_cross_version_test.py109 # The harness configures session.timeout.ms=10000, which is below the default lower bound.COMMENT
MEDIUM…t/tests/streams/streams_protocol_cross_version_test.py131 # installed release, which is how the harness selects the DEV client.COMMENT
MEDIUM…/kafkatest/tests/streams/streams_broker_bounce_test.py187 # Start test harnessCOMMENT
MEDIUMtests/kafkatest/services/monitor/jmx.py63 # JmxTool is not particularly robust to slow-starting processes. In order to ensure JmxTool doesn't fail if theCOMMENT
MEDIUM…he/kafka/connect/runtime/WorkerTransactionContext.java83 // Essentially, instead of telling the task that it screwed up and trusting it to do the right thing, we rat on COMMENT
Empty Error Handlers8 hits · 40 pts
SeverityFileLineSnippetContext
HIGHdocker/common.py39except FileNotFoundError:CODE
HIGHtests/kafkatest/tests/core/security_test.py171except TimeoutError:CODE
HIGHtests/kafkatest/tests/core/security_test.py119except TimeoutError:CODE
HIGHtests/kafkatest/tests/connect/connect_rest_test.py135except ConnectRestError:CODE
HIGHtests/kafkatest/services/kafka/kafka.py700except Exception:CODE
HIGHtests/kafkatest/services/kafka/kafka.py705except Exception:CODE
HIGH…kafkatest/services/performance/producer_performance.py147except:CODE
HIGHrelease/gh_actions.py49except GithubException:CODE
Deep Nesting31 hits · 25 pts
SeverityFileLineSnippetContext
LOWtests/kafkatest/tests/core/quota_test.py33CODE
LOW…katest/tests/streams/streams_static_membership_test.py70CODE
LOW…katest/tests/streams/streams_static_membership_test.py134CODE
LOWtests/kafkatest/tests/streams/streams_upgrade_test.py255CODE
LOWtests/kafkatest/tests/streams/streams_upgrade_test.py334CODE
LOWtests/kafkatest/tests/streams/streams_upgrade_test.py416CODE
LOW…ts/kafkatest/tests/connect/connect_distributed_test.py566CODE
LOW…sts/kafkatest/services/transactional_message_copier.py76CODE
LOWtests/kafkatest/services/verifiable_consumer.py95CODE
LOWtests/kafkatest/services/verifiable_consumer.py316CODE
LOWtests/kafkatest/services/verifiable_consumer.py376CODE
LOWtests/kafkatest/services/verifiable_producer.py125CODE
LOWtests/kafkatest/services/verifiable_share_consumer.py161CODE
LOWtests/kafkatest/services/kafka/kafka.py194CODE
LOWtests/kafkatest/services/kafka/kafka.py601CODE
LOWtests/kafkatest/services/kafka/kafka.py844CODE
LOWtests/kafkatest/services/kafka/kafka.py1515CODE
LOWrelease/textfiles.py55CODE
LOW.github/scripts/format-test-catalog.py32CODE
LOW.github/scripts/checkstyle.py38CODE
LOW.github/scripts/pr-reviewers-trailer.py78CODE
LOW.github/scripts/junit.py144CODE
LOW.github/scripts/develocity_reports.py966CODE
LOW.github/scripts/develocity_reports.py226CODE
LOW.github/scripts/develocity_reports.py313CODE
LOW.github/scripts/develocity_reports.py415CODE
LOW.github/scripts/develocity_reports.py560CODE
LOW.github/scripts/develocity_reports.py603CODE
LOW.github/scripts/develocity_reports.py740CODE
LOW.github/scripts/develocity_reports.py845CODE
LOWcommitter-tools/refresh_collaborators.py78CODE
Self-Referential Comments9 hits · 23 pts
SeverityFileLineSnippetContext
MEDIUMdocker/generate_kafka_pr_template.py69# This file is generated via https://github.com/apache/kafka/blob/{file_commit(os.path.join(current_dir, self))}/docker/COMMENT
MEDIUMtests/setup.cfg18# This file defines naming convention and root search directory for autodiscovery ofCOMMENT
MEDIUMtests/kafkatest/tests/produce_consume_validate.py22 """This class provides a shared template for tests which follow the common pattern of:STRING
MEDIUMtests/kafkatest/tests/end_to_end.py27 """This class provides a shared template for tests which follow the common pattern of:STRING
MEDIUMtests/kafkatest/tests/core/snapshot_test.py131 # Create a new topicCOMMENT
MEDIUMtests/kafkatest/tests/core/snapshot_test.py197 # Create a topic where the affected broker must be the leaderCOMMENT
MEDIUM…kafkatest/tests/streams/templates/log4j2_template.yaml16# Define the root logger with appender fileCOMMENT
MEDIUMtests/kafkatest/services/streams.py221 # Create a randomized state directory path to prevent test interferenceCOMMENT
MEDIUMtests/kafkatest/services/trogdor/trogdor.py133 # Create the configuration file on the node.COMMENT
Synthetic Comment Markers2 hits · 15 pts
SeverityFileLineSnippetContext
HIGH…g/apache/kafka/connect/runtime/WorkerSinkTaskTest.java278 // Offset commit as requested when pausing; No records returned by consumer.poll()COMMENT
HIGH…g/apache/kafka/connect/runtime/WorkerSinkTaskTest.java322 // Offset commit as requested when pausing; No records returned by consumer.poll()COMMENT
AI Structural Patterns13 hits · 12 pts
SeverityFileLineSnippetContext
LOWtests/kafkatest/benchmarks/core/benchmark_test.py73CODE
LOWtests/kafkatest/benchmarks/core/benchmark_test.py168CODE
LOWtests/kafkatest/benchmarks/core/benchmark_test.py203CODE
LOWtests/kafkatest/benchmarks/core/benchmark_test.py319CODE
LOWtests/kafkatest/benchmarks/core/benchmark_test.py362CODE
LOWtests/kafkatest/services/console_consumer.py61CODE
LOWtests/kafkatest/services/verifiable_consumer.py44CODE
LOWtests/kafkatest/services/verifiable_consumer.py239CODE
LOWtests/kafkatest/services/console_share_consumer.py60CODE
LOWtests/kafkatest/services/verifiable_producer.py58CODE
LOWtests/kafkatest/services/verifiable_share_consumer.py120CODE
LOWtests/kafkatest/services/security/security_config.py147CODE
LOWtests/kafkatest/services/kafka/kafka.py194CODE
Fake / Example Data9 hits · 9 pts
SeverityFileLineSnippetContext
LOW…er/internals/OAuthBearerClientInitialResponseTest.java102 assertEquals("user@example.com", response.authorizationId());CODE
LOW…er/internals/OAuthBearerClientInitialResponseTest.java114 assertEquals("user@example.com", response.authorizationId());CODE
LOW…er/internals/OAuthBearerClientInitialResponseTest.java125 assertEquals("user@example.com", response.authorizationId());CODE
LOW…rocessor/internals/GlobalProcessorContextImplTest.java68 when(streamsConfig.getString(StreamsConfig.APPLICATION_ID_CONFIG)).thenReturn("dummy-id");CODE
LOW…/state/internals/LeftOrRightValueDeserializerTest.java44 when(mockDeserializer.deserialize(topic, headers, value.getBytes())).thenReturn("dummy-value");CODE
LOWrelease/test_gh_actions.py344 _fn_namespace['preferences'].get = MagicMock(return_value="fake-token")CODE
LOWrelease/test_gh_actions.py347 _fn_namespace['prompt'] = MagicMock(return_value="fake-token")CODE
LOW…pache/kafka/connect/file/FileStreamSourceTaskTest.java132 "Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit...\n".getByCODE
LOW…pache/kafka/connect/file/FileStreamSourceTaskTest.java132 "Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit...\n".getByCODE
Redundant / Tautological Comments5 hits · 8 pts
SeverityFileLineSnippetContext
LOWtests/kafkatest/tests/core/snapshot_test.py117 # Check if the first log segment is cleaned upCOMMENT
LOW.github/workflows/build.yml167 # Check if there are any empty files under ./site-docs/generated, If any empty files are found, print an errorCOMMENT
LOW⚡.github/scripts/develocity_reports.py130 # Check if running in GitHub ActionsCOMMENT
LOW.github/scripts/develocity_reports.py728 # Check if there's a significant increase in flakinessCOMMENT
LOW.github/scripts/develocity_reports.py766 # Check if the test meets clearing criteria at class levelCOMMENT
Slop Phrases3 hits · 8 pts
SeverityFileLineSnippetContext
MEDIUM…a/org/apache/kafka/clients/producer/KafkaProducer.java115 * Here is a simple example of using the producer to send records with strings containing sequential numbers as the key/COMMENT
MEDIUM…rc/main/java/org/apache/kafka/clients/admin/Admin.java78 * Here is a simple example of using an Admin client instance to create a new topic:COMMENT
LOW.github/workflows/build.yml186 # If we change these, make sure to adjust ci-complete.ymlCOMMENT
AI Response Leakage1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHdocs/streams/developer-guide/dsl-api.md1938Streams and tables can also be joined. Many stream processing applications in practice are coded as streaming joins. ForCODE
Modern Structural Boilerplate2 hits · 2 pts
SeverityFileLineSnippetContext
LOW.github/scripts/develocity_reports.py31logger = logging.getLogger(__name__)CODE
LOWcommitter-tools/refresh_collaborators.py106def update_local_yaml_content(yaml_file_path: str, collaborators: List[str]) -> None:CODE
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOW…streams/processor/internals/TaskExecutionMetadata.java38 // TODO: implement exponential backoff, for now we just wait 5sCOMMENT