-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[improve][txn] PIP-160: Transaction log store enables the batch feature #16685
Conversation
pulsar-broker/src/test/java/org/apache/pulsar/broker/stats/ManagedLedgerMetricsTest.java
Outdated
Show resolved
Hide resolved
...src/main/java/org/apache/pulsar/transaction/coordinator/impl/MLTransactionMetadataStore.java
Outdated
Show resolved
Hide resolved
...src/main/java/org/apache/pulsar/transaction/coordinator/impl/MLTransactionMetadataStore.java
Outdated
Show resolved
Hide resolved
...src/main/java/org/apache/pulsar/transaction/coordinator/impl/MLTransactionMetadataStore.java
Outdated
Show resolved
Hide resolved
...nator/src/main/java/org/apache/pulsar/transaction/coordinator/impl/MLTransactionLogImpl.java
Outdated
Show resolved
Hide resolved
...nator/src/main/java/org/apache/pulsar/transaction/coordinator/impl/MLTransactionLogImpl.java
Outdated
Show resolved
Hide resolved
...nator/src/main/java/org/apache/pulsar/transaction/coordinator/impl/MLTransactionLogImpl.java
Show resolved
Hide resolved
...nator/src/main/java/org/apache/pulsar/transaction/coordinator/impl/MLTransactionLogImpl.java
Outdated
Show resolved
Hide resolved
...nator/src/main/java/org/apache/pulsar/transaction/coordinator/impl/MLTransactionLogImpl.java
Show resolved
Hide resolved
...src/main/java/org/apache/pulsar/transaction/coordinator/impl/TxnLogBufferedWriterConfig.java
Show resolved
Hide resolved
MLTransactionLogImpl mlTransactionLog = new MLTransactionLogImpl(TransactionCoordinatorID.get(0), | ||
pulsar.getManagedLedgerFactory(), managedLedgerConfig, txnLogBufferedWriterConfig, | ||
scheduledExecutorService); | ||
mlTransactionLog.initialize().join(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's better to add a timeout on the method or here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea. Already fixed
@@ -55,12 +60,19 @@ | |||
|
|||
public class MLTransactionMetadataStoreTest extends MockedBookKeeperTestCase { | |||
|
|||
private ScheduledExecutorService scheduledExecutorService = Executors.newScheduledThreadPool(3); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- It's better to add a single test that adds batch transaction log and then can open a new cursor for the transaction log managedLedger and read the batch log. then the TransactionCoordinator can recover successfully
- add a test for the log delete
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Already fixed, it is MLTransactionLogImplTest
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/BrokerService.java
Outdated
Show resolved
Hide resolved
...nator/src/main/java/org/apache/pulsar/transaction/coordinator/impl/MLTransactionLogImpl.java
Outdated
Show resolved
Hide resolved
...nator/src/main/java/org/apache/pulsar/transaction/coordinator/impl/MLTransactionLogImpl.java
Show resolved
Hide resolved
...nator/src/main/java/org/apache/pulsar/transaction/coordinator/impl/MLTransactionLogImpl.java
Show resolved
Hide resolved
...nator/src/main/java/org/apache/pulsar/transaction/coordinator/impl/MLTransactionLogImpl.java
Show resolved
Hide resolved
...nator/src/main/java/org/apache/pulsar/transaction/coordinator/impl/MLTransactionLogImpl.java
Outdated
Show resolved
Hide resolved
...tor/src/main/java/org/apache/pulsar/transaction/coordinator/impl/TxnBatchedPositionImpl.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, just left some minor comments.
...src/test/java/org/apache/pulsar/transaction/coordinator/impl/TxnBatchedPositionImplTest.java
Outdated
Show resolved
Hide resolved
...r/src/test/java/org/apache/pulsar/transaction/coordinator/impl/MLTransactionLogImplTest.java
Outdated
Show resolved
Hide resolved
...r/src/test/java/org/apache/pulsar/transaction/coordinator/impl/MLTransactionLogImplTest.java
Outdated
Show resolved
Hide resolved
...r/src/test/java/org/apache/pulsar/transaction/coordinator/impl/MLTransactionLogImplTest.java
Outdated
Show resolved
Hide resolved
...r/src/test/java/org/apache/pulsar/transaction/coordinator/impl/MLTransactionLogImplTest.java
Show resolved
Hide resolved
...r/src/test/java/org/apache/pulsar/transaction/coordinator/impl/MLTransactionLogImplTest.java
Show resolved
Hide resolved
/pulsarbot run-failure-checks |
1 similar comment
/pulsarbot run-failure-checks |
Master Issue: #15370
Motivation
see #15370
Modifications
I will complete proposal #15370 with these pull requests( current pull request is the step-3 ):
TxnLogBufferedWriter
Documentation
doc-required
doc-not-needed
doc
doc-complete