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 2022/06/09 05:42:30 UTC
[GitHub] [pulsar] wuxuanqicn commented on issue #15896: Flaky-test: PulsarLedgerIdGeneratorTest.testGenerateLedgerId
wuxuanqicn commented on issue #15896:
URL: https://github.com/apache/pulsar/issues/15896#issuecomment-1150694056
On my local environment, RocksdbMetadataStore.java is the cause, it is transaction lock timout with default value 1 second, and 60 seconds don't work on my environment either.
```
2022-06-09T10:23:45,794 - ERROR - [pool-10-thread-1:PulsarLedgerIdGenerator@68] - Error generating ledger id: org.apache.pulsar.metadata.api.MetadataStoreException: org.rocksdb.RocksDBException: TimedOut(LockTimeout)
```
there are two plans i have,
1. make method RocksdbMetadataStore#storePut synchronized, since Rocksdb as metadata store is mostly used at light-weight environment with light workload
2. make RocksdbMetadataStore extend AbstractBatchedMetadataStore to avoid multi-thread operation
https://github.com/apache/pulsar/blob/c4fcaa6824095028f1d4ba829baa2ff8b3870107/pulsar-metadata/src/main/java/org/apache/pulsar/metadata/impl/RocksdbMetadataStore.java#L513-L526
@Jason918 since you introduced this class at #12776 , what's your opinon?
--
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