Project: mesos
Issue MESOS-3916: MasterMaintenanceTest.InverseOffersFilters is flaky
Verbose Logs: {code} [ RUN ] MasterMaintenanceTest.InverseOffersFilters I1113 16:43:58.486469 8728 leveldb.cpp:176] Opened db in 2.360405ms I1113 16:43:58.486935 8728 leveldb.cpp:183] Compacted db in 407105ns I1113 16:43:58.486995 8728 leveldb.cpp:198] Created db iterator in 16221ns I1113 16:43:58.487030 8728 leveldb.cpp:204] Seeked to beginning of db in 10935ns I1113 16:43:58.487046 8728 leveldb.cpp:273] Iterated through 0 keys in the db in 999ns I1113 16:43:58.487090 8728 replica.cpp:780] Replica recovered with log positions 0 -> 0 with 1 holes and 0 unlearned I1113 16:43:58.487735 8747 recover.cpp:449] Starting replica recovery I1113 16:43:58.488047 8747 recover.cpp:475] Replica is in EMPTY status I1113 16:43:58.488977 8745 replica.cpp:676] Replica in EMPTY status received a broadcasted recover request from (58)@10.0.2.15:45384 I1113 16:43:58.489452 8746 recover.cpp:195] Received a recover response from a replica in EMPTY status I1113 16:43:58.489712 8747 recover.cpp:566] Updating replica status to STARTING I1113 16:43:58.490706 8742 leveldb.cpp:306] Persisting metadata (8 bytes) to leveldb took 745443ns I1113 16:43:58.490739 8742 replica.cpp:323] Persisted replica status to STARTING I1113 16:43:58.490859 8742 recover.cpp:475] Replica is in STARTING status I1113 16:43:58.491786 8747 replica.cpp:676] Replica in STARTING status received a broadcasted recover request from (59)@10.0.2.15:45384 I1113 16:43:58.492542 8749 recover.cpp:195] Received a recover response from a replica in STARTING status I1113 16:43:58.493221 8743 recover.cpp:566] Updating replica status to VOTING I1113 16:43:58.493710 8743 leveldb.cpp:306] Persisting metadata (8 bytes) to leveldb took 331874ns I1113 16:43:58.493767 8743 replica.cpp:323] Persisted replica status to VOTING I1113 16:43:58.493868 8743 recover.cpp:580] Successfully joined the Paxos group I1113 16:43:58.494119 8743 recover.cpp:464] Recover process terminated I1113 16:43:58.504369 8749 master.cpp:367] Master d59449fc-5462-43c5-b935-e05563fdd4b6 (vagrant-ubuntu-wily-64) started on 10.0.2.15:45384 I1113 16:43:58.504438 8749 master.cpp:369] Flags at startup: --acls="" --allocation_interval="1secs" --allocator="HierarchicalDRF" --authenticate="false" --authenticate_slaves="true" --authenticators="crammd5" --authorizers="local" --credentials="/tmp/ZB7csS/credentials" --framework_sorter="drf" --help="false" --hostname_lookup="true" --initialize_driver_logging="true" --log_auto_initialize="true" --logbufsecs="0" --logging_level="INFO" --max_slave_ping_timeouts="5" --quiet="false" --recovery_slave_removal_limit="100%" --registry="replicated_log" --registry_fetch_timeout="1mins" --registry_store_timeout="25secs" --registry_strict="true" --root_submissions="true" --slave_ping_timeout="15secs" --slave_reregister_timeout="10mins" --user_sorter="drf" --version="false" --webui_dir="/usr/local/share/mesos/webui" --work_dir="/tmp/ZB7csS/master" --zk_session_timeout="10secs" I1113 16:43:58.504717 8749 master.cpp:416] Master allowing unauthenticated frameworks to register I1113 16:43:58.504889 8749 master.cpp:419] Master only allowing authenticated slaves to register I1113 16:43:58.504922 8749 credentials.hpp:37] Loading credentials for authentication from '/tmp/ZB7csS/credentials' I1113 16:43:58.505497 8749 master.cpp:458] Using default 'crammd5' authenticator I1113 16:43:58.505759 8749 master.cpp:495] Authorization enabled I1113 16:43:58.507638 8746 master.cpp:1606] The newly elected leader is master@10.0.2.15:45384 with id d59449fc-5462-43c5-b935-e05563fdd4b6 I1113 16:43:58.507693 8746 master.cpp:1619] Elected as the leading master! I1113 16:43:58.507720 8746 master.cpp:1379] Recovering from registrar I1113 16:43:58.507946 8749 registrar.cpp:309] Recovering registrar I1113 16:43:58.508561 8749 log.cpp:661] Attempting to start the writer I1113 16:43:58.510282 8747 replica.cpp:496] Replica received implicit promise request from (60)@10.0.2.15:45384 with proposal 1 I1113 16:43:58.510867 8747 leveldb.cpp:306] Persisting metadata (8 bytes) to leveldb took 475696ns I1113 16:43:58.510946 8747 replica.cpp:345] Persisted promised to 1 I1113 16:43:58.511912 8745 coordinator.cpp:240] Coordinator attempting to fill missing positions I1113 16:43:58.513030 8749 replica.cpp:391] Replica received explicit promise request from (61)@10.0.2.15:45384 for position 0 with proposal 2 I1113 16:43:58.513819 8749 leveldb.cpp:343] Persisting action (8 bytes) to leveldb took 739171ns I1113 16:43:58.513867 8749 replica.cpp:715] Persisted action at 0 I1113 16:43:58.522002 8745 replica.cpp:540] Replica received write request for position 0 from (62)@10.0.2.15:45384 I1113 16:43:58.522114 8745 leveldb.cpp:438] Reading position from leveldb took 33549ns I1113 16:43:58.522599 8745 leveldb.cpp:343] Persisting action (14 bytes) to leveldb took 435729ns I1113 16:43:58.522652 8745 replica.cpp:715] Persisted action at 0 I1113 16:43:58.523291 8746 replica.cpp:694] Replica received learned notice for position 0 from @0.0.0.0:0 I1113 16:43:58.523901 8746 leveldb.cpp:343] Persisting action (16 bytes) to leveldb took 538894ns I1113 16:43:58.523983 8746 replica.cpp:715] Persisted action at 0 I1113 16:43:58.524060 8746 replica.cpp:700] Replica learned NOP action at position 0 I1113 16:43:58.524775 8747 log.cpp:677] Writer started with ending position 0 I1113 16:43:58.525902 8745 leveldb.cpp:438] Reading position from leveldb took 39685ns I1113 16:43:58.526852 8745 registrar.cpp:342] Successfully fetched the registry (0B) in 18.832896ms I1113 16:43:58.527084 8745 registrar.cpp:441] Applied 1 operations in 24930ns; attempting to update the 'registry' I1113 16:43:58.528020 8745 log.cpp:685] Attempting to append 189 bytes to the log I1113 16:43:58.528323 8748 coordinator.cpp:350] Coordinator attempting to write APPEND action at position 1 I1113 16:43:58.529465 8744 replica.cpp:540] Replica received write request for position 1 from (63)@10.0.2.15:45384 I1113 16:43:58.530081 8744 leveldb.cpp:343] Persisting action (208 bytes) to leveldb took 552812ns I1113 16:43:58.530128 8744 replica.cpp:715] Persisted action at 1 I1113 16:43:58.530781 8745 replica.cpp:694] Replica received learned notice for position 1 from @0.0.0.0:0 I1113 16:43:58.531121 8745 leveldb.cpp:343] Persisting action (210 bytes) to leveldb took 271774ns I1113 16:43:58.531162 8745 replica.cpp:715] Persisted action at 1 I1113 16:43:58.531188 8745 replica.cpp:700] Replica learned APPEND action at position 1 I1113 16:43:58.532064 8743 registrar.cpp:486] Successfully updated the 'registry' in 4.9152ms I1113 16:43:58.532402 8743 registrar.cpp:372] Successfully recovered registrar I1113 16:43:58.532768 8742 log.cpp:704] Attempting to truncate the log to 1 I1113 16:43:58.532891 8743 master.cpp:1416] Recovered 0 slaves from the Registry (150B) ; allowing 10mins for slaves to re-register I1113 16:43:58.532968 8742 coordinator.cpp:350] Coordinator attempting to write TRUNCATE action at position 2 I1113 16:43:58.534010 8742 replica.cpp:540] Replica received write request for position 2 from (64)@10.0.2.15:45384 I1113 16:43:58.534488 8742 leveldb.cpp:343] Persisting action (16 bytes) to leveldb took 420186ns I1113 16:43:58.534533 8742 replica.cpp:715] Persisted action at 2 I1113 16:43:58.535081 8748 replica.cpp:694] Replica received learned notice for position 2 from @0.0.0.0:0 I1113 16:43:58.535482 8748 leveldb.cpp:343] Persisting action (18 bytes) to leveldb took 360618ns I1113 16:43:58.535550 8748 leveldb.cpp:401] Deleting ~1 keys from leveldb took 23693ns I1113 16:43:58.535575 8748 replica.cpp:715] Persisted action at 2 I1113 16:43:58.535611 8748 replica.cpp:700] Replica learned TRUNCATE action at position 2 I1113 16:43:58.550834 8746 slave.cpp:191] Slave started on 5)@10.0.2.15:45384 I1113 16:43:58.550834 8746 slave.cpp:192] Flags at startup: --appc_store_dir="/tmp/mesos/store/appc" --authenticatee="crammd5" --cgroups_cpu_enable_pids_and_tids_count="false" --cgroups_enable_cfs="false" --cgroups_hierarchy="/sys/fs/cgroup" --cgroups_limit_swap="false" --cgroups_root="mesos" --container_disk_watch_interval="15secs" --containerizers="mesos" --credential="/tmp/MasterMaintenanceTest_InverseOffersFilters_2zc09g/credential" --default_role="*" --disk_watch_interval="1mins" --docker="docker" --docker_auth_server="auth.docker.io" --docker_auth_server_port="443" --docker_kill_orphans="true" --docker_local_archives_dir="/tmp/mesos/images/docker" --docker_puller="local" --docker_puller_timeout="60" --docker_registry="registry-1.docker.io" --docker_registry_port="443" --docker_remove_delay="6hrs" --docker_socket="/var/run/docker.sock" --docker_stop_timeout="0ns" --docker_store_dir="/tmp/mesos/store/docker" --enforce_container_disk_quota="false" --executor_registration_timeout="1mins" --executor_shutdown_grace_period="5secs" --fetcher_cache_dir="/tmp/MasterMaintenanceTest_InverseOffersFilters_2zc09g/fetch" --fetcher_cache_size="2GB" --frameworks_home="" --gc_delay="1weeks" --gc_disk_headroom="0.1" --hadoop_home="" --help="false" --hostname="maintenance-host" --hostname_lookup="true" --image_provisioner_backend="copy" --initialize_driver_logging="true" --isolation="posix/cpu,posix/mem" --launcher_dir="/home/vagrant/build-mesos/src" --logbufsecs="0" --logging_level="INFO" --oversubscribed_resources_interval="15secs" --perf_duration="10secs" --perf_interval="1mins" --qos_correction_interval_min="0ns" --quiet="false" --recover="reconnect" --recovery_timeout="15mins" --registration_backoff_factor="10ms" --resources="cpus:2;mem:1024;disk:1024;ports:[31000-32000]" --revocable_cpu_low_priority="true" --sandbox_directory="/mnt/mesos/sandbox" --strict="true" --switch_user="true" --systemd_runtime_directory="/run/systemd/system" --version="false" --work_dir="/tmp/MasterMaintenanceTest_InverseOffersFilters_2zc09g" I1113 16:43:58.551501 8746 credentials.hpp:85] Loading credential for authentication from '/tmp/MasterMaintenanceTest_InverseOffersFilters_2zc09g/credential' I1113 16:43:58.551703 8746 slave.cpp:322] Slave using credential for: test-principal I1113 16:43:58.552422 8746 slave.cpp:392] Slave resources: cpus(*):2; mem(*):1024; disk(*):1024; ports(*):[31000-32000] I1113 16:43:58.552510 8746 slave.cpp:400] Slave attributes: [ ] I1113 16:43:58.552532 8746 slave.cpp:405] Slave hostname: maintenance-host I1113 16:43:58.552547 8746 slave.cpp:410] Slave checkpoint: true I1113 16:43:58.553520 8746 state.cpp:54] Recovering state from '/tmp/MasterMaintenanceTest_InverseOffersFilters_2zc09g/meta' I1113 16:43:58.553938 8746 status_update_manager.cpp:202] Recovering status update manager I1113 16:43:58.554251 8746 slave.cpp:4230] Finished recovery I1113 16:43:58.555016 8746 slave.cpp:729] New master detected at master@10.0.2.15:45384 I1113 16:43:58.555166 8746 slave.cpp:792] Authenticating with master master@10.0.2.15:45384 I1113 16:43:58.555207 8746 slave.cpp:797] Using default CRAM-MD5 authenticatee I1113 16:43:58.555589 8746 slave.cpp:765] Detecting new master I1113 16:43:58.555076 8749 status_update_manager.cpp:176] Pausing sending status updates I1113 16:43:58.555719 8742 authenticatee.cpp:123] Creating new client SASL connection I1113 16:43:58.560645 8744 master.cpp:5150] Authenticating slave(5)@10.0.2.15:45384 I1113 16:43:58.561305 8744 authenticator.cpp:100] Creating new server SASL connection I1113 16:43:58.566682 8744 authenticatee.cpp:214] Received SASL authentication mechanisms: CRAM-MD5 I1113 16:43:58.566779 8744 authenticatee.cpp:240] Attempting to authenticate with mechanism 'CRAM-MD5' I1113 16:43:58.566872 8744 authenticator.cpp:205] Received SASL authentication start I1113 16:43:58.566936 8744 authenticator.cpp:327] Authentication requires more steps I1113 16:43:58.567602 8744 authenticatee.cpp:260] Received SASL authentication step I1113 16:43:58.567775 8744 authenticator.cpp:233] Received SASL authentication step I1113 16:43:58.568128 8744 authenticator.cpp:319] Authentication success I1113 16:43:58.568282 8742 authenticatee.cpp:300] Authentication success I1113 16:43:58.568320 8749 master.cpp:5180] Successfully authenticated principal 'test-principal' at slave(5)@10.0.2.15:45384 I1113 16:43:58.568701 8742 slave.cpp:860] Successfully authenticated with master master@10.0.2.15:45384 I1113 16:43:58.569272 8747 master.cpp:3859] Registering slave at slave(5)@10.0.2.15:45384 (maintenance-host) with id d59449fc-5462-43c5-b935-e05563fdd4b6-S0 I1113 16:43:58.570096 8747 registrar.cpp:441] Applied 1 operations in 59195ns; attempting to update the 'registry' I1113 16:43:58.570772 8748 log.cpp:685] Attempting to append 362 bytes to the log I1113 16:43:58.570772 8749 coordinator.cpp:350] Coordinator attempting to write APPEND action at position 3 I1113 16:43:58.572155 8745 replica.cpp:540] Replica received write request for position 3 from (69)@10.0.2.15:45384 I1113 16:43:58.572801 8745 leveldb.cpp:343] Persisting action (381 bytes) to leveldb took 563073ns I1113 16:43:58.572854 8745 replica.cpp:715] Persisted action at 3 I1113 16:43:58.573707 8745 replica.cpp:694] Replica received learned notice for position 3 from @0.0.0.0:0 I1113 16:43:58.574255 8745 leveldb.cpp:343] Persisting action (383 bytes) to leveldb took 485234ns I1113 16:43:58.574311 8745 replica.cpp:715] Persisted action at 3 I1113 16:43:58.574342 8745 replica.cpp:700] Replica learned APPEND action at position 3 I1113 16:43:58.575857 8747 master.cpp:3847] Ignoring register slave message from slave(5)@10.0.2.15:45384 (maintenance-host) as admission is already in progress I1113 16:43:58.576217 8744 log.cpp:704] Attempting to truncate the log to 3 I1113 16:43:58.575887 8748 registrar.cpp:486] Successfully updated the 'registry' in 5.682176ms I1113 16:43:58.576400 8744 coordinator.cpp:350] Coordinator attempting to write TRUNCATE action at position 4 I1113 16:43:58.577169 8746 master.cpp:3927] Registered slave d59449fc-5462-43c5-b935-e05563fdd4b6-S0 at slave(5)@10.0.2.15:45384 (maintenance-host) with cpus(*):2; mem(*):1024; disk(*):1024; ports(*):[31000-32000] I1113 16:43:58.577287 8745 hierarchical.cpp:344] Added slave d59449fc-5462-43c5-b935-e05563fdd4b6-S0 (maintenance-host) with cpus(*):2; mem(*):1024; disk(*):1024; ports(*):[31000-32000] (allocated: ) I1113 16:43:58.577472 8744 slave.cpp:904] Registered with master master@10.0.2.15:45384; given slave ID d59449fc-5462-43c5-b935-e05563fdd4b6-S0 I1113 16:43:58.577999 8745 status_update_manager.cpp:183] Resuming sending status updates I1113 16:43:58.578279 8748 replica.cpp:540] Replica received write request for position 4 from (70)@10.0.2.15:45384 I1113 16:43:58.578346 8744 slave.cpp:963] Forwarding total oversubscribed resources I1113 16:43:58.578734 8744 master.cpp:4269] Received update of slave d59449fc-5462-43c5-b935-e05563fdd4b6-S0 at slave(5)@10.0.2.15:45384 (maintenance-host) with total oversubscribed resources I1113 16:43:58.578846 8748 leveldb.cpp:343] Persisting action (16 bytes) to leveldb took 304993ns I1113 16:43:58.578889 8748 replica.cpp:715] Persisted action at 4 I1113 16:43:58.578897 8744 hierarchical.cpp:400] Slave d59449fc-5462-43c5-b935-e05563fdd4b6-S0 (maintenance-host) updated with oversubscribed resources (total: cpus(*):2; mem(*):1024; disk(*):1024; ports(*):[31000-32000], allocated: ) I1113 16:43:58.579463 8744 replica.cpp:694] Replica received learned notice for position 4 from @0.0.0.0:0 I1113 16:43:58.579888 8744 leveldb.cpp:343] Persisting action (18 bytes) to leveldb took 384596ns I1113 16:43:58.579952 8744 leveldb.cpp:401] Deleting ~2 keys from leveldb took 27011ns I1113 16:43:58.579977 8744 replica.cpp:715] Persisted action at 4 I1113 16:43:58.580001 8744 replica.cpp:700] Replica learned TRUNCATE action at position 4 I1113 16:43:58.584300 8743 slave.cpp:191] Slave started on 6)@10.0.2.15:45384 I1113 16:43:58.584398 8743 slave.cpp:192] Flags at startup: --appc_store_dir="/tmp/mesos/store/appc" --authenticatee="crammd5" --cgroups_cpu_enable_pids_and_tids_count="false" --cgroups_enable_cfs="false" --cgroups_hierarchy="/sys/fs/cgroup" --cgroups_limit_swap="false" --cgroups_root="mesos" --container_disk_watch_interval="15secs" --containerizers="mesos" --credential="/tmp/MasterMaintenanceTest_InverseOffersFilters_CDFgvt/credential" --default_role="*" --disk_watch_interval="1mins" --docker="docker" --docker_auth_server="auth.docker.io" --docker_auth_server_port="443" --docker_kill_orphans="true" --docker_local_archives_dir="/tmp/mesos/images/docker" --docker_puller="local" --docker_puller_timeout="60" --docker_registry="registry-1.docker.io" --docker_registry_port="443" --docker_remove_delay="6hrs" --docker_socket="/var/run/docker.sock" --docker_stop_timeout="0ns" --docker_store_dir="/tmp/mesos/store/docker" --enforce_container_disk_quota="false" --executor_registration_timeout="1mins" --executor_shutdown_grace_period="5secs" --fetcher_cache_dir="/tmp/MasterMaintenanceTest_InverseOffersFilters_CDFgvt/fetch" --fetcher_cache_size="2GB" --frameworks_home="" --gc_delay="1weeks" --gc_disk_headroom="0.1" --hadoop_home="" --help="false" --hostname="maintenance-host-2" --hostname_lookup="true" --image_provisioner_backend="copy" --initialize_driver_logging="true" --isolation="posix/cpu,posix/mem" --launcher_dir="/home/vagrant/build-mesos/src" --logbufsecs="0" --logging_level="INFO" --oversubscribed_resources_interval="15secs" --perf_duration="10secs" --perf_interval="1mins" --qos_correction_interval_min="0ns" --quiet="false" --recover="reconnect" --recovery_timeout="15mins" --registration_backoff_factor="10ms" --resources="cpus:2;mem:1024;disk:1024;ports:[31000-32000]" --revocable_cpu_low_priority="true" --sandbox_directory="/mnt/mesos/sandbox" --strict="true" --switch_user="true" --systemd_runtime_directory="/run/systemd/system" --version="false" --work_dir="/tmp/MasterMaintenanceTest_InverseOffersFilters_CDFgvt" I1113 16:43:58.584731 8743 credentials.hpp:85] Loading credential for authentication from '/tmp/MasterMaintenanceTest_InverseOffersFilters_CDFgvt/credential' I1113 16:43:58.584915 8743 slave.cpp:322] Slave using credential for: test-principal I1113 16:43:58.585309 8743 slave.cpp:392] Slave resources: cpus(*):2; mem(*):1024; disk(*):1024; ports(*):[31000-32000] I1113 16:43:58.585482 8743 slave.cpp:400] Slave attributes: [ ] I1113 16:43:58.585566 8743 slave.cpp:405] Slave hostname: maintenance-host-2 I1113 16:43:58.585619 8743 slave.cpp:410] Slave checkpoint: true I1113 16:43:58.586431 8743 state.cpp:54] Recovering state from '/tmp/MasterMaintenanceTest_InverseOffersFilters_CDFgvt/meta' I1113 16:43:58.586890 8745 status_update_manager.cpp:202] Recovering status update manager I1113 16:43:58.587136 8745 slave.cpp:4230] Finished recovery I1113 16:43:58.587817 8745 slave.cpp:729] New master detected at master@10.0.2.15:45384 I1113 16:43:58.587836 8747 status_update_manager.cpp:176] Pausing sending status updates I1113 16:43:58.587908 8745 slave.cpp:792] Authenticating with master master@10.0.2.15:45384 I1113 16:43:58.587934 8745 slave.cpp:797] Using default CRAM-MD5 authenticatee I1113 16:43:58.588043 8745 slave.cpp:765] Detecting new master I1113 16:43:58.588170 8745 authenticatee.cpp:123] Creating new client SASL connection I1113 16:43:58.592891 8745 master.cpp:5150] Authenticating slave(6)@10.0.2.15:45384 I1113 16:43:58.594146 8745 authenticator.cpp:100] Creating new server SASL connection I1113 16:43:58.599606 8749 authenticatee.cpp:214] Received SASL authentication mechanisms: CRAM-MD5 I1113 16:43:58.599684 8749 authenticatee.cpp:240] Attempting to authenticate with mechanism 'CRAM-MD5' I1113 16:43:58.599774 8749 authenticator.cpp:205] Received SASL authentication start I1113 16:43:58.599830 8749 authenticator.cpp:327] Authentication requires more steps I1113 ...
Story points: 3