Open sijie opened 3 years ago
Original Issue: apache/pulsar-client-go#553
Describe the bug A clear and concise description of what the bug is.
To Reproduce
package main import ( "context" "fmt" "log" "github.com/apache/pulsar-client-go/pulsar" ) func main() { client, err := pulsar.NewClient(pulsar.ClientOptions{ URL: "pulsar://localhost:6000", ListenerName: "custom:xxxx/vpc-xxxxxx/subnet-xxxxxx", Authentication: pulsar.NewAuthenticationToken("eyJrZxxxxxxxxxxx"), }) if err != nil { log.Fatal(err) } defer client.Close() reader, err := client.CreateReader(pulsar.ReaderOptions{ Topic: "persistent://test-tenant/test-ns/test-topic", StartMessageID: pulsar.EarliestMessageID(), }) if err != nil { log.Fatal(err) } defer reader.Close() for reader.HasNext() { msg, err := reader.Next(context.Background()) if err != nil { log.Fatal(err) } fmt.Printf("Received message msgId: %#v -- content: '%s'\n", msg.ID(), string(msg.Payload())) } }
Expected behavior We can create the reader successfully
Screenshots
Desktop (please complete the following information):
But this topic already exists, it is normal to use producer or consumer
Original Issue: apache/pulsar-client-go#553
Describe the bug A clear and concise description of what the bug is.
To Reproduce
Expected behavior We can create the reader successfully
Screenshots
Desktop (please complete the following information):
But this topic already exists, it is normal to use producer or consumer