Skip to content

Commit 83d3c3c

Browse files
committed
merge master and resolve conflicts
2 parents bda4d40 + 7ab9b4c commit 83d3c3c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+3818
-777
lines changed

CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,30 @@
2323

2424
All notable changes to this project will be documented in this file.
2525

26+
[0.7.0] 2021-10-31
27+
28+
## Feature
29+
* Encryption support for producer, see [PR-560](https://github.com/apache/pulsar-client-go/pull/560)
30+
* Decrytion support for consumer, see [PR-612](https://github.com/apache/pulsar-client-go/pull/612)
31+
* User-defined metric cardinality, see [PR-604](https://github.com/apache/pulsar-client-go/pull/604)
32+
* Better support for Azure AD OAuth 2.0, see [PR-630](https://github.com/apache/pulsar-client-go/pull/630), [PR-633](https://github.com/apache/pulsar-client-go/pull/633), [PR-634](https://github.com/apache/pulsar-client-go/pull/634)
33+
* Removed testing for go versions 1.11 and 1.12, see [PR-632](https://github.com/apache/pulsar-client-go/pull/632)
34+
* Add epoch to create producer to prevent a duplicate producer when broker is not available., see [PR-582] (https://github.com/apache/pulsar-client-go/pull/582)
35+
36+
## Improve
37+
* Fix batch size limit validation, see [PR-528](https://github.com/apache/pulsar-client-go/pull/528)
38+
* Fix logic of command for sendError, see [PR-622](https://github.com/apache/pulsar-client-go/pull/622)
39+
* Drain connection requests channel without closing, see [PR-645](https://github.com/apache/pulsar-client-go/pull/645)
40+
* Fix ConsumersOpened counter not incremented when use multitopic or regexp consumer, see [PR-619](https://github.com/apache/pulsar-client-go/pull/619)
41+
* Fix reconnection logic when topic is deleted, see [PR-627](https://github.com/apache/pulsar-client-go/pull/627)
42+
* Fix panic when scale down partitions, see [PR-601](https://github.com/apache/pulsar-client-go/pull/601)
43+
* Fix missing metrics for topics by registration of existing collector, see [PR-600](https://github.com/apache/pulsar-client-go/pull/600)
44+
* Fix producer panic by oldProducers, see [PR-598](https://github.com/apache/pulsar-client-go/pull/598)
45+
* Fail pending messages when topic is terminated, see [PR-588](https://github.com/apache/pulsar-client-go/pull/588)
46+
* Fix handle send error panic, see [PR-576](https://github.com/apache/pulsar-client-go/pull/576)
47+
48+
49+
2650
[0.6.0] 2021-07-21
2751

2852
## Feature

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ CGo based library.
3636

3737
## Requirements
3838

39-
- Go 1.11+
39+
- Go 1.13+
4040

4141
## Status
4242

@@ -72,8 +72,9 @@ defer producer.Close()
7272

7373
if err != nil {
7474
fmt.Println("Failed to publish message", err)
75+
} else {
76+
fmt.Println("Published message")
7577
}
76-
fmt.Println("Published message")
7778
```
7879

7980
Create a Consumer:

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
// This version number refers to the currently released version number
22
// Please fix the version when release.
3-
v0.6.0
3+
v0.7.0

docs/release-process.md

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ In general, you need to perform the following steps:
1212
8. Update the release note.
1313
9. Announce the release.
1414

15+
### Requirements
16+
- [GPG keys to sign release artifacts](https://github.com/apache/pulsar/wiki/Create-GPG-keys-to-sign-release-artifacts)
17+
1518
## Steps in detail
1619

1720
1. Create a release branch.
@@ -65,9 +68,20 @@ $ gpg -b --armor apache-pulsar-client-go-0.X.0-src.tar.gz
6568
$ shasum -a 512 apache-pulsar-client-go-0.X.0-src.tar.gz > apache-pulsar-client-go-0.X.0-src.tar.gz.sha512
6669
```
6770

71+
Checkout repo for uploading artifacts
72+
```
73+
$ svn co https://dist.apache.org/repos/dist/dev/pulsar pulsar-dist-dev
74+
$ cd pulsar-dist-dev
6875
```
69-
$ mkdir pulsar-client-go-0.X.0-candidate-1
76+
77+
Create a candidate directory at the root repo
78+
```
79+
$ svn mkdir pulsar-client-go-0.X.0-candidate-1
7080
$ cd pulsar-client-go-0.X.0-candidate-1
81+
```
82+
83+
Copy the signed artifacts into the candiate directory and commit
84+
```
7185
$ cp ../apache-pulsar-client-go-0.X.0-* .
7286
$ svn add *
7387
$ svn ci -m 'Staging artifacts and signature for Pulsar Client Go release 0.X.0-candidate-1'
@@ -110,7 +124,7 @@ README.md to build and run the pulsar-client-go.
110124
The vote will be open for at least 72 hours. It is adopted by majority approval, with at least 3 PMC affirmative votes.
111125
112126
Source file:
113-
https://dist.apache.org/repos/dist/dev/pulsar/pulsar-client-go/apache-pulsar-client-go-0.X.0-src.tar.gz
127+
https://dist.apache.org/repos/dist/dev/pulsar/pulsar-client-go-0.X.0-candidate-1/apache-pulsar-client-go-0.X.0-src.tar.gz
114128
115129
The tag to be voted upon:
116130
v0.X.0
@@ -142,8 +156,9 @@ Remove the old releases (if any). We only need the latest release there, older r
142156
```
143157

144158
# Get the list of releases
145-
146-
svn ls https://dist.apache.org/repos/dist/release/pulsar/pulsar-client-go/
159+
```
160+
svn ls https://dist.apache.org/repos/dist/release/pulsar | grep client-go
161+
```
147162

148163
# Delete each release (except for the last one)
149164

go.mod

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,27 @@ module github.com/apache/pulsar-client-go
33
go 1.13
44

55
require (
6-
github.com/AthenZ/athenz v1.10.15
6+
github.com/AthenZ/athenz v1.10.39
77
github.com/DataDog/zstd v1.4.6-0.20210211175136-c6db21d202f4
88
github.com/apache/pulsar-client-go/oauth2 v0.0.0-20201120111947-b8bd55bc02bd
99
github.com/beefsack/go-rate v0.0.0-20180408011153-efa7637bb9b6
1010
github.com/bmizerany/perks v0.0.0-20141205001514-d9a9656a3a4b
1111
github.com/davecgh/go-spew v1.1.1
1212
github.com/gogo/protobuf v1.3.2
13-
github.com/golang/protobuf v1.4.2
13+
github.com/golang/protobuf v1.5.2
1414
github.com/google/uuid v1.1.2
15-
github.com/inconshreveable/mousetrap v1.0.0 // indirect
1615
github.com/klauspost/compress v1.10.8
1716
github.com/linkedin/goavro/v2 v2.9.8
1817
github.com/opentracing/opentracing-go v1.2.0
1918
github.com/pierrec/lz4 v2.0.5+incompatible
2019
github.com/pkg/errors v0.9.1
21-
github.com/prometheus/client_golang v1.7.1
22-
github.com/sirupsen/logrus v1.4.2
20+
github.com/prometheus/client_golang v1.11.0
21+
github.com/sirupsen/logrus v1.6.0
2322
github.com/spaolacci/murmur3 v1.1.0
24-
github.com/spf13/cobra v0.0.3
25-
github.com/spf13/pflag v1.0.3 // indirect
26-
github.com/stretchr/testify v1.5.1
23+
github.com/spf13/cobra v1.2.1
24+
github.com/stretchr/testify v1.7.0
2725
go.uber.org/atomic v1.7.0
28-
golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d
26+
golang.org/x/oauth2 v0.0.0-20210402161424-2e8d93401602
2927
)
3028

3129
replace github.com/apache/pulsar-client-go/oauth2 => ./oauth2

0 commit comments

Comments
 (0)