You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Vihang Karajgaonkar (JIRA)" <ji...@apache.org> on 2018/08/02 17:53:00 UTC
[jira] [Updated] (HIVE-20166) LazyBinaryStruct Warn Level Logging
[ https://issues.apache.org/jira/browse/HIVE-20166?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vihang Karajgaonkar updated HIVE-20166:
---------------------------------------
Resolution: Fixed
Fix Version/s: 3.2.0
4.0.0
Status: Resolved (was: Patch Available)
Patch merged into master and branch-3. Thanks for your contribution [~anuragmantri]
> LazyBinaryStruct Warn Level Logging
> -----------------------------------
>
> Key: HIVE-20166
> URL: https://issues.apache.org/jira/browse/HIVE-20166
> Project: Hive
> Issue Type: Improvement
> Components: Serializers/Deserializers
> Affects Versions: 3.0.0, 4.0.0
> Reporter: BELUGA BEHR
> Assignee: Anurag Mantripragada
> Priority: Minor
> Labels: newbie, noob
> Fix For: 4.0.0, 3.2.0
>
> Attachments: HIVE-20166.1.patch
>
>
> https://github.com/apache/hive/blob/6d890faf22fd1ede3658a5eed097476eab3c67e9/serde/src/java/org/apache/hadoop/hive/serde2/lazybinary/LazyBinaryStruct.java#L177-L180
> {code}
> // Extra bytes at the end?
> if (!extraFieldWarned && lastFieldByteEnd < structByteEnd) {
> extraFieldWarned = true;
> LOG.warn("Extra bytes detected at the end of the row! " +
> "Last field end " + lastFieldByteEnd + " and serialize buffer end " + structByteEnd + ". " +
> "Ignoring similar problems.");
> }
> // Missing fields?
> if (!missingFieldWarned && lastFieldByteEnd > structByteEnd) {
> missingFieldWarned = true;
> LOG.info("Missing fields! Expected " + fields.length + " fields but " +
> "only got " + fieldId + "! " +
> "Last field end " + lastFieldByteEnd + " and serialize buffer end " + structByteEnd + ". " +
> "Ignoring similar problems.");
> }
> {code}
> The first log statement is a 'warn' level logging, the second is an 'info' level logging. Please change the second log to also be a 'warn'. This seems like it could be a problem that the user would like to know about.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)