hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r1657377 - /hive/trunk/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java
Date Wed, 04 Feb 2015 19:17:49 GMT
Author: gates
Date: Wed Feb  4 19:17:48 2015
New Revision: 1657377

URL: http://svn.apache.org/r1657377
Log:
HIVE-9550 ObjectStore.getNextNotification() can return events inside NotificationEventResponse
as null which conflicts with its thrift "required" tag

Modified:
    hive/trunk/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java

Modified: hive/trunk/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java?rev=1657377&r1=1657376&r2=1657377&view=diff
==============================================================================
--- hive/trunk/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java (original)
+++ hive/trunk/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java Wed Feb
 4 19:17:48 2015
@@ -6983,6 +6983,7 @@ public class ObjectStore implements RawS
       }
       Iterator<MNotificationLog> i = events.iterator();
       NotificationEventResponse result = new NotificationEventResponse();
+      result.setEvents(new ArrayList<NotificationEvent>());
       int maxEvents = rqst.getMaxEvents() > 0 ? rqst.getMaxEvents() : Integer.MAX_VALUE;
       int numEvents = 0;
       while (i.hasNext() && numEvents++ < maxEvents) {



Mime
View raw message