Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[KYUUBI-SHADED #28] Step 1/2: Overwrite SnapStream to remove deps of snappy in ZK client 3.6 #28

Closed
wants to merge 2 commits into from

Conversation

pan3793
Copy link
Member

@pan3793 pan3793 commented Dec 4, 2023

Why are the changes needed?

This PR aims to tackle #10 with another approach.

Though we can add the snappy deps into ZK client 3.6 to address it, as the snappy has native libs that are not able to be relocated, thus there will be potential conflict issues, this approach also increases the size of kyuubi-relocated-zookeeper-3.6.

Actually, org.apache.zookeeper.server.persistence.SnapStream is only used on the server side, in terms of Kyuubi's usage, the embedded ZK feature is mostly for testing purposes, overwriting the SnapStream to drop the Snappy support should be OK.

To gain a clear change history, I purpose to split the change into 2 PRs,

  1. copy org.apache.zookeeper.server.persistence.SnapStream from Apache Zookeeper v3.6.4 as-is
  2. remove the Snappy support (simply throw UnsupportedOperationException) in org.apache.zookeeper.server.persistence.SnapStream and snappy deps

How was this patch tested?

  • Add some test cases that check the changes thoroughly including negative and positive cases if possible

  • Add screenshots for manual tests if appropriate

  • Run test locally before make a pull request

@pan3793 pan3793 requested review from cxzl25 and cfmcgrady December 4, 2023 07:32
@pan3793 pan3793 closed this in 06eb6e7 Dec 4, 2023
pan3793 added a commit to pan3793/kyuubi-shaded that referenced this pull request Dec 4, 2023
@pan3793 pan3793 changed the title Step 1/2: Overwrite SnapStream to remove deps of snappy in ZK client 3.6 [KYUUBI-SHADED #28] Step 1/2: Overwrite SnapStream to remove deps of snappy in ZK client 3.6 Dec 4, 2023
pan3793 added a commit that referenced this pull request Dec 4, 2023
…m to remove deps of snappy in ZK client 3.6

### _Why are the changes needed?_

This is step 2 of #28

> 2. remove the Snappy support (simply throw `UnsupportedOperationException`) in `org.apache.zookeeper.server.persistence.SnapStream` and snappy deps

### _How was this patch tested?_
- [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible

- [ ] Add screenshots for manual tests if appropriate

- [ ] [Run test](https://kyuubi.readthedocs.io/en/master/develop_tools/testing.html#running-tests) locally before make a pull request

- [x] Verified through apache/kyuubi#5783

Closes #29 from pan3793/snappy-2.

a109d1c [Cheng Pan] [KYUUBI-SHADED #28] Step 1/2: Overwrite SnapStream to remove deps of snappy in ZK client 3.6

Authored-by: Cheng Pan <chengpan@apache.org>
Signed-off-by: Cheng Pan <chengpan@apache.org>
@pan3793 pan3793 deleted the snappy-1 branch December 4, 2023 10:20
pan3793 added a commit that referenced this pull request Dec 4, 2023
…snappy in ZK client 3.6

### _Why are the changes needed?_

This is step 2 of #28

> 2. remove the Snappy support (simply throw `UnsupportedOperationException`) in `org.apache.zookeeper.server.persistence.SnapStream` and snappy deps

### _How was this patch tested?_
- [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible

- [ ] Add screenshots for manual tests if appropriate

- [ ] [Run test](https://kyuubi.readthedocs.io/en/master/develop_tools/testing.html#running-tests) locally before make a pull request

- [x] Verified through apache/kyuubi#5783

Closes #29 from pan3793/snappy-2.

a109d1c [Cheng Pan] [KYUUBI-SHADED #28] Step 1/2: Overwrite SnapStream to remove deps of snappy in ZK client 3.6

Authored-by: Cheng Pan <chengpan@apache.org>
Signed-off-by: Cheng Pan <chengpan@apache.org>
@pan3793 pan3793 self-assigned this Dec 8, 2023
@pan3793 pan3793 added this to the 0.2.0 milestone Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants