tez-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zhiyu...@apache.org
Subject tez git commit: TEZ-3855 addendum. Allow vertex manager to send event to processor (zhiyuany)
Date Wed, 15 Nov 2017 21:49:03 GMT
Repository: tez
Updated Branches:
  refs/heads/master b96f79fa7 -> b61e55ce9


TEZ-3855 addendum. Allow vertex manager to send event to processor (zhiyuany)


Project: http://git-wip-us.apache.org/repos/asf/tez/repo
Commit: http://git-wip-us.apache.org/repos/asf/tez/commit/b61e55ce
Tree: http://git-wip-us.apache.org/repos/asf/tez/tree/b61e55ce
Diff: http://git-wip-us.apache.org/repos/asf/tez/diff/b61e55ce

Branch: refs/heads/master
Commit: b61e55ce9362e3a11761d57c876c83f09b03b159
Parents: b96f79f
Author: Zhiyuan Yang <zhiyuany@apache.org>
Authored: Wed Nov 15 13:48:43 2017 -0800
Committer: Zhiyuan Yang <zhiyuany@apache.org>
Committed: Wed Nov 15 13:48:43 2017 -0800

----------------------------------------------------------------------
 .../org/apache/tez/runtime/api/events/CustomProcessorEvent.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tez/blob/b61e55ce/tez-api/src/main/java/org/apache/tez/runtime/api/events/CustomProcessorEvent.java
----------------------------------------------------------------------
diff --git a/tez-api/src/main/java/org/apache/tez/runtime/api/events/CustomProcessorEvent.java
b/tez-api/src/main/java/org/apache/tez/runtime/api/events/CustomProcessorEvent.java
index 9cfb02e..7d84a1d 100644
--- a/tez-api/src/main/java/org/apache/tez/runtime/api/events/CustomProcessorEvent.java
+++ b/tez-api/src/main/java/org/apache/tez/runtime/api/events/CustomProcessorEvent.java
@@ -51,7 +51,7 @@ public class CustomProcessorEvent extends Event {
   }
 
   public ByteBuffer getPayload() {
-    return payload;
+    return payload.asReadOnlyBuffer();
   }
 
   @Private


Mime
View raw message