Skip to content

Avoid pulsar-client-api dependency on txn-common#7511

Merged
merlimat merged 3 commits intoapache:masterfrom
merlimat:txn-dep
Jul 13, 2020
Merged

Avoid pulsar-client-api dependency on txn-common#7511
merlimat merged 3 commits intoapache:masterfrom
merlimat:txn-dep

Conversation

@merlimat
Copy link
Contributor

@merlimat merlimat commented Jul 11, 2020

Motivation

pulsar-client-api is meant to be free of dependencies. This is to ensure that:

  1. this module can be left out of shading
  2. we're not exposing in API symbols that are not meant to be exposed

Right now, the TxnID class is defined on transactions-common, though since it's exposed in API, it should be part of pulsar-client-api.

The current dependency cycle is bringing pulsar-client-api -> transaction-common -> protobuf-java-util -> gson.

@merlimat merlimat added this to the 2.7.0 milestone Jul 11, 2020
@merlimat merlimat self-assigned this Jul 11, 2020
@merlimat merlimat merged commit 17ae233 into apache:master Jul 13, 2020
@merlimat merlimat deleted the txn-dep branch July 13, 2020 20:25
huangdx0726 pushed a commit to huangdx0726/pulsar that referenced this pull request Aug 24, 2020
* Avoid pulsar-client-api dependency on txn-common

* Fixed dep in pulsar-client-original

* Fixed missing guava dep on jdbc-core
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants