You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "crossoverJie (via GitHub)" <gi...@apache.org> on 2023/12/20 11:10:12 UTC
[I] [Bug] After upgrading to 3.0, some metrics were lost in bk. [pulsar]
crossoverJie opened a new issue, #21766:
URL: https://github.com/apache/pulsar/issues/21766
### Search before asking
- [X] I searched in the [issues](https://github.com/apache/pulsar/issues) and found nothing similar.
### Version
3.0.2
### Minimal reproduce step


Details:
- bookkeeper_server_ADD_ENTRY_REQUEST
- bookkeeper_server_ADD_ENTRY_BLOCKED
- bookkeeper_server_READ_ENTRY_BLOCKED
- bookie_journal_JOURNAL_CB_QUEUE_SIZE
- bookie_read_cache_hits_count
- bookie_read_cache_misses_count
- bookie_DELETED_LEDGER_COUNT
- bookie_MAJOR_COMPACTION_COUNT
### What did you expect to see?
The metrics is normal.
### What did you see instead?
Miss some metrics.
### Anything else?
When I downgraded the `bookkeeper` version to 2.11.2, the version of bookkeepe used was `4.15.4`, and everything was normal.
However, when I used BookKeeper `4.16.3` locally with Pulsar 3.x, I could not reproduce the issue.
Whether using source code or Docker: `apache/bookkeeper:4.16.3`, I was unable to reproduce it.
This is my test code:
```java
@SneakyThrows
@Test
public void testBk2() {
String connectionString = "127.0.0.1:2181"; // For a single-node, local ZooKeeper cluster
ClientConfiguration config = new ClientConfiguration();
config.setZkServers(connectionString);
config.setAddEntryTimeout(2000);
BookKeeper bookKeeper = new BookKeeper(config);
byte[] password = "some-password".getBytes();
bookKeeper.asyncCreateLedger(1, 1,
1, BookKeeper.DigestType.MAC, password, new AsyncCallback.CreateCallback() {
@SneakyThrows
@Override
public void createComplete(int rc, LedgerHandle lh, Object ctx) {
log.info("create complete: {}", rc);
for (int i = 0; i < 100000; i++) {
lh.asyncAddEntry("some-data".getBytes(), new AsyncCallback.AddCallback() {
@Override
public void addComplete(int rc, LedgerHandle lh, long entryId, Object ctx) {
log.info("rc: {}, entryId: {}", rc, entryId);
}
}, null);
TimeUnit.SECONDS.sleep(1);
}
}
}, null, null);
TimeUnit.SECONDS.sleep(100);
}
}
```

### Are you willing to submit a PR?
- [ ] I'm willing to submit a PR!
--
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.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] After upgrading to 3.0, some metrics were lost in bk. [pulsar]
Posted by "crossoverJie (via GitHub)" <gi...@apache.org>.
crossoverJie commented on issue #21766:
URL: https://github.com/apache/pulsar/issues/21766#issuecomment-1909929072
@hangc0276 Thank you for your reply.
> When using V2 protocol, the bookkeeper_server_ADD_ENTRY_REQUEST and bookkeeper_server_READ_ENTRY_REQUEST stats do not work, and you can use bookkeeper_server_ADD_ENTRY and bookkeeper_server_READ_ENTRY instead. https://github.com/apache/bookkeeper/pull/3837

But `bookkeeper_server_READ_ENTRY_REQUEST` is still working.
> For the rest metrics, it is not expected. Could you double confirm if they are missed after upgraded the BookKeeper to 4.16.0+?

Yes, we have already upgraded to `4.16.3`.
--
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
Re: [I] [Bug] After upgrading to 3.0, some metrics were lost in bk. [pulsar]
Posted by "hangc0276 (via GitHub)" <gi...@apache.org>.
hangc0276 commented on issue #21766:
URL: https://github.com/apache/pulsar/issues/21766#issuecomment-1903439335
@crossoverJie Thanks for raising this issue.
For `bookkeeper_server_ADD_ENTRY_REQUEST` and `bookkeeper_server_READ_ENTRY_REQUEST` metric, please check the 4.16.0 release note.
https://github.com/apache/bookkeeper/releases/tag/release-4.16.0
>bookkeeper_server_ADD_ENTRY_BLOCKED
bookkeeper_server_READ_ENTRY_BLOCKED
bookie_journal_JOURNAL_CB_QUEUE_SIZE
bookie_read_cache_hits_count
bookie_read_cache_misses_count
bookie_DELETED_LEDGER_COUNT
bookie_MAJOR_COMPACTION_COUNT
For the rest metrics, it is not expected. Could you double confirm if they are missed after upgraded the BookKeeper to 4.16.0+?
--
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
Re: [I] [Bug] After upgrading to 3.0, some metrics were lost in bk. [pulsar]
Posted by "crossoverJie (via GitHub)" <gi...@apache.org>.
crossoverJie commented on issue #21766:
URL: https://github.com/apache/pulsar/issues/21766#issuecomment-1868678303
@zymap @hangc0276 Please take a look.
--
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