Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

[test] Add kafka admin api unit test #1793

Conversation

Demogorgon314
Copy link
Member

Motivation

Please don't use the admin APIs, and it is hard to support in KoP.

Method Is Support
createAcls Don't support, use pulsar admin to manage acl.
deleteAcls Don't support, use pulsar admin to manage acl.
describeAcls Don't support, use pulsar admin to manage acl.
listAcls Don't support, use pulsar admin to manage acl.
electLeaders Don't support, it depends on the pulsar.
describeUserScramCredentials Don't support
alterUserScramCredentials Don't support
alterPartitionReassignments Don't support
listPartitionReassignments Don't support
describeDelegationToken Don't support
createDelegationToken Don't support
alterReplicaLogDirs Don't support
describeReplicaLogDirs Don't support
describeLogDirs Don't support

Can be supported in feature.

Method How to support.
alterClientQuotas Can use pulsar admin handle it.
describeClientQuotas Can get it from pulsar admin.
deleteConsumerGroupOffsets Can handle by group coordinator.
alterConfigs Maybe can store in the metadata store.
incrementalAlterConfigs Maybe can store in the metadata store.

Modifications

  • Add kafka admin api unit test.

Documentation

Check the box below.

Need to update docs?

  • doc-required

    (If you need help on updating docs, create a doc issue)

  • no-need-doc

    (Please explain why)

  • doc

    (If this PR contains doc changes)

@Demogorgon314 Demogorgon314 self-assigned this Apr 7, 2023
@github-actions github-actions bot added the no-need-doc This pr does not need any document label Apr 7, 2023
eolivelli
eolivelli previously approved these changes Apr 7, 2023
Copy link
Contributor

@eolivelli eolivelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@codecov
Copy link

codecov bot commented Apr 7, 2023

Codecov Report

Merging #1793 (53d58f2) into master (92285f1) will increase coverage by 0.00%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #1793   +/-   ##
=========================================
  Coverage     16.02%   16.03%           
  Complexity      626      626           
=========================================
  Files           165      165           
  Lines         12336    12333    -3     
  Branches       1128     1128           
=========================================
  Hits           1977     1977           
+ Misses        10196    10193    -3     
  Partials        163      163           
Impacted Files Coverage Δ
...ive/pulsar/handlers/kop/SchemaRegistryManager.java 0.00% <0.00%> (ø)

@BewareMyPower BewareMyPower merged commit f0eda8e into streamnative:master Apr 18, 2023
5 of 6 checks passed
@Demogorgon314 Demogorgon314 deleted the Demogorgon314/add-kafka-admin-unit-test branch April 18, 2023 11:57
BewareMyPower pushed a commit that referenced this pull request Apr 24, 2023
### Motivation

Please don't use the admin APIs, and it is hard to support in KoP.

| Method | Is Support |

|------------------------------|-------------------------------------------------|
| createAcls | Don't support, use pulsar admin to manage acl. |
| deleteAcls | Don't support, use pulsar admin to manage acl. |
| describeAcls | Don't support, use pulsar admin to manage acl. |
| listAcls | Don't support, use pulsar admin to manage acl. |
| electLeaders | Don't support, it depends on the pulsar. |
| describeUserScramCredentials | Don't support |
| alterUserScramCredentials | Don't support |
| alterPartitionReassignments | Don't support |
| listPartitionReassignments | Don't support |
| describeDelegationToken | Don't support |
| createDelegationToken | Don't support |
| alterReplicaLogDirs | Don't support |
| describeReplicaLogDirs | Don't support |
| describeLogDirs | Don't support |

Can be supported in feature.

| Method | How to support. |

|------------------------------|------------------------------------------------|
| alterClientQuotas | Can use pulsar admin handle it. |
| describeClientQuotas | Can get it from pulsar admin. |
| deleteConsumerGroupOffsets | Can handle by group coordinator. |
| alterConfigs | Maybe can store in the metadata store. |
| incrementalAlterConfigs | Maybe can store in the metadata store. |

### Modifications

* Add kafka admin api unit test.

### Documentation

Check the box below.

Need to update docs?

- [ ] `doc-required`

  (If you need help on updating docs, create a doc issue)

- [x] `no-need-doc`

  (Please explain why)

- [ ] `doc`

  (If this PR contains doc changes)

(cherry picked from commit f0eda8e)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants