You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sentry.apache.org by "Prasad Mujumdar (JIRA)" <ji...@apache.org> on 2014/07/22 00:52:38 UTC

[jira] [Commented] (SENTRY-350) org.apache.sentry.tests.e2e.metastore.TestMetastoreEndToEnd failure caused by new table parameter (COLUMN_STATS_ACCURATE etc)

    [ https://issues.apache.org/jira/browse/SENTRY-350?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14069466#comment-14069466 ] 

Prasad Mujumdar commented on SENTRY-350:
----------------------------------------

[~skyapus@yahoo.com] I just updated SENTRY-236 patch that fixes this failure.

> org.apache.sentry.tests.e2e.metastore.TestMetastoreEndToEnd failure caused by new table parameter (COLUMN_STATS_ACCURATE etc)
> -----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SENTRY-350
>                 URL: https://issues.apache.org/jira/browse/SENTRY-350
>             Project: Sentry
>          Issue Type: Bug
>    Affects Versions: 1.4.0
>         Environment: Hive 0.13 test
>            Reporter: Ruiming Zhou
>             Fix For: 1.4.0
>
>
> The output verification need to consider the new parameter attributes which are likely newly added in Hive.
> Expected: 
>  parameters:{transient_lastDdlTime=1405836218}, 
> Actual:
> parameters:{numFiles=0, transient_lastDdlTime=1405836218, COLUMN_STATS_ACCURATE=false, totalSize=0, numRows=-1, rawDataSize=-1}
> org.apache.sentry.tests.e2e.metastore.TestMetastoreEndToEnd
> testAlterTablePrivileges(org.apache.sentry.tests.e2e.metastore.TestMetastoreEndToEnd)  Time elapsed: 0.8 sec  <<< FAILURE!
> java.lang.AssertionError: expected:<Table(tableName:tab1, dbName:db_1, owner:null, createTime:1405836218, lastAccessTime:0, retention:0, sd:StorageDescriptor(cols:[FieldSchema(name:col2, type:double, comment:)], location:hdfs://localhost:51851/data/db_1.db/tab1, inputFormat:null, outputFormat:null, compressed:false, numBuckets:0, serdeInfo:SerDeInfo(name:tab1, serializationLib:null, parameters:{serialization.format=1}), bucketCols:[], sortCols:[], parameters:{}, skewedInfo:SkewedInfo(skewedColNames:[], skewedColValues:[], skewedColValueLocationMaps:{}), storedAsSubDirectories:false), partitionKeys:[], parameters:{transient_lastDdlTime=1405836218}, viewOriginalText:null, viewExpandedText:null, tableType:MANAGED_TABLE)> but was:<Table(tableName:tab1, dbName:db_1, owner:null, createTime:1405836218, lastAccessTime:0, retention:0, sd:StorageDescriptor(cols:[FieldSchema(name:col2, type:double, comment:)], location:hdfs://localhost:51851/data/db_1.db/tab1, inputFormat:null, outputFormat:null, compressed:false, numBuckets:0, serdeInfo:SerDeInfo(name:tab1, serializationLib:null, parameters:{serialization.format=1}), bucketCols:[], sortCols:[], parameters:{}, skewedInfo:SkewedInfo(skewedColNames:[], skewedColValues:[], skewedColValueLocationMaps:{}), storedAsSubDirectories:false), partitionKeys:[], parameters:{numFiles=0, transient_lastDdlTime=1405836218, COLUMN_STATS_ACCURATE=false, totalSize=0, numRows=-1, rawDataSize=-1}, viewOriginalText:null, viewExpandedText:null, tableType:MANAGED_TABLE)>
> at org.junit.Assert.fail(Assert.java:93)
> at org.junit.Assert.failNotEquals(Assert.java:647)
> at org.junit.Assert.assertEquals(Assert.java:128)
> at org.junit.Assert.assertEquals(Assert.java:147)
> at org.apache.sentry.tests.e2e.metastore.TestMetastoreEndToEnd.testAlterTablePrivileges(TestMetastoreEndToEnd.java:214)



--
This message was sent by Atlassian JIRA
(v6.2#6252)