KAFKA-16666: Migrate `TransactionLogMessageFormatter` to tools module
These class are used by console consumer. Now I want to migrate there code from Scala to Java
@m1a2st could you please fix the conflicts
@chia7712, Please take a look, Thank you
This PR includes many migration, and hence it gets a bit complicated. Maybe we should separate it into different PRs. For example:
- move
TransactionLogtotransaction-coordinatormodule. this includeTransactionLogMessageFormattermigration - move
OffsetsMessageFormatter - move
GroupMetadataMessageFormatter
WDYT?
I think that seperate to three PRs are good, these formatter are not dependency for each other.
just have another idea for minimizing the changes: Maybe we don't touch the code in the core, but we deprecate them. And then we add new message formatter instead. For example:
- add new TransactionLogMessageFormatter and deprecate core code
- add new OffsetsMessageFormatter and deprecate core code
- add new GroupMetadataMessageFormatter and deprecate core code
If we mark core Formatter to deprecate, should It need to delete at next Kafka version?
If we mark core Formatter to deprecate, should It need to delete at next Kafka version?
yep if we push the code to deprecate them in 3.9.0
@chia7712, Thanks for your comments. I change the checkstyle doc.
@m1a2st please fix the spotless error
@chia7712, Thanks for your comments, FIx it
@chia7712 gentle ping, PTAL
@chia7712, Thanks for your patient, PTAL
@m1a2st could you please rebase code to trigger qa ?
Thank you @chia7712 for the reminder, rebased.
@m1a2st could you please rebase code ?
Thank you @chia7712 for the reminder, rebased.
@m1a2st please take a look at build error
@chia7712, Thanks for your comments, PTAL
@chia7712, Thanks for your comments, add new transction test, PTAL
@chia7712, Thanks for your comments, PTAL
@m1a2st pleae fix the build error
@chia7712, PTAL, Thanks
@chia7712, Thanks for your comments, PTAL
Hi @chia7712 @m1a2st this commit is causing deterministic test failures on trunk: https://issues.apache.org/jira/browse/KAFKA-17195 PTAL, thanks!
@gharris1727, Thanks for your comments, I will take a look and fix it.
@gharris1727 thanks for kind reminder. I will check it asap