-
Notifications
You must be signed in to change notification settings - Fork 14.9k
KAFKA-20130: Move RecordValidationStats to storage module #21418
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
base: trunk
Are you sure you want to change the base?
Conversation
| this.conversionTimeNanos = conversionTimeNanos; | ||
| } | ||
|
|
||
| public RecordValidationStats() { |
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.
Since this constructor is only used by EMPTY, can we remove it and just use the main one?
public static final RecordValidationStats EMPTY = new RecordValidationStats(0, 0, 0);| } | ||
|
|
||
| @Override | ||
| public String toString() { |
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.
we could use the generated toString instead
| * See the License for the specific language governing permissions and | ||
| * limitations under the License. | ||
| */ | ||
| package org.apache.kafka.common.record; |
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.
Could you move it to org.apache.kafka.storage.internals.log?
Moved to storage and turned into a record for immutability. Removed
add()because it didn't seem to be used.