kafka_neu-1778570057504.zip-extract/kafka-4.2.0-src/tests/kafkatest/services/kafka/consumer_group.py

Path
kafka_neu-1778570057504.zip-extract/kafka-4.2.0-src/tests/kafkatest/services/kafka/consumer_group.py
Status
scanned
Type
file
Name
consumer_group.py
Extension
.py
Programming language
Python
Mime type
text/x-script.python
File type
Python script, ASCII text executable
Tag

      
    
Rootfs path

      
    
Size
1805 (1.8 KB)
MD5
10f5e6c2f54fb27b878fc8e9dd455cb8
SHA1
e9bf3af3a4ec690f1c813a177dea6dec5afae2a9
SHA256
7bf8cdb7c39870ca6e8bf375736d66eda6ea8795ff4e1bf6ada36bab07a351b0
SHA512

      
    
SHA1_git
e94bd6382d2653f5ac814bac0b189f7c74cbde99
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
consumer_group.py | 1.8 KB |

# Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use this file except in compliance with # the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # These are the group protocols we support. Most tests that use the new group coordinator will # (eventually) be upgraded to test both of these consumer groups. classic_group_protocol = 'classic' consumer_group_protocol = 'consumer' all_group_protocols = [classic_group_protocol, consumer_group_protocol] # These are the remote assignors used by the new group coordinator. range_remote_assignor = 'range' uniform_remote_assignor = 'uniform' all_remote_assignors = [range_remote_assignor, uniform_remote_assignor] def is_consumer_group_protocol_enabled(group_protocol): """Check if the KIP-848 consumer group protocol is enabled.""" return group_protocol is not None and group_protocol.lower() == consumer_group_protocol def maybe_set_group_protocol(group_protocol, config=None): """Maybe include the KIP-848 group.protocol configuration if it's not None.""" if config is None: config = {} if group_protocol is not None: config["group.protocol"] = group_protocol return config
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
45.59
Copyrights

      
    
Holders

      
    
Authors

      
    
License detections License expression License expression SPDX
apache_2_0-4bde3f57-78aa-4201-96bf-531cba09e7de apache-2.0 Apache-2.0
URL Start line End line
http://www.apache.org/licenses/LICENSE-2.0 8 8
Package URL License Primary language
pkg:pypi/kafkatest@4.2.0 apache-2.0 Python