hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eugene Koifman (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-20888) TxnHandler: sort() called on immutable lists
Date Thu, 15 Nov 2018 00:44:00 GMT

     [ https://issues.apache.org/jira/browse/HIVE-20888?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Eugene Koifman updated HIVE-20888:
----------------------------------
       Resolution: Fixed
    Fix Version/s: 4.0.0
     Release Note: n/a
           Status: Resolved  (was: Patch Available)

committed to master

thanks Igor for the contribution

> TxnHandler: sort() called on immutable lists
> --------------------------------------------
>
>                 Key: HIVE-20888
>                 URL: https://issues.apache.org/jira/browse/HIVE-20888
>             Project: Hive
>          Issue Type: Bug
>          Components: Transactions
>            Reporter: Gopal V
>            Assignee: Igor Kryvenko
>            Priority: Major
>             Fix For: 4.0.0
>
>         Attachments: HIVE-20888.01.patch
>
>
> {code}
>         } else {
>           assert (!rqst.isSetSrcTxnToWriteIdList());
>           assert (rqst.isSetTxnIds());
>           txnIds = rqst.getTxnIds();
>         }
>         Collections.sort(txnIds); //easier to read logs and for assumption done in replication
flow
> {code}
> when the input comes from
> {code}
>   @Override
>   public long allocateTableWriteId(long txnId, String dbName, String tableName) throws
TException {
>     return allocateTableWriteIdsBatch(Collections.singletonList(txnId), dbName, tableName).get(0).getWriteId();
>   }
> {code}
> {code}
> java.lang.UnsupportedOperationException: null
>     at java.util.AbstractList.set(AbstractList.java:132) ~[?:1.8.0]
>     at java.util.AbstractList$ListItr.set(AbstractList.java:426) ~[?:1.8.0]
>     at java.util.Collections.sort(Collections.java:170) ~[?:1.8.0]
>     at org.apache.hadoop.hive.metastore.txn.TxnHandler.allocateTableWriteIds(TxnHandler.java:1523)
~[hive-standalone-metastore-server-4.0.0-SNAPSHOT.jar:4.0.0-SNAPSHOT]
>     at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.allocate_table_write_ids(HiveMetaStore.java:7349)
~[hive-standalone-metastore-server-4.0.0-SNAPSHOT.jar:4.0.0-SNAPSHOT]
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message