KAFKA-20128: Add missing TimestampType to java doc and move non-public classes to internal subpackage #21412
KAFKA-20128: Add missing TimestampType to java doc and move non-public classes to internal subpackage #21412lianetm wants to merge 4 commits intoapache:trunkfrom
Conversation
|
This commit exposed it as part of the KIP implementation: 45c8195 |
|
ugh, |
|
Agree, but just to make sure I'm following. The fact that this That being said, totally agree that the situation of this package is a mix of private and public components. As alternative to the KIP path, could we also consider leaving the public |
That is a practical idea to avoid a KIP. My concern, however, is that it leaves |
True, but this stuff is all a bit of a mess to be honest. That doesn't seem too bad to me. |
2 > 1 😄 @lianetm do you plan to address it in this PR? |
There was a problem hiding this comment.
Hi both, addressed the move here since it's a mechanical refactoring.
- left the public class TimestampType in the same package where it was
- added the package and the class to the java docs (they were already public)
- moved all other classes to an "internal" sub-package (which remains private) - this took updating all imports/references to them, so tons of files but just a mechanical refactor
I call out below the changes introduced that are not related to the mechanical refactor. Let's see the build.
| include "**/org/apache/kafka/common/metrics/*" | ||
| include "**/org/apache/kafka/common/metrics/stats/*" | ||
| include "**/org/apache/kafka/common/quota/*" | ||
| include "**/org/apache/kafka/common/record/*" |
There was a problem hiding this comment.
this can now include all classes under the record package (it's only TimestampType for now)
| /** | ||
| * Provides the low-level representation of records and record batches used by clients and servers. | ||
| * <strong>This package is not a supported Kafka API; the implementation may change without warning between minor or patch releases.</strong> | ||
| * Provides utility components related to Kafka records. |
There was a problem hiding this comment.
updated info for the package that was public with TimestampType
| * Provides the low-level representation of records and record batches used by clients and servers. | ||
| * <strong>This package is not a supported Kafka API; the implementation may change without warning between minor or patch releases.</strong> | ||
| */ | ||
| package org.apache.kafka.common.record.internal; No newline at end of file |
There was a problem hiding this comment.
same private-package description we had, but now at the "internal" subpackage level
|
@lianetm could you update the stale comment? https://github.com/apache/kafka/blob/trunk/gradle/dependencies.gradle#L109 |

part of KIP-32 (for ConsumerRecord) and KIP-65 (for SinkRecord).
Reviewers: Andrew Schofield aschofield@confluent.io, PoAn Yang
payang@apache.org, Maros Orsak maros.orsak159@gmail.com, Chia-Ping
Tsai chia7712@gmail.com