You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2021/07/29 03:36:56 UTC
[GitHub] [pulsar] leiless edited a comment on issue #11491: Pulsar Java 2.7.2 admin API topics().getLastMessageId() return 500 HTTP status code
leiless edited a comment on issue #11491:
URL: https://github.com/apache/pulsar/issues/11491#issuecomment-888772225
When I issued a `podman restart`, it seems the 500 error still there:
```
$ podman restart pulsar-cdc
cae23894973c94a6e33b2be0a38c259dc6aeb2934314ca8d7537d2a85cf0ae35
$ pulsar-admin topics last-message-id persistent://foobar/mysql-cdc/binlog
Warning: Nashorn engine is planned to be removed from a future JDK release
{
"ledgerId" : 4716,
"entryId" : -1,
"partitionIndex" : -1
}
03:18:02.046 [pulsar-web-63-14] INFO org.eclipse.jetty.server.RequestLog - 10.0.2.100 - - [29/Jul/2021:03:18:02 +0000] "GET /admin/v2/persistent/foobar/mysql-cdc/binlog/lastMessageId HTTP/1.1" 200 50 "-" "Pulsar-Java-v2.7.2" 2
$ pulsar-admin topics get-message-by-id persistent://foobar/mysql-cdc/binlog -l 4716 -e -1
Warning: Nashorn engine is planned to be removed from a future JDK release
HTTP 500 Internal Server Error
Reason: HTTP 500 Internal Server Errorjava.io.ByteArrayInputStream@60002142
03:25:23.103 [pulsar-web-63-14] ERROR org.apache.bookkeeper.client.LedgerHandle - IncorrectParameterException on ledgerId:4716 firstEntry:-1 lastEntry:-1
03:25:23.105 [BookKeeperClientWorker-OrderedExecutor-0-0] INFO org.eclipse.jetty.server.RequestLog - 10.0.2.100 - - [29/Jul/2021:03:25:23 +0000] "GET /admin/v2/persistent/foobar/mysql-cdc/binlog/ledger/4716/entry/-1 HTTP/1.1" 500 183 "-" "Pulsar-Java-v2.7.2" 3
```
I previously wrote some data into the `persistent://foobar/mysql-cdc/binlog` and I can confirm that I never delete/flush the messages in-between on my own.
I don't know if it's something related to the **message retention policy**, since I call `getTopicLastMessage()` in my App, I got an empty result(it meaning that no last message exists).
```
pulsar-admin tenants create foobar
pulsar-admin namespaces create foobar/mysql-cdc
```
The binlog topic(i.e. `persistent://foobar/mysql-cdc/binlog`) was created on-demand
--
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: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org