Project: mesos
Issue MESOS-1814: Task attempted to use more offers than requested in example jave and python frameworks
{code} [ RUN ] ExamplesTest.JavaFramework Using temporary directory '/tmp/ExamplesTest_JavaFramework_2PcFCh' Enabling authentication for the framework WARNING: Logging before InitGoogleLogging() is written to STDERR I0917 23:14:35.199069 31510 process.cpp:1771] libprocess is initialized on 127.0.1.1:34609 for 8 cpus I0917 23:14:35.199794 31510 logging.cpp:177] Logging to STDERR I0917 23:14:35.225342 31510 leveldb.cpp:176] Opened db in 22.197149ms I0917 23:14:35.231133 31510 leveldb.cpp:183] Compacted db in 5.601897ms I0917 23:14:35.231498 31510 leveldb.cpp:198] Created db iterator in 215441ns I0917 23:14:35.231608 31510 leveldb.cpp:204] Seeked to beginning of db in 11488ns I0917 23:14:35.231722 31510 leveldb.cpp:273] Iterated through 0 keys in the db in 14016ns I0917 23:14:35.231917 31510 replica.cpp:741] Replica recovered with log positions 0 -> 0 with 1 holes and 0 unlearned I0917 23:14:35.233129 31526 recover.cpp:425] Starting replica recovery I0917 23:14:35.233614 31526 recover.cpp:451] Replica is in EMPTY status I0917 23:14:35.234994 31526 replica.cpp:638] Replica in EMPTY status received a broadcasted recover request I0917 23:14:35.240116 31519 recover.cpp:188] Received a recover response from a replica in EMPTY status I0917 23:14:35.240782 31519 recover.cpp:542] Updating replica status to STARTING I0917 23:14:35.242846 31524 master.cpp:286] Master 20140917-231435-16842879-34609-31503 (saucy) started on 127.0.1.1:34609 I0917 23:14:35.243191 31524 master.cpp:332] Master only allowing authenticated frameworks to register I0917 23:14:35.243288 31524 master.cpp:339] Master allowing unauthenticated slaves to register I0917 23:14:35.243399 31524 credentials.hpp:36] Loading credentials for authentication from '/tmp/ExamplesTest_JavaFramework_2PcFCh/credentials' W0917 23:14:35.243588 31524 credentials.hpp:51] Permissions on credentials file '/tmp/ExamplesTest_JavaFramework_2PcFCh/credentials' are too open. It is recommended that your credentials file is NOT accessible by others. I0917 23:14:35.243846 31524 master.cpp:366] Authorization enabled I0917 23:14:35.244882 31520 hierarchical_allocator_process.hpp:299] Initializing hierarchical allocator process with master : master@127.0.1.1:34609 I0917 23:14:35.245224 31520 master.cpp:120] No whitelist given. Advertising offers for all slaves I0917 23:14:35.246934 31524 master.cpp:1211] The newly elected leader is master@127.0.1.1:34609 with id 20140917-231435-16842879-34609-31503 I0917 23:14:35.247234 31524 master.cpp:1224] Elected as the leading master! I0917 23:14:35.247336 31524 master.cpp:1042] Recovering from registrar I0917 23:14:35.247542 31526 registrar.cpp:313] Recovering registrar I0917 23:14:35.250555 31510 containerizer.cpp:89] Using isolation: posix/cpu,posix/mem I0917 23:14:35.252326 31510 containerizer.cpp:89] Using isolation: posix/cpu,posix/mem I0917 23:14:35.252821 31520 slave.cpp:169] Slave started on 1)@127.0.1.1:34609 I0917 23:14:35.253552 31520 slave.cpp:289] Slave resources: cpus(*):1; mem(*):1001; disk(*):24988; ports(*):[31000-32000] I0917 23:14:35.253906 31520 slave.cpp:317] Slave hostname: saucy I0917 23:14:35.254004 31520 slave.cpp:318] Slave checkpoint: true I0917 23:14:35.254818 31520 state.cpp:33] Recovering state from '/tmp/mesos-w8snRW/0/meta' I0917 23:14:35.255106 31519 leveldb.cpp:306] Persisting metadata (8 bytes) to leveldb took 13.99622ms I0917 23:14:35.255235 31519 replica.cpp:320] Persisted replica status to STARTING I0917 23:14:35.255419 31519 recover.cpp:451] Replica is in STARTING status I0917 23:14:35.255834 31519 replica.cpp:638] Replica in STARTING status received a broadcasted recover request I0917 23:14:35.256000 31519 recover.cpp:188] Received a recover response from a replica in STARTING status I0917 23:14:35.256217 31519 recover.cpp:542] Updating replica status to VOTING I0917 23:14:35.256641 31520 status_update_manager.cpp:193] Recovering status update manager I0917 23:14:35.257064 31520 containerizer.cpp:252] Recovering containerizer I0917 23:14:35.257725 31520 slave.cpp:3220] Finished recovery I0917 23:14:35.258463 31520 slave.cpp:600] New master detected at master@127.0.1.1:34609 I0917 23:14:35.258769 31524 status_update_manager.cpp:167] New master detected at master@127.0.1.1:34609 I0917 23:14:35.258885 31520 slave.cpp:636] No credentials provided. Attempting to register without authentication I0917 23:14:35.259024 31520 slave.cpp:647] Detecting new master I0917 23:14:35.259863 31520 slave.cpp:169] Slave started on 2)@127.0.1.1:34609 I0917 23:14:35.260288 31520 slave.cpp:289] Slave resources: cpus(*):1; mem(*):1001; disk(*):24988; ports(*):[31000-32000] I0917 23:14:35.260493 31520 slave.cpp:317] Slave hostname: saucy I0917 23:14:35.260588 31520 slave.cpp:318] Slave checkpoint: true I0917 23:14:35.265127 31510 containerizer.cpp:89] Using isolation: posix/cpu,posix/mem I0917 23:14:35.265877 31519 leveldb.cpp:306] Persisting metadata (8 bytes) to leveldb took 9.536278ms I0917 23:14:35.265983 31519 replica.cpp:320] Persisted replica status to VOTING I0917 23:14:35.266324 31519 recover.cpp:556] Successfully joined the Paxos group I0917 23:14:35.266511 31519 recover.cpp:440] Recover process terminated I0917 23:14:35.266978 31519 log.cpp:656] Attempting to start the writer I0917 23:14:35.268165 31523 replica.cpp:474] Replica received implicit promise request with proposal 1 I0917 23:14:35.269850 31525 slave.cpp:169] Slave started on 3)@127.0.1.1:34609 I0917 23:14:35.270365 31525 slave.cpp:289] Slave resources: cpus(*):1; mem(*):1001; disk(*):24988; ports(*):[31000-32000] I0917 23:14:35.270658 31525 slave.cpp:317] Slave hostname: saucy I0917 23:14:35.270781 31525 slave.cpp:318] Slave checkpoint: true I0917 23:14:35.271332 31525 state.cpp:33] Recovering state from '/tmp/mesos-w8snRW/2/meta' I0917 23:14:35.271580 31522 status_update_manager.cpp:193] Recovering status update manager I0917 23:14:35.271838 31522 containerizer.cpp:252] Recovering containerizer I0917 23:14:35.272238 31525 slave.cpp:3220] Finished recovery I0917 23:14:35.273002 31525 slave.cpp:600] New master detected at master@127.0.1.1:34609 I0917 23:14:35.273252 31521 status_update_manager.cpp:167] New master detected at master@127.0.1.1:34609 I0917 23:14:35.273360 31525 slave.cpp:636] No credentials provided. Attempting to register without authentication I0917 23:14:35.273507 31525 slave.cpp:647] Detecting new master I0917 23:14:35.275413 31525 state.cpp:33] Recovering state from '/tmp/mesos-w8snRW/1/meta' I0917 23:14:35.278506 31523 leveldb.cpp:306] Persisting metadata (8 bytes) to leveldb took 10.232514ms I0917 23:14:35.278712 31523 replica.cpp:342] Persisted promised to 1 I0917 23:14:35.279585 31523 coordinator.cpp:230] Coordinator attemping to fill missing position I0917 23:14:35.280400 31523 replica.cpp:375] Replica received explicit promise request for position 0 with proposal 2 I0917 23:14:35.280900 31526 status_update_manager.cpp:193] Recovering status update manager I0917 23:14:35.281282 31519 containerizer.cpp:252] Recovering containerizer I0917 23:14:35.281615 31520 slave.cpp:3220] Finished recovery I0917 23:14:35.281891 31510 sched.cpp:137] Version: 0.21.0 I0917 23:14:35.282306 31526 sched.cpp:233] New master detected at master@127.0.1.1:34609 I0917 23:14:35.282464 31526 sched.cpp:283] Authenticating with master master@127.0.1.1:34609 I0917 23:14:35.282891 31526 authenticatee.hpp:104] Initializing client SASL I0917 23:14:35.284816 31526 authenticatee.hpp:128] Creating new client SASL connection I0917 23:14:35.285428 31519 master.cpp:873] Dropping 'mesos.internal.AuthenticateMessage' message since not recovered yet I0917 23:14:35.288007 31521 slave.cpp:600] New master detected at master@127.0.1.1:34609 I0917 23:14:35.288399 31521 slave.cpp:636] No credentials provided. Attempting to register without authentication I0917 23:14:35.288535 31521 slave.cpp:647] Detecting new master I0917 23:14:35.288501 31519 status_update_manager.cpp:167] New master detected at master@127.0.1.1:34609 I0917 23:14:35.289625 31523 leveldb.cpp:343] Persisting action (8 bytes) to leveldb took 8.997343ms I0917 23:14:35.289784 31523 replica.cpp:676] Persisted action at 0 I0917 23:14:35.292667 31521 replica.cpp:508] Replica received write request for position 0 I0917 23:14:35.293112 31521 leveldb.cpp:438] Reading position from leveldb took 325638ns I0917 23:14:35.301774 31521 leveldb.cpp:343] Persisting action (14 bytes) to leveldb took 8.576338ms I0917 23:14:35.301916 31521 replica.cpp:676] Persisted action at 0 I0917 23:14:35.302289 31521 replica.cpp:655] Replica received learned notice for position 0 I0917 23:14:35.310542 31521 leveldb.cpp:343] Persisting action (16 bytes) to leveldb took 8.087789ms I0917 23:14:35.310675 31521 replica.cpp:676] Persisted action at 0 I0917 23:14:35.310946 31521 replica.cpp:661] Replica learned NOP action at position 0 I0917 23:14:35.311254 31521 log.cpp:672] Writer started with ending position 0 I0917 23:14:35.311957 31521 leveldb.cpp:438] Reading position from leveldb took 35110ns I0917 23:14:35.320283 31521 registrar.cpp:346] Successfully fetched the registry (0B) I0917 23:14:35.320513 31521 registrar.cpp:422] Attempting to update the 'registry' I0917 23:14:35.322226 31525 log.cpp:680] Attempting to append 118 bytes to the log I0917 23:14:35.322549 31525 coordinator.cpp:340] Coordinator attempting to write APPEND action at position 1 I0917 23:14:35.322931 31525 replica.cpp:508] Replica received write request for position 1 I0917 23:14:35.330169 31525 leveldb.cpp:343] Persisting action (135 bytes) to leveldb took 7.133053ms I0917 23:14:35.330340 31525 replica.cpp:676] Persisted action at 1 I0917 23:14:35.330890 31525 replica.cpp:655] Replica received learned notice for position 1 I0917 23:14:35.339218 31525 leveldb.cpp:343] Persisting action (137 bytes) to leveldb took 8.192024ms I0917 23:14:35.339380 31525 replica.cpp:676] Persisted action at 1 I0917 23:14:35.339715 31525 replica.cpp:661] Replica learned APPEND action at position 1 I0917 23:14:35.340615 31525 registrar.cpp:479] Successfully updated 'registry' I0917 23:14:35.340802 31525 registrar.cpp:372] Successfully recovered registrar I0917 23:14:35.341104 31525 log.cpp:699] Attempting to truncate the log to 1 I0917 23:14:35.341351 31525 master.cpp:1069] Recovered 0 slaves from the Registry (82B) ; allowing 10mins for slaves to re-register I0917 23:14:35.341527 31525 coordinator.cpp:340] Coordinator attempting to write TRUNCATE action at position 2 I0917 23:14:35.341964 31525 replica.cpp:508] Replica received write request for position 2 I0917 23:14:35.352336 31525 leveldb.cpp:343] Persisting action (16 bytes) to leveldb took 10.213086ms I0917 23:14:35.352494 31525 replica.cpp:676] Persisted action at 2 I0917 23:14:35.356258 31523 replica.cpp:655] Replica received learned notice for position 2 I0917 23:14:35.364992 31523 leveldb.cpp:343] Persisting action (18 bytes) to leveldb took 8.606522ms I0917 23:14:35.365166 31523 leveldb.cpp:401] Deleting ~1 keys from leveldb took 48378ns I0917 23:14:35.365404 31523 replica.cpp:676] Persisted action at 2 I0917 23:14:35.365537 31523 replica.cpp:661] Replica learned TRUNCATE action at position 2 I0917 23:14:35.568366 31523 slave.cpp:994] Will retry registration in 423.208575ms if necessary I0917 23:14:35.568840 31522 master.cpp:2870] Registering slave at slave(3)@127.0.1.1:34609 (saucy) with id 20140917-231435-16842879-34609-31503-0 I0917 23:14:35.569422 31522 registrar.cpp:422] Attempting to update the 'registry' I0917 23:14:35.572013 31522 log.cpp:680] Attempting to append 289 bytes to the log I0917 23:14:35.572273 31519 coordinator.cpp:340] Coordinator attempting to write APPEND action at position 3 I0917 23:14:35.572816 31519 replica.cpp:508] Replica received write request for position 3 I0917 23:14:35.579784 31519 leveldb.cpp:343] Persisting action (308 bytes) to leveldb took 6.809365ms I0917 23:14:35.579907 31519 replica.cpp:676] Persisted action at 3 I0917 23:14:35.580512 31519 replica.cpp:655] Replica received learned notice for position 3 I0917 23:14:35.588748 31519 leveldb.cpp:343] Persisting action (310 bytes) to leveldb took 8.112519ms I0917 23:14:35.588888 31519 replica.cpp:676] Persisted action at 3 I0917 23:14:35.588985 31519 replica.cpp:661] Replica learned APPEND action at position 3 I0917 23:14:35.589754 31519 registrar.cpp:479] Successfully updated 'registry' I0917 23:14:35.590070 31519 master.cpp:2910] Registered slave 20140917-231435-16842879-34609-31503-0 at slave(3)@127.0.1.1:34609 (saucy) I0917 23:14:35.590255 31519 master.cpp:4118] Adding slave 20140917-231435-16842879-34609-31503-0 at slave(3)@127.0.1.1:34609 (saucy) with cpus(*):1; mem(*):1001; disk(*):24988; ports(*):[31000-32000] I0917 23:14:35.590831 31519 slave.cpp:765] Registered with master master@127.0.1.1:34609; given slave ID 20140917-231435-16842879-34609-31503-0 I0917 23:14:35.589913 31523 log.cpp:699] Attempting to truncate the log to 3 I0917 23:14:35.591414 31523 coordinator.cpp:340] Coordinator attempting to write TRUNCATE action at position 4 I0917 23:14:35.591815 31523 replica.cpp:508] Replica received write request for position 4 I0917 23:14:35.591117 31521 hierarchical_allocator_process.hpp:442] Added slave 20140917-231435-16842879-34609-31503-0 (saucy) with cpus(*):1; mem(*):1001; disk(*):24988; ports(*):[31000-32000] (and cpus(*):1; mem(*):1001; disk(*):24988; ports(*):[31000-32000] available) I0917 23:14:35.592293 31521 hierarchical_allocator_process.hpp:679] Performed allocation for slave 20140917-231435-16842879-34609-31503-0 in 64364ns I0917 23:14:35.592953 31519 slave.cpp:778] Checkpointing SlaveInfo to '/tmp/mesos-w8snRW/2/meta/slaves/20140917-231435-16842879-34609-31503-0/slave.info' I0917 23:14:35.593475 31519 slave.cpp:2347] Received ping from slave-observer(1)@127.0.1.1:34609 I0917 23:14:35.601356 31523 leveldb.cpp:343] Persisting action (16 bytes) to leveldb took 9.420461ms I0917 23:14:35.601539 31523 replica.cpp:676] Persisted action at 4 I0917 23:14:35.602325 31523 replica.cpp:655] Replica received learned notice for position 4 I0917 23:14:35.610779 31523 leveldb.cpp:343] Persisting action (18 bytes) to leveldb took 8.34398ms I0917 23:14:35.611114 31523 leveldb.cpp:401] Deleting ~2 keys from leveldb took 66521ns I0917 23:14:35.611554 31523 replica.cpp:676] Persisted action at 4 I0917 23:14:35.611690 31523 replica.cpp:661] Replica learned TRUNCATE action at position 4 I0917 23:14:36.033941 31523 slave.cpp:994] Will retry registration in 322.705631ms if necessary I0917 23:14:36.034276 31521 master.cpp:2870] Registering slave at slave(1)@127.0.1.1:34609 (saucy) with id 20140917-231435-16842879-34609-31503-1 I0917 23:14:36.034536 31521 registrar.cpp:422] Attempting to update the 'registry' I0917 23:14:36.035889 31521 log.cpp:680] Attempting to append 454 bytes to the log I0917 23:14:36.036099 31524 coordinator.cpp:340] Coordinator attempting to write APPEND action at position 5 I0917 23:14:36.036416 31524 replica.cpp:508] Replica received write request for position 5 I0917 23:14:36.046672 31524 leveldb.cpp:343] Persisting action (473 bytes) to leveldb took 10.160627ms I0917 23:14:36.047035 31524 replica.cpp:676] Persisted action at 5 I0917 23:14:36.047613 31524 replica.cpp:655] Replica received learned notice for position 5 I0917 23:14:36.053006 31524 leveldb.cpp:343] Persisting action (475 bytes) to leveldb took 5.180742ms I0917 23:14:36.053246 31524 replica.cpp:676] Persisted action at 5 I0917 23:14:36.053678 31524 replica.cpp:661] Replica learned APPEND action at position 5 I0917 23:14:36.060384 31524 registrar.cpp:479] Successfully updated 'registry' I0917 23:14:36.061328 31524 master.cpp:2910] Registered slave 20140917-231435-16842879-34609-31503-1 at slave(1)@127.0.1.1:34609 (saucy) I0917 23:14:36.061537 31524 master.cpp:4118] Adding slave 20140917-231435-16842879-34609-31503-1 at slave(1)@127.0.1.1:34609 (saucy) with cpus(*):1; mem(*):1001; disk(*):24988; ports(*):[31000-32000] I0917 23:14:36.061982 31524 slave.cpp:765] Registered with master master@127.0.1.1:34609; given slave ID 20140917-231435-16842879-34609-31503-1 I0917 23:14:36.062891 31524 slave.cpp:778] Checkpointing SlaveInfo to '/tmp/mesos-w8snRW/0/meta/slaves/20140917-231435-16842879-34609-31503-1/slave.info' I0917 23:14:36.061050 31525 log.cpp:699] Attempting to truncate the log to 5 I0917 23:14:36.063244 31525 coordinator.cpp:340] Coordinator attempting to write TRUNCATE action at position 6 I0917 23:14:36.063746 31525 replica.cpp:508] Replica received write request for position 6 I0917 23:14:36.062386 31520 hierarchical_allocator_process.hpp:442] Added slave 20140917-231435-16842879-34609-31503-1 (saucy) with cpus(*):1; mem(*):1001; disk(*):24988; ports(*):[31000-32000] (and cpus(*):1; mem(*):1001; disk(*):24988; ports(*):[31000-32000] available) I0917 23:14:36.064352 31520 hierarchical_allocator_process.hpp:679] Performed allocation for slave 20140917-231435-16842879-34609-31503-1 in 35730ns I0917 23:14:36.065166 31524 slave.cpp:2347] Received ping from slave-observer(2)@127.0.1.1:34609 I0917 23:14:36.070137 31525 leveldb.cpp:343] Persisting action (16 bytes) to leveldb took 6.242192ms I0917 23:14:36.070355 31525 replica.cpp:676] Persisted action at 6 I0917 23:14:36.071005 31525 replica.cpp:655] Replica received learned notice for position 6 I0917 23:14:36.076560 31525 leveldb.cpp:343] Persisting action (18 bytes) to leveldb took 5.368532ms I0917 23:14:36.077137 31525 leveldb.cpp:401] Deleting ~2 keys from leveldb took 371245ns I0917 23:14:36.077241 31525 replica.cpp:676] Persisted action at 6 I0917 23:14:36.077345 31525 replica.cpp:661] Replica learned TRUNCATE action at position 6 I0917 23:14:36.141270 31522 slave.cpp:994] Will retry registration in 1.857205901secs if necessary I0917 23:14:36.141644 31522 master.cpp:2870] Registering slave at slave(2)@127.0.1.1:34609 (saucy) with id 20140917-231435-16842879-34609-31503-2 I0917 23:14:36.141930 31522 registrar.cpp:422] Attempting to update the 'registry' I0917 23:14:36.143316 31521 log.cpp:680] Attempting to append 619 bytes to the log I0917 23:14:36.143646 31521 coordinator.cpp:340] Coordinator attempting to write APPEND action at position 7 I0917 23:14:36.143954 31521 replica.cpp:508] Replica received write request for position 7 I0917 23:14:36.148875 31521 leveldb.cpp:343] Persisting action (638 bytes) to leveldb took 4.787834ms I0917 23:14:36.149085 31521 replica.cpp:676] Persisted action at 7 I0917 23:14:36.149673 31521 replica.cpp:655] Replica received learned notice for position 7 I0917 23:14:36.155232 31521 leveldb.cpp:343] Persisting action (640 bytes) to leveldb took 5.472209ms I0917 23:14:36.155522 31521 replica.cpp:676] Persisted action at 7 I0917 23:14:36.155936 31521 replica.cpp:661] Replica learned APPEND action at position 7 I0917 23:14:36.156481 31521 registrar.cpp:479] Successfully updated 'registry' I0917 23:14:36.156663 31526 log.cpp:699] Attempting to truncate the log to 7 I0917 23:14:36.156813 31526 coordinator.cpp:340] Coordinator attempting to write TRUNCATE action at position 8 I0917 23:14:36.157155 31526 replica.cpp:508] Replica received write request for position 8 I0917 23:14:36.157510 31520 master.cpp:2910] Registered slave 20140917-231435-16842879-34609-31503-2 at slave(2)@127.0.1.1:34609 (saucy) I0917 23:14:36.157645 31520 master.cpp:4118] Adding slave 20140917-231435-16842879-34609-31503-2 at slave(2)@127.0.1.1:34609 (saucy) with cpus(*):1; mem(*):1001; disk(*):24988; ports(*):[31000-32000] I0917 23:14:36.157928 31520 slave.cpp:765] Registered with master master@127.0.1.1:34609; given slave ID 20140917-231435-16842879-34609-31503-2 I0917 23:14:36.158304 31520 slave.cpp:778] Checkpointing SlaveInfo to '/tmp/mesos-w8snRW/1/meta/slaves/20140917-231435-16842879-34609-31503-2/slave.info' I0...
Story points: 2