-
Notifications
You must be signed in to change notification settings - Fork 3k
AES GCM Stream changes #9453
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
AES GCM Stream changes #9453
Conversation
|
|
||
| if (available() <= 0 && len > 0) { | ||
| throw new EOFException(); | ||
| return -1; |
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.
| } | ||
|
|
||
| @Override | ||
| public long getPos() throws IOException { |
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.
Iceberg manifest writer calls getPos after closing the avro stream. Wrong value was returned.
| this.currentBlockIndex = 0; | ||
| this.isHeaderWritten = false; | ||
| this.lastBlockWritten = false; | ||
| this.isClosed = false; |
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.
Nit: initialize finalPosition as well?
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.
Done.
No description provided.