You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Chun-Hung Hsiao (JIRA)" <ji...@apache.org> on 2018/08/03 22:35:00 UTC

[jira] [Created] (MESOS-9135) Test `/MasterAPITest.GetMaster` is flaky for Windows Release build.

Chun-Hung Hsiao created MESOS-9135:
--------------------------------------

             Summary: Test `/MasterAPITest.GetMaster` is flaky for Windows Release build.
                 Key: MESOS-9135
                 URL: https://issues.apache.org/jira/browse/MESOS-9135
             Project: Mesos
          Issue Type: Bug
          Components: test
    Affects Versions: 1.7.0
            Reporter: Chun-Hung Hsiao


If we make a {{Release}} build on Windows:
{noformat}
> cmake .. -G "Visual Studio 15 2017 Win64" -T "host=x64" -DENABLE_LIBWINIO=ON
> cmake  cmake.exe --build . --config Release --target mesos-tests -- /maxcpucount
> .\src\mesos-tests.exe --gtest_filter="*GetMaster*" --verbose
{noformat}
The test will sometimes fail with the following error (with either parameter):
{noformat}
[ RUN      ] ContentType/MasterAPITest.GetMaster/1
I0803 22:31:51.896458  7028 cluster.cpp:173] Creating default 'local' authorizer
I0803 22:31:51.896458  8588 master.cpp:463] Master 31822e8c-14a5-4089-96c3-5198b65ea9e7 (Mesos.gfkurvo4cm3ejf3bzwovf3zqad.xx.internal.cloudapp.net) started on 10.0.0.4:52488
I0803 22:31:51.896458  8588 master.cpp:466] Flags at startup: --acls="" --agent_ping_timeout="15secs" --agent_reregister_timeout="10mins" --allocation_interval="1000secs" --allocator="hierarchical" --authenticate_agents="true" --authenticate_frameworks="true" --authenticate_http_frameworks="true" --authenticate_http_readonly="true" --authenticate_http_readwrite="true" --authenticators="crammd5" --authorizers="local" --credentials="C:\Users\chhsiao\AppData\Local\Temp\XavMcn\credentials" --domain="{"fault_domain":{"region":{"name":"region-abc"},"zone":{"name":"zone-123"}}}" --filter_gpu_resources="true" --framework_sorter="drf" --help="false" --hostname_lookup="true" --http_authenticators="basic" --http_framework_authenticators="basic" --initialize_driver_logging="true" --log_auto_initialize="true" --logbufsecs="0" --logging_level="INFO" --max_agent_ping_timeouts="5" --max_completed_frameworks="50" --max_completed_tasks_per_framework="1000" --max_unreachable_tasks_per_framework="1000" --memory_profiling="false" --min_allocatable_resources="cpus:0.01|mem:32" --port="5050" --quiet="false" --recovery_agent_removal_limit="100%" --registry="in_memory" --registry_fetch_timeout="1mins" --registry_gc_interval="15mins" --registry_max_agent_age="2weeks" --registry_max_agent_count="102400" --registry_store_timeout="100secs" --registry_strict="false" --require_agent_domain="false" --role_sorter="drf" --root_submissions="true" --version="false" --webui_dir="/webui" --work_dir="C:\Users\chhsiao\AppData\Local\Temp\XavMcn\master" --zk_session_timeout="10secs"
I0803 22:31:51.896458  8588 master.cpp:515] Master only allowing authenticated frameworks to register
I0803 22:31:51.896458  8588 master.cpp:521] Master only allowing authenticated agents to register
I0803 22:31:51.896458  8588 master.cpp:527] Master only allowing authenticated HTTP frameworks to register
I0803 22:31:51.896458  8588 credentials.hpp:37] Loading credentials for authentication from 'C:\Users\chhsiao\AppData\Local\Temp\XavMcn\credentials'
I0803 22:31:51.896458  8588 master.cpp:571] Using default 'crammd5' authenticator
I0803 22:31:51.896458  8588 http.cpp:979] Creating default 'basic' HTTP authenticator for realm 'mesos-master-readonly'
I0803 22:31:51.896458  8588 http.cpp:979] Creating default 'basic' HTTP authenticator for realm 'mesos-master-readwrite'
I0803 22:31:51.896458  8588 http.cpp:979] Creating default 'basic' HTTP authenticator for realm 'mesos-master-scheduler'
I0803 22:31:51.896458  8588 master.cpp:652] Authorization enabled
I0803 22:31:51.896458  6392 master.cpp:2162] Elected as the leading master!
I0803 22:31:51.896458  6392 master.cpp:1717] Recovering from registrar
I0803 22:31:51.896458  8588 registrar.cpp:383] Successfully fetched the registry (0B) in 0ns
I0803 22:31:51.896458  8588 registrar.cpp:487] Applied 1 operations in 0ns; attempting to update the registry
I0803 22:31:51.896458  4220 registrar.cpp:544] Successfully updated the registry in 0ns
I0803 22:31:51.896458  4220 registrar.cpp:416] Successfully recovered registrar
I0803 22:31:51.896458  7016 master.cpp:1831] Recovered 0 agents from the registry (251B); allowing 10mins for agents to reregister
I0803 22:31:51.896458  4220 http.cpp:1119] HTTP POST for /master/api/v1 from 10.0.0.4:52490
I0803 22:31:51.896458  4220 http.cpp:690] Processing call GET_MASTER
c:\users\chhsiao\src\mesos\src\tests\api_tests.cpp(1186): error: Value of: Clock::now().secs() > getMaster.start_time()
  Actual: false
Expected: true
I0803 22:31:51.896458  7028 master.cpp:1172] Master terminating
[  FAILED  ] ContentType/MasterAPITest.GetMaster/1, where GetParam() = application/json (12 ms)
{noformat}

Note that I cannot trigger this error for a {{Debug}} build.




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