poorbarcode opened a new pull request, #23719:
URL: https://github.com/apache/pulsar/pull/23719
### Motivation
```java
@FieldContext(
category = CATEGORY_SERVER,
dynamic = true,
doc = "The position that replication task start at, it can be set to
earliest or latest (default).")
private String replicationStartAt = "latest";
```
The value of the config named `replicationStartAt` are `earliest` or
`latest`, but both implementation and test used `MessageId.earliest.toString()`
that value is `-1:-1:-1`( so the test works as expected).
Therefore, setting `replicationStartAt` to `earliest` does not work.
### Modifications
- Fix the incorrect implementation and keep compatibility with the previous
version.
### Documentation
<!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. -->
- [ ] `doc` <!-- Your PR contains doc changes. -->
- [ ] `doc-required` <!-- Your PR changes impact docs and you will update
later -->
- [x] `doc-not-needed` <!-- Your PR changes do not impact docs -->
- [ ] `doc-complete` <!-- Docs have been already added -->
### Matching PR in forked repository
PR in forked repository: x
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]