[
https://issues.apache.org/jira/browse/MESOS-8942?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16500534#comment-16500534
]
Jie Yu commented on MESOS-8942:
-------------------------------
The backport to 1.5.x breaks the build:
{noformat}
/usr/bin/mkdir -p examples/java
16:05:32 /usr/lib/jvm/java-openjdk/bin/javac -source 1.6 -target 1.6
\
16:05:32 -cp
../3rdparty/zookeeper-3.4.8/zookeeper-3.4.8.jar:/home/centos/workspace/mesos/Mesos_CI-build/FLAG/Plain/label/mesos-ec2-centos-7/mesos/build/src/java/target/protobuf-java-3.5.0.jar:java/target/mesos-1.5.1.jar:../../src/examples/java
\
16:05:32 -sourcepath ../../src/examples/java -d examples/java
\
16:05:32 ../../src/examples/java/*.java
16:05:32 warning: [options] bootstrap class path not set in conjunction with
-source 1.6
16:05:34 Note: Some input files use or override a deprecated API.
16:05:34 Note: Recompile with -Xlint:deprecation for details.
16:05:34 1 warning
16:05:34 /usr/lib/jvm/java-openjdk/bin/jar cf examples.jar -C examples/java .
16:05:34 CXXLD test-helper
16:06:04 ../../src/tests/api_tests.cpp: In member function ‘virtual void
mesos::internal::tests::MasterAPITest_SubscribersReceiveHealthUpdates_Test::TestBody()’:
16:06:04 ../../src/tests/api_tests.cpp:2310:14: error: ‘createCallSubscribe’ is
not a member of ‘mesos::internal::tests::v1’
16:06:04 mesos.send(v1::createCallSubscribe(v1::DEFAULT_FRAMEWORK_INFO));
16:06:04 ^
{noformat}
> Master streaming API does not send (health) check updates for tasks.
> --------------------------------------------------------------------
>
> Key: MESOS-8942
> URL: https://issues.apache.org/jira/browse/MESOS-8942
> Project: Mesos
> Issue Type: Task
> Components: HTTP API
> Affects Versions: 1.4.1, 1.5.0, 1.6.0
> Reporter: Alexander Rukletsov
> Assignee: Alexander Rukletsov
> Priority: Major
> Labels: api, mesosphere, streaming-api
> Fix For: 1.4.2, 1.5.2, 1.7.0, 1.6.1
>
>
> Currently, Master API subscribers get task status updates when task state
> changes (the actual logic is [slightly more
> complex|https://github.com/apache/mesos/blob/d7d7cfbc3e5609fc9a4e8de8203a6ecb11afeac7/src/master/master.cpp#L10794-L10841]).
> We use task status updates to deliver health and check information to
> schedulers, in which case task state does not change. Hence these updates are
> filtered out and the subscribers do not get any task health updates.
> Here is a test that confirms the described behaviour:
> https://gist.github.com/rukletsov/c079d95479fb134d137ea3ae8b7ae874
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)