Re: Review Request 24431: Implementing SQL mappers for saveUpdate and fetchDetails.
On Aug. 7, 2014, 3:41 a.m., Bill Farner wrote: src/main/resources/org/apache/aurora/scheduler/storage/db/JobInstanceUpdateEventMapper.xml, line 28 https://reviews.apache.org/r/24431/diff/1/?file=654336#file654336line28 If we're going to generate our own IDs, we should really let those be the foreign key references. However, i think now is a good time to revisit using the DB's generated ID. As far as i can tell, the current structure of JobUpdate works with this, since a JobUpdate is self-identifying. For objects that are not self-identifying, it looks like this would work: http://stackoverflow.com/questions/18507508/mybatis-how-to-get-the-auto-generated-key-of-an-insert-mysql In this case, insert() accepts MapString, Object, where one key points to the POJO, the other points to the returned autogenerated key. You would need this snippet below the insert statement: selectKey resultType=long order=AFTER keyProperty=returnedId SELECT LAST_INSERT_ID() /selectKey Not terribly elegant, but avoids broader exposure of this limitation. Bill Farner wrote: I played around with this idea on top of your patch, and it does work as expected. The exception, of course, is MERGE. In that case, you need a small workaround: MERGE INTO table ( id, ... } VALUES ( if test=id == 0 null /if if test=id != 0 #{id} /if, ) I have actually made it work for task configs without a selectKey. I am passing a Result object into the insert() instead of Map. Will use this approach in the next CR. However, I am still concerned about it for updates. Relying on auto-generated keys requires stable IDs to guarantee correct relationships between tables. Since we re-populate the entire DB on failover, there are no hard guarantees the order will be preserved on re-insertion. Any shift in IDs on re-insertion into job_updates table would abandon/misplace records in event tables. Also, using pre-generated update IDs make tests simpler (i.e. no need to modify saved objects before asserting them against fetched ones). - Maxim --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/24431/#review49860 --- On Aug. 7, 2014, 12:01 a.m., Maxim Khutornenko wrote: --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/24431/ --- (Updated Aug. 7, 2014, 12:01 a.m.) Review request for Aurora, David McLaughlin and Bill Farner. Bugs: AURORA-612 https://issues.apache.org/jira/browse/AURORA-612 Repository: aurora Description --- Adding SQL support for saving updates and fetching update details. The configuration and updateOnlyTheseInstances option support will come separately. Diffs - src/main/java/org/apache/aurora/scheduler/storage/db/DBJobUpdateStore.java 869590ed3c43c64936af42e60d82f5a6938475d3 src/main/java/org/apache/aurora/scheduler/storage/db/DbModule.java 5d6521813e40eed5cf7e6e0285a7400624c4c5b2 src/main/java/org/apache/aurora/scheduler/storage/db/DbStorage.java 8a573f7b04ecc37a19e3886f334f626af577839a src/main/java/org/apache/aurora/scheduler/storage/db/JobInstanceUpdateEventMapper.java PRE-CREATION src/main/java/org/apache/aurora/scheduler/storage/db/JobKeyMapper.java 844714c08cdaf280c8862e933a95ab009bd9e464 src/main/java/org/apache/aurora/scheduler/storage/db/JobUpdateDetailsMapper.java PRE-CREATION src/main/java/org/apache/aurora/scheduler/storage/db/JobUpdateEventMapper.java PRE-CREATION src/main/java/org/apache/aurora/scheduler/storage/db/JobUpdateMapper.java PRE-CREATION src/main/java/org/apache/aurora/scheduler/storage/db/LockKeyMapper.java 618d5b72fd3078ef59571b5f2e33ecce3eb7386c src/main/java/org/apache/aurora/scheduler/storage/db/typehandlers/JobUpdateActionTypeHandler.java PRE-CREATION src/main/java/org/apache/aurora/scheduler/storage/db/typehandlers/JobUpdateStatusTypeHandler.java PRE-CREATION src/main/java/org/apache/aurora/scheduler/storage/db/typehandlers/TypeHandlers.java f014123348e2b229b2bb9be0dce424327ec0dfbe src/main/resources/org/apache/aurora/scheduler/storage/db/JobInstanceUpdateEventMapper.xml PRE-CREATION src/main/resources/org/apache/aurora/scheduler/storage/db/JobKeyMapper.xml 3997f9833a7289a49e4f4972efc3f953674bd41b src/main/resources/org/apache/aurora/scheduler/storage/db/JobUpdateDetailsMapper.xml PRE-CREATION src/main/resources/org/apache/aurora/scheduler/storage/db/JobUpdateEventMapper.xml PRE-CREATION
Re: Review Request 24431: Implementing SQL mappers for saveUpdate and fetchDetails.
On Aug. 7, 2014, 3:41 a.m., Bill Farner wrote: src/main/resources/org/apache/aurora/scheduler/storage/db/JobInstanceUpdateEventMapper.xml, line 28 https://reviews.apache.org/r/24431/diff/1/?file=654336#file654336line28 If we're going to generate our own IDs, we should really let those be the foreign key references. However, i think now is a good time to revisit using the DB's generated ID. As far as i can tell, the current structure of JobUpdate works with this, since a JobUpdate is self-identifying. For objects that are not self-identifying, it looks like this would work: http://stackoverflow.com/questions/18507508/mybatis-how-to-get-the-auto-generated-key-of-an-insert-mysql In this case, insert() accepts MapString, Object, where one key points to the POJO, the other points to the returned autogenerated key. You would need this snippet below the insert statement: selectKey resultType=long order=AFTER keyProperty=returnedId SELECT LAST_INSERT_ID() /selectKey Not terribly elegant, but avoids broader exposure of this limitation. Bill Farner wrote: I played around with this idea on top of your patch, and it does work as expected. The exception, of course, is MERGE. In that case, you need a small workaround: MERGE INTO table ( id, ... } VALUES ( if test=id == 0 null /if if test=id != 0 #{id} /if, ) Maxim Khutornenko wrote: I have actually made it work for task configs without a selectKey. I am passing a Result object into the insert() instead of Map. Will use this approach in the next CR. However, I am still concerned about it for updates. Relying on auto-generated keys requires stable IDs to guarantee correct relationships between tables. Since we re-populate the entire DB on failover, there are no hard guarantees the order will be preserved on re-insertion. Any shift in IDs on re-insertion into job_updates table would abandon/misplace records in event tables. Also, using pre-generated update IDs make tests simpler (i.e. no need to modify saved objects before asserting them against fetched ones). Since we re-populate the entire DB on failover, there are no hard guarantees the order will be preserved on re-insertion If i understand you correctly - you mean an insert with a non-null id being replaced with an auto-generated value when we insert on failover? Seems like that should be easy to test against, barring non-deterministic behavior. - Bill --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/24431/#review49860 --- On Aug. 7, 2014, 12:01 a.m., Maxim Khutornenko wrote: --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/24431/ --- (Updated Aug. 7, 2014, 12:01 a.m.) Review request for Aurora, David McLaughlin and Bill Farner. Bugs: AURORA-612 https://issues.apache.org/jira/browse/AURORA-612 Repository: aurora Description --- Adding SQL support for saving updates and fetching update details. The configuration and updateOnlyTheseInstances option support will come separately. Diffs - src/main/java/org/apache/aurora/scheduler/storage/db/DBJobUpdateStore.java 869590ed3c43c64936af42e60d82f5a6938475d3 src/main/java/org/apache/aurora/scheduler/storage/db/DbModule.java 5d6521813e40eed5cf7e6e0285a7400624c4c5b2 src/main/java/org/apache/aurora/scheduler/storage/db/DbStorage.java 8a573f7b04ecc37a19e3886f334f626af577839a src/main/java/org/apache/aurora/scheduler/storage/db/JobInstanceUpdateEventMapper.java PRE-CREATION src/main/java/org/apache/aurora/scheduler/storage/db/JobKeyMapper.java 844714c08cdaf280c8862e933a95ab009bd9e464 src/main/java/org/apache/aurora/scheduler/storage/db/JobUpdateDetailsMapper.java PRE-CREATION src/main/java/org/apache/aurora/scheduler/storage/db/JobUpdateEventMapper.java PRE-CREATION src/main/java/org/apache/aurora/scheduler/storage/db/JobUpdateMapper.java PRE-CREATION src/main/java/org/apache/aurora/scheduler/storage/db/LockKeyMapper.java 618d5b72fd3078ef59571b5f2e33ecce3eb7386c src/main/java/org/apache/aurora/scheduler/storage/db/typehandlers/JobUpdateActionTypeHandler.java PRE-CREATION src/main/java/org/apache/aurora/scheduler/storage/db/typehandlers/JobUpdateStatusTypeHandler.java PRE-CREATION src/main/java/org/apache/aurora/scheduler/storage/db/typehandlers/TypeHandlers.java f014123348e2b229b2bb9be0dce424327ec0dfbe
Re: Review Request 24431: Implementing SQL mappers for saveUpdate and fetchDetails.
On Aug. 7, 2014, 3:41 a.m., Bill Farner wrote: src/main/resources/org/apache/aurora/scheduler/storage/db/JobInstanceUpdateEventMapper.xml, line 28 https://reviews.apache.org/r/24431/diff/1/?file=654336#file654336line28 If we're going to generate our own IDs, we should really let those be the foreign key references. However, i think now is a good time to revisit using the DB's generated ID. As far as i can tell, the current structure of JobUpdate works with this, since a JobUpdate is self-identifying. For objects that are not self-identifying, it looks like this would work: http://stackoverflow.com/questions/18507508/mybatis-how-to-get-the-auto-generated-key-of-an-insert-mysql In this case, insert() accepts MapString, Object, where one key points to the POJO, the other points to the returned autogenerated key. You would need this snippet below the insert statement: selectKey resultType=long order=AFTER keyProperty=returnedId SELECT LAST_INSERT_ID() /selectKey Not terribly elegant, but avoids broader exposure of this limitation. Bill Farner wrote: I played around with this idea on top of your patch, and it does work as expected. The exception, of course, is MERGE. In that case, you need a small workaround: MERGE INTO table ( id, ... } VALUES ( if test=id == 0 null /if if test=id != 0 #{id} /if, ) Maxim Khutornenko wrote: I have actually made it work for task configs without a selectKey. I am passing a Result object into the insert() instead of Map. Will use this approach in the next CR. However, I am still concerned about it for updates. Relying on auto-generated keys requires stable IDs to guarantee correct relationships between tables. Since we re-populate the entire DB on failover, there are no hard guarantees the order will be preserved on re-insertion. Any shift in IDs on re-insertion into job_updates table would abandon/misplace records in event tables. Also, using pre-generated update IDs make tests simpler (i.e. no need to modify saved objects before asserting them against fetched ones). Bill Farner wrote: Since we re-populate the entire DB on failover, there are no hard guarantees the order will be preserved on re-insertion If i understand you correctly - you mean an insert with a non-null id being replaced with an auto-generated value when we insert on failover? Seems like that should be easy to test against, barring non-deterministic behavior. Maxim and i discussed this some more offline, and ultimately we decided that counting on the ability to specify a value for an IDENTITY column is not a great idea, and even if it works with H2 it may not with other DB vendors in the future. We'll stick with the self-generated updateId string. - Bill --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/24431/#review49860 --- On Aug. 7, 2014, 12:01 a.m., Maxim Khutornenko wrote: --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/24431/ --- (Updated Aug. 7, 2014, 12:01 a.m.) Review request for Aurora, David McLaughlin and Bill Farner. Bugs: AURORA-612 https://issues.apache.org/jira/browse/AURORA-612 Repository: aurora Description --- Adding SQL support for saving updates and fetching update details. The configuration and updateOnlyTheseInstances option support will come separately. Diffs - src/main/java/org/apache/aurora/scheduler/storage/db/DBJobUpdateStore.java 869590ed3c43c64936af42e60d82f5a6938475d3 src/main/java/org/apache/aurora/scheduler/storage/db/DbModule.java 5d6521813e40eed5cf7e6e0285a7400624c4c5b2 src/main/java/org/apache/aurora/scheduler/storage/db/DbStorage.java 8a573f7b04ecc37a19e3886f334f626af577839a src/main/java/org/apache/aurora/scheduler/storage/db/JobInstanceUpdateEventMapper.java PRE-CREATION src/main/java/org/apache/aurora/scheduler/storage/db/JobKeyMapper.java 844714c08cdaf280c8862e933a95ab009bd9e464 src/main/java/org/apache/aurora/scheduler/storage/db/JobUpdateDetailsMapper.java PRE-CREATION src/main/java/org/apache/aurora/scheduler/storage/db/JobUpdateEventMapper.java PRE-CREATION src/main/java/org/apache/aurora/scheduler/storage/db/JobUpdateMapper.java PRE-CREATION src/main/java/org/apache/aurora/scheduler/storage/db/LockKeyMapper.java 618d5b72fd3078ef59571b5f2e33ecce3eb7386c
Review Request 24466: Silence another flaky test.
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/24466/ --- Review request for Aurora and Bill Farner. Repository: aurora Description --- Silence another flaky test. Diffs - src/test/python/apache/aurora/executor/common/test_announcer.py 6f1bd93626823155658cfe81ea3427aead4365f2 Diff: https://reviews.apache.org/r/24466/diff/ Testing --- I cannot reproduce the build breakage on either the vagrant image or my development environment. Silencing until we have a better solution for running these tests in isolation. Thanks, Brian Wickman
Re: Review Request 24466: Silence another flaky test.
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/24466/#review49946 --- Ship it! Ship It! - Bill Farner On Aug. 7, 2014, 8:10 p.m., Brian Wickman wrote: --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/24466/ --- (Updated Aug. 7, 2014, 8:10 p.m.) Review request for Aurora and Bill Farner. Repository: aurora Description --- Silence another flaky test. Diffs - src/test/python/apache/aurora/executor/common/test_announcer.py 6f1bd93626823155658cfe81ea3427aead4365f2 Diff: https://reviews.apache.org/r/24466/diff/ Testing --- I cannot reproduce the build breakage on either the vagrant image or my development environment. Silencing until we have a better solution for running these tests in isolation. Thanks, Brian Wickman
Re: Review Request 24431: Implementing SQL mappers for saveUpdate and fetchDetails.
On Aug. 7, 2014, 4:39 a.m., Bill Farner wrote: I missed this in a previous round, but i noticed that JobUpdate and JobUpdateSummary both have an updateId field. Should the one in JobUpdate go away? struct JobUpdate { 1: string updateId 2: JobUpdateSummary summary ... } struct JobUpdateSummary { 1: string updateId ... } Dropped from here and JobConfiguration. Only JobUpdateSummary now has it. - Maxim --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/24431/#review49863 --- On Aug. 7, 2014, 12:01 a.m., Maxim Khutornenko wrote: --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/24431/ --- (Updated Aug. 7, 2014, 12:01 a.m.) Review request for Aurora, David McLaughlin and Bill Farner. Bugs: AURORA-612 https://issues.apache.org/jira/browse/AURORA-612 Repository: aurora Description --- Adding SQL support for saving updates and fetching update details. The configuration and updateOnlyTheseInstances option support will come separately. Diffs - src/main/java/org/apache/aurora/scheduler/storage/db/DBJobUpdateStore.java 869590ed3c43c64936af42e60d82f5a6938475d3 src/main/java/org/apache/aurora/scheduler/storage/db/DbModule.java 5d6521813e40eed5cf7e6e0285a7400624c4c5b2 src/main/java/org/apache/aurora/scheduler/storage/db/DbStorage.java 8a573f7b04ecc37a19e3886f334f626af577839a src/main/java/org/apache/aurora/scheduler/storage/db/JobInstanceUpdateEventMapper.java PRE-CREATION src/main/java/org/apache/aurora/scheduler/storage/db/JobKeyMapper.java 844714c08cdaf280c8862e933a95ab009bd9e464 src/main/java/org/apache/aurora/scheduler/storage/db/JobUpdateDetailsMapper.java PRE-CREATION src/main/java/org/apache/aurora/scheduler/storage/db/JobUpdateEventMapper.java PRE-CREATION src/main/java/org/apache/aurora/scheduler/storage/db/JobUpdateMapper.java PRE-CREATION src/main/java/org/apache/aurora/scheduler/storage/db/LockKeyMapper.java 618d5b72fd3078ef59571b5f2e33ecce3eb7386c src/main/java/org/apache/aurora/scheduler/storage/db/typehandlers/JobUpdateActionTypeHandler.java PRE-CREATION src/main/java/org/apache/aurora/scheduler/storage/db/typehandlers/JobUpdateStatusTypeHandler.java PRE-CREATION src/main/java/org/apache/aurora/scheduler/storage/db/typehandlers/TypeHandlers.java f014123348e2b229b2bb9be0dce424327ec0dfbe src/main/resources/org/apache/aurora/scheduler/storage/db/JobInstanceUpdateEventMapper.xml PRE-CREATION src/main/resources/org/apache/aurora/scheduler/storage/db/JobKeyMapper.xml 3997f9833a7289a49e4f4972efc3f953674bd41b src/main/resources/org/apache/aurora/scheduler/storage/db/JobUpdateDetailsMapper.xml PRE-CREATION src/main/resources/org/apache/aurora/scheduler/storage/db/JobUpdateEventMapper.xml PRE-CREATION src/main/resources/org/apache/aurora/scheduler/storage/db/JobUpdateMapper.xml PRE-CREATION src/main/resources/org/apache/aurora/scheduler/storage/db/schema.sql eb2216ae22ae95370d0b5cd15dbb3d61fca79272 src/test/java/org/apache/aurora/scheduler/storage/db/DBJobUpdateStoreTest.java PRE-CREATION Diff: https://reviews.apache.org/r/24431/diff/ Testing --- gradle -Pq build Thanks, Maxim Khutornenko
Re: Review Request 24431: Implementing SQL mappers for saveUpdate and fetchDetails.
On Aug. 7, 2014, 3:41 a.m., Bill Farner wrote: src/main/java/org/apache/aurora/scheduler/storage/db/JobUpdateDetailsMapper.java, line 15 https://reviews.apache.org/r/24431/diff/1/?file=654329#file654329line15 s/org.apache.aurora.gen.// Done. On Aug. 7, 2014, 3:41 a.m., Bill Farner wrote: src/main/java/org/apache/aurora/scheduler/storage/db/JobUpdateDetailsMapper.java, line 18 https://reviews.apache.org/r/24431/diff/1/?file=654329#file654329line18 ditto s/if/if it/ Done. On Aug. 7, 2014, 3:41 a.m., Bill Farner wrote: src/main/resources/org/apache/aurora/scheduler/storage/db/JobInstanceUpdateEventMapper.xml, line 20 https://reviews.apache.org/r/24431/diff/1/?file=654336#file654336line20 -2 indent Done. On Aug. 7, 2014, 3:41 a.m., Bill Farner wrote: src/main/resources/org/apache/aurora/scheduler/storage/db/JobKeyMapper.xml, line 21 https://reviews.apache.org/r/24431/diff/1/?file=654337#file654337line21 After this change, can you go back and update DbLockStore to not catch PersistenceException? Good point. Done. On Aug. 7, 2014, 3:41 a.m., Bill Farner wrote: src/main/resources/org/apache/aurora/scheduler/storage/db/JobUpdateDetailsMapper.xml, line 63 https://reviews.apache.org/r/24431/diff/1/?file=654338#file654338line63 notNullColumn is new for us, can you add a comment describing why it is used? This is actually the only way to avoid creating an empty collection element out of a NULL row produced by LEFT JOIN when there are no elements on the right side. We are lucky this attribute exists at all: https://issues.apache.org/jira/browse/IBATISNET-206 On Aug. 7, 2014, 3:41 a.m., Bill Farner wrote: src/main/resources/org/apache/aurora/scheduler/storage/db/JobUpdateDetailsMapper.xml, line 34 https://reviews.apache.org/r/24431/diff/1/?file=654338#file654338line34 If you set columnPrefix=j_, you might be able to let mybatis' POJO mapping take care of the individual fields. I _think_ you'll still need to specify id though. If this works here, the approach might apply to other resultMaps in here as well. Good suggestion. Refactored a bit to make this happen. On Aug. 7, 2014, 3:41 a.m., Bill Farner wrote: src/main/resources/org/apache/aurora/scheduler/storage/db/JobUpdateDetailsMapper.xml, line 65 https://reviews.apache.org/r/24431/diff/1/?file=654338#file654338line65 columnPrefix on the collection should make fields auto-amp, with the exception of those that need special handling (id, typeHandler). Done. On Aug. 7, 2014, 3:41 a.m., Bill Farner wrote: src/main/resources/org/apache/aurora/scheduler/storage/db/JobUpdateDetailsMapper.xml, line 68 https://reviews.apache.org/r/24431/diff/1/?file=654338#file654338line68 Ditto re: columnPrefix Done. On Aug. 7, 2014, 3:41 a.m., Bill Farner wrote: src/main/resources/org/apache/aurora/scheduler/storage/db/JobUpdateMapper.xml, line 59 https://reviews.apache.org/r/24431/diff/1/?file=654340#file654340line59 Should we start leaning on the database and let 'ON DELETE CASCADE' handle child tables appropriately? I realize now i did not do this in AttributeMapper.xml, but i think it's worth considering. I tried and failed with that. Here is a related complaint: http://stackoverflow.com/questions/4151316/unable-to-cascade-delete-a-onetoone-member Will stick with current solution until I figure out how to make it work. On Aug. 7, 2014, 3:41 a.m., Bill Farner wrote: src/main/resources/org/apache/aurora/scheduler/storage/db/schema.sql, line 97 https://reviews.apache.org/r/24431/diff/1/?file=654341#file654341line97 i think you can s/BIGINT //, AFAICT h2 uses a long regardless. Not a bad idea to do this without. Dropped. Now, I wonder if INT IDENTITY is actually meaningless. We should probably drop it everywhere. On Aug. 7, 2014, 3:41 a.m., Bill Farner wrote: src/test/java/org/apache/aurora/scheduler/storage/db/DBJobUpdateStoreTest.java, line 46 https://reviews.apache.org/r/24431/diff/1/?file=654342#file654342line46 A test case for two updates with the full slew of child entries would be nice, to prove that they don't cross wires (lesson learned from my recent JOIN flub). Added. On Aug. 7, 2014, 3:41 a.m., Bill Farner wrote: src/test/java/org/apache/aurora/scheduler/storage/db/DBJobUpdateStoreTest.java, line 85 https://reviews.apache.org/r/24431/diff/1/?file=654342#file654342line85 please check that these objects are valid, not just present (equality rather than size). this implicitly tests the ordering, so you can skip the checks below. Refactored. On Aug. 7, 2014, 3:41 a.m., Bill Farner wrote: src/test/java/org/apache/aurora/scheduler/storage/db/DBJobUpdateStoreTest.java, line 135 https://reviews.apache.org/r/24431/diff/1/?file=654342#file654342line135 You could do this in an
Re: Review Request 24431: Implementing SQL mappers for saveUpdate and fetchDetails.
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/24431/ --- (Updated Aug. 7, 2014, 9:34 p.m.) Review request for Aurora, David McLaughlin and Bill Farner. Changes --- CR comments. Bugs: AURORA-612 https://issues.apache.org/jira/browse/AURORA-612 Repository: aurora Description --- Adding SQL support for saving updates and fetching update details. The configuration and updateOnlyTheseInstances option support will come separately. Diffs (updated) - src/main/java/org/apache/aurora/scheduler/storage/db/DBJobUpdateStore.java 869590ed3c43c64936af42e60d82f5a6938475d3 src/main/java/org/apache/aurora/scheduler/storage/db/DbLockStore.java 5d4da0abfd73e5ecbfb99ad81f51fca151124559 src/main/java/org/apache/aurora/scheduler/storage/db/DbModule.java 5d6521813e40eed5cf7e6e0285a7400624c4c5b2 src/main/java/org/apache/aurora/scheduler/storage/db/DbStorage.java 8a573f7b04ecc37a19e3886f334f626af577839a src/main/java/org/apache/aurora/scheduler/storage/db/JobInstanceUpdateEventMapper.java PRE-CREATION src/main/java/org/apache/aurora/scheduler/storage/db/JobKeyMapper.java 844714c08cdaf280c8862e933a95ab009bd9e464 src/main/java/org/apache/aurora/scheduler/storage/db/JobUpdateDetailsMapper.java PRE-CREATION src/main/java/org/apache/aurora/scheduler/storage/db/JobUpdateEventMapper.java PRE-CREATION src/main/java/org/apache/aurora/scheduler/storage/db/JobUpdateMapper.java PRE-CREATION src/main/java/org/apache/aurora/scheduler/storage/db/LockKeyMapper.java 618d5b72fd3078ef59571b5f2e33ecce3eb7386c src/main/java/org/apache/aurora/scheduler/storage/db/typehandlers/JobUpdateActionTypeHandler.java PRE-CREATION src/main/java/org/apache/aurora/scheduler/storage/db/typehandlers/JobUpdateStatusTypeHandler.java PRE-CREATION src/main/java/org/apache/aurora/scheduler/storage/db/typehandlers/TypeHandlers.java f014123348e2b229b2bb9be0dce424327ec0dfbe src/main/java/org/apache/aurora/scheduler/storage/log/SnapshotStoreImpl.java 5d3ec36d9907be543296847134c53e6ddc6edc70 src/main/resources/org/apache/aurora/scheduler/storage/db/JobInstanceUpdateEventMapper.xml PRE-CREATION src/main/resources/org/apache/aurora/scheduler/storage/db/JobKeyMapper.xml 3997f9833a7289a49e4f4972efc3f953674bd41b src/main/resources/org/apache/aurora/scheduler/storage/db/JobUpdateDetailsMapper.xml PRE-CREATION src/main/resources/org/apache/aurora/scheduler/storage/db/JobUpdateEventMapper.xml PRE-CREATION src/main/resources/org/apache/aurora/scheduler/storage/db/JobUpdateMapper.xml PRE-CREATION src/main/resources/org/apache/aurora/scheduler/storage/db/schema.sql eb2216ae22ae95370d0b5cd15dbb3d61fca79272 src/main/thrift/org/apache/aurora/gen/api.thrift 35d14d48f0c1ea5a4b67380e4c12b99245640a5d src/test/java/org/apache/aurora/scheduler/storage/db/DBJobUpdateStoreTest.java PRE-CREATION src/test/java/org/apache/aurora/scheduler/storage/log/LogStorageTest.java a9545e1656a3b1b0ae55155eec4f06878158d8da src/test/java/org/apache/aurora/scheduler/storage/log/SnapshotStoreImplTest.java 48600b59b918434ef963b758279c48584ccd34ef src/test/resources/org/apache/aurora/gen/api.thrift.md5 f01e4b33ee94ee7e8a36aa71688b699a87bc0566 Diff: https://reviews.apache.org/r/24431/diff/ Testing --- gradle -Pq build Thanks, Maxim Khutornenko
Re: Review Request 24431: Implementing SQL mappers for saveUpdate and fetchDetails.
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/24431/ --- (Updated Aug. 7, 2014, 10:27 p.m.) Review request for Aurora, David McLaughlin and Bill Farner. Changes --- Somehow (and I hate this uncertainty), the cascading deletes now work again without FK constraint error. Returning them back to the schema. Bugs: AURORA-612 https://issues.apache.org/jira/browse/AURORA-612 Repository: aurora Description --- Adding SQL support for saving updates and fetching update details. The configuration and updateOnlyTheseInstances option support will come separately. Diffs (updated) - src/main/java/org/apache/aurora/scheduler/storage/db/DBJobUpdateStore.java 869590ed3c43c64936af42e60d82f5a6938475d3 src/main/java/org/apache/aurora/scheduler/storage/db/DbLockStore.java 5d4da0abfd73e5ecbfb99ad81f51fca151124559 src/main/java/org/apache/aurora/scheduler/storage/db/DbModule.java 5d6521813e40eed5cf7e6e0285a7400624c4c5b2 src/main/java/org/apache/aurora/scheduler/storage/db/DbStorage.java 8a573f7b04ecc37a19e3886f334f626af577839a src/main/java/org/apache/aurora/scheduler/storage/db/JobInstanceUpdateEventMapper.java PRE-CREATION src/main/java/org/apache/aurora/scheduler/storage/db/JobKeyMapper.java 844714c08cdaf280c8862e933a95ab009bd9e464 src/main/java/org/apache/aurora/scheduler/storage/db/JobUpdateDetailsMapper.java PRE-CREATION src/main/java/org/apache/aurora/scheduler/storage/db/JobUpdateEventMapper.java PRE-CREATION src/main/java/org/apache/aurora/scheduler/storage/db/JobUpdateMapper.java PRE-CREATION src/main/java/org/apache/aurora/scheduler/storage/db/LockKeyMapper.java 618d5b72fd3078ef59571b5f2e33ecce3eb7386c src/main/java/org/apache/aurora/scheduler/storage/db/typehandlers/JobUpdateActionTypeHandler.java PRE-CREATION src/main/java/org/apache/aurora/scheduler/storage/db/typehandlers/JobUpdateStatusTypeHandler.java PRE-CREATION src/main/java/org/apache/aurora/scheduler/storage/db/typehandlers/TypeHandlers.java f014123348e2b229b2bb9be0dce424327ec0dfbe src/main/java/org/apache/aurora/scheduler/storage/log/SnapshotStoreImpl.java 5d3ec36d9907be543296847134c53e6ddc6edc70 src/main/resources/org/apache/aurora/scheduler/storage/db/JobInstanceUpdateEventMapper.xml PRE-CREATION src/main/resources/org/apache/aurora/scheduler/storage/db/JobKeyMapper.xml 3997f9833a7289a49e4f4972efc3f953674bd41b src/main/resources/org/apache/aurora/scheduler/storage/db/JobUpdateDetailsMapper.xml PRE-CREATION src/main/resources/org/apache/aurora/scheduler/storage/db/JobUpdateEventMapper.xml PRE-CREATION src/main/resources/org/apache/aurora/scheduler/storage/db/JobUpdateMapper.xml PRE-CREATION src/main/resources/org/apache/aurora/scheduler/storage/db/schema.sql eb2216ae22ae95370d0b5cd15dbb3d61fca79272 src/main/thrift/org/apache/aurora/gen/api.thrift 35d14d48f0c1ea5a4b67380e4c12b99245640a5d src/test/java/org/apache/aurora/scheduler/storage/db/DBJobUpdateStoreTest.java PRE-CREATION src/test/java/org/apache/aurora/scheduler/storage/log/LogStorageTest.java a9545e1656a3b1b0ae55155eec4f06878158d8da src/test/java/org/apache/aurora/scheduler/storage/log/SnapshotStoreImplTest.java 48600b59b918434ef963b758279c48584ccd34ef src/test/resources/org/apache/aurora/gen/api.thrift.md5 f01e4b33ee94ee7e8a36aa71688b699a87bc0566 Diff: https://reviews.apache.org/r/24431/diff/ Testing --- gradle -Pq build Thanks, Maxim Khutornenko
Re: Review Request 24431: Implementing SQL mappers for saveUpdate and fetchDetails.
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/24431/ --- (Updated Aug. 7, 2014, 11:05 p.m.) Review request for Aurora, David McLaughlin and Bill Farner. Changes --- Dropping type from all IDENTITY columns in schema. Bugs: AURORA-612 https://issues.apache.org/jira/browse/AURORA-612 Repository: aurora Description --- Adding SQL support for saving updates and fetching update details. The configuration and updateOnlyTheseInstances option support will come separately. Diffs (updated) - src/main/java/org/apache/aurora/scheduler/storage/db/DBJobUpdateStore.java 869590ed3c43c64936af42e60d82f5a6938475d3 src/main/java/org/apache/aurora/scheduler/storage/db/DbLockStore.java 5d4da0abfd73e5ecbfb99ad81f51fca151124559 src/main/java/org/apache/aurora/scheduler/storage/db/DbModule.java 5d6521813e40eed5cf7e6e0285a7400624c4c5b2 src/main/java/org/apache/aurora/scheduler/storage/db/DbStorage.java 8a573f7b04ecc37a19e3886f334f626af577839a src/main/java/org/apache/aurora/scheduler/storage/db/JobInstanceUpdateEventMapper.java PRE-CREATION src/main/java/org/apache/aurora/scheduler/storage/db/JobKeyMapper.java 844714c08cdaf280c8862e933a95ab009bd9e464 src/main/java/org/apache/aurora/scheduler/storage/db/JobUpdateDetailsMapper.java PRE-CREATION src/main/java/org/apache/aurora/scheduler/storage/db/JobUpdateEventMapper.java PRE-CREATION src/main/java/org/apache/aurora/scheduler/storage/db/JobUpdateMapper.java PRE-CREATION src/main/java/org/apache/aurora/scheduler/storage/db/LockKeyMapper.java 618d5b72fd3078ef59571b5f2e33ecce3eb7386c src/main/java/org/apache/aurora/scheduler/storage/db/typehandlers/JobUpdateActionTypeHandler.java PRE-CREATION src/main/java/org/apache/aurora/scheduler/storage/db/typehandlers/JobUpdateStatusTypeHandler.java PRE-CREATION src/main/java/org/apache/aurora/scheduler/storage/db/typehandlers/TypeHandlers.java f014123348e2b229b2bb9be0dce424327ec0dfbe src/main/java/org/apache/aurora/scheduler/storage/log/SnapshotStoreImpl.java 5d3ec36d9907be543296847134c53e6ddc6edc70 src/main/resources/org/apache/aurora/scheduler/storage/db/JobInstanceUpdateEventMapper.xml PRE-CREATION src/main/resources/org/apache/aurora/scheduler/storage/db/JobKeyMapper.xml 3997f9833a7289a49e4f4972efc3f953674bd41b src/main/resources/org/apache/aurora/scheduler/storage/db/JobUpdateDetailsMapper.xml PRE-CREATION src/main/resources/org/apache/aurora/scheduler/storage/db/JobUpdateEventMapper.xml PRE-CREATION src/main/resources/org/apache/aurora/scheduler/storage/db/JobUpdateMapper.xml PRE-CREATION src/main/resources/org/apache/aurora/scheduler/storage/db/schema.sql eb2216ae22ae95370d0b5cd15dbb3d61fca79272 src/main/thrift/org/apache/aurora/gen/api.thrift 35d14d48f0c1ea5a4b67380e4c12b99245640a5d src/test/java/org/apache/aurora/scheduler/storage/db/DBJobUpdateStoreTest.java PRE-CREATION src/test/java/org/apache/aurora/scheduler/storage/log/LogStorageTest.java a9545e1656a3b1b0ae55155eec4f06878158d8da src/test/java/org/apache/aurora/scheduler/storage/log/SnapshotStoreImplTest.java 48600b59b918434ef963b758279c48584ccd34ef src/test/resources/org/apache/aurora/gen/api.thrift.md5 f01e4b33ee94ee7e8a36aa71688b699a87bc0566 Diff: https://reviews.apache.org/r/24431/diff/ Testing --- gradle -Pq build Thanks, Maxim Khutornenko
Re: Review Request 23348: Upgrading Mesos version from 0.18.0 to 0.19.0
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/23348/#review49964 --- Sorry for the turnaround, would you mind rebasing again. Looks like mesos-0.20.0 is out so maybe we should discard this review and go straight to that? - Kevin Sweeney On July 30, 2014, 1:25 p.m., Dominic Hamon wrote: --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/23348/ --- (Updated July 30, 2014, 1:25 p.m.) Review request for Aurora, Joe Smith, Kevin Sweeney, and Bill Farner. Bugs: AURORA-579 https://issues.apache.org/jira/browse/AURORA-579 Repository: aurora Description --- Upgrading Mesos version from 0.18.0 to 0.19.0 Diffs - 3rdparty/python/BUILD 122f71db0bc6f37c19ae0f3cb2fcade8321404e6 build.gradle 6c758f690b87eede3ae3a7c54fabac20db543840 examples/scheduler/scheduler-local.sh 9f77af7365c5f1953166cb50ce3903f0558cb79f examples/vagrant/provision-dev-cluster.sh 97bb877a029fc4c1f32811d0c53be2761fbffae8 Diff: https://reviews.apache.org/r/23348/diff/ Testing --- ./gradlew build Thanks, Dominic Hamon
Re: Review Request 23348: Upgrading Mesos version from 0.18.0 to 0.19.0
On Aug. 7, 2014, 4:05 p.m., Kevin Sweeney wrote: Sorry for the turnaround, would you mind rebasing again. Looks like mesos-0.20.0 is out so maybe we should discard this review and go straight to that? Bill: I'll be out on vacation starting tomorrow, would you mind committing this if dhamon sends an updated patch? - Kevin --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/23348/#review49964 --- On July 30, 2014, 1:25 p.m., Dominic Hamon wrote: --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/23348/ --- (Updated July 30, 2014, 1:25 p.m.) Review request for Aurora, Joe Smith, Kevin Sweeney, and Bill Farner. Bugs: AURORA-579 https://issues.apache.org/jira/browse/AURORA-579 Repository: aurora Description --- Upgrading Mesos version from 0.18.0 to 0.19.0 Diffs - 3rdparty/python/BUILD 122f71db0bc6f37c19ae0f3cb2fcade8321404e6 build.gradle 6c758f690b87eede3ae3a7c54fabac20db543840 examples/scheduler/scheduler-local.sh 9f77af7365c5f1953166cb50ce3903f0558cb79f examples/vagrant/provision-dev-cluster.sh 97bb877a029fc4c1f32811d0c53be2761fbffae8 Diff: https://reviews.apache.org/r/23348/diff/ Testing --- ./gradlew build Thanks, Dominic Hamon
Re: Review Request 23348: Upgrading Mesos version from 0.18.0 to 0.19.0
On Aug. 7, 2014, 11:05 p.m., Kevin Sweeney wrote: Sorry for the turnaround, would you mind rebasing again. Looks like mesos-0.20.0 is out so maybe we should discard this review and go straight to that? Kevin Sweeney wrote: Bill: I'll be out on vacation starting tomorrow, would you mind committing this if dhamon sends an updated patch? Sure thing. You can collect your review delay demerits on Monday. - Bill --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/23348/#review49964 --- On July 30, 2014, 8:25 p.m., Dominic Hamon wrote: --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/23348/ --- (Updated July 30, 2014, 8:25 p.m.) Review request for Aurora, Joe Smith, Kevin Sweeney, and Bill Farner. Bugs: AURORA-579 https://issues.apache.org/jira/browse/AURORA-579 Repository: aurora Description --- Upgrading Mesos version from 0.18.0 to 0.19.0 Diffs - 3rdparty/python/BUILD 122f71db0bc6f37c19ae0f3cb2fcade8321404e6 build.gradle 6c758f690b87eede3ae3a7c54fabac20db543840 examples/scheduler/scheduler-local.sh 9f77af7365c5f1953166cb50ce3903f0558cb79f examples/vagrant/provision-dev-cluster.sh 97bb877a029fc4c1f32811d0c53be2761fbffae8 Diff: https://reviews.apache.org/r/23348/diff/ Testing --- ./gradlew build Thanks, Dominic Hamon
Re: Review Request 24465: Add a one-way job update controller.
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/24465/ --- (Updated Aug. 7, 2014, 11:11 p.m.) Review request for Aurora, Kevin Sweeney and Maxim Khutornenko. Changes --- Small interface tweaks - made the key identifier type generic, collapsed the two evaluate functions into one. Bugs: AURORA-613 https://issues.apache.org/jira/browse/AURORA-613 Repository: aurora Description --- There are 3 levels to performing an update: 1. Move the job from state A to state B, roll back on failure 2. Take a job from state A to state B 3. Take an instance from state A to state B This implements level 2. I made the OneWayJobUpdater generic, which actually simplified both implementation and testing, since it is only responsible for relaying that state down to level 3. Diffs (updated) - src/main/java/org/apache/aurora/scheduler/updater/InstanceStateProvider.java PRE-CREATION src/main/java/org/apache/aurora/scheduler/updater/InstanceUpdater.java 7476d82e9691449fa968c5fc4c5af76837a5c9cf src/main/java/org/apache/aurora/scheduler/updater/OneWayJobUpdater.java PRE-CREATION src/main/java/org/apache/aurora/scheduler/updater/StateEvaluator.java PRE-CREATION src/test/java/org/apache/aurora/scheduler/updater/InstanceUpdaterTest.java dda1b73ead847e5ee9c5c7bc8be3cd8a7f59ac80 src/test/java/org/apache/aurora/scheduler/updater/OneWayJobUpdaterTest.java PRE-CREATION Diff: https://reviews.apache.org/r/24465/diff/ Testing --- ./gradlew build -Pq OneWayJobUpdater has 100% instruction and branch coverage. Thanks, Bill Farner
Re: Review Request 23348: Upgrading Mesos version from 0.18.0 to 0.19.0
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/23348/ --- (Updated Aug. 7, 2014, 4:20 p.m.) Review request for Aurora, Joe Smith, Kevin Sweeney, and Bill Farner. Changes --- rebased Bugs: AURORA-579 https://issues.apache.org/jira/browse/AURORA-579 Repository: aurora Description --- Upgrading Mesos version from 0.18.0 to 0.19.0 Diffs (updated) - 3rdparty/python/BUILD 122f71db0bc6f37c19ae0f3cb2fcade8321404e6 build.gradle 6c758f690b87eede3ae3a7c54fabac20db543840 examples/scheduler/scheduler-local.sh 9f77af7365c5f1953166cb50ce3903f0558cb79f examples/vagrant/provision-dev-cluster.sh 97bb877a029fc4c1f32811d0c53be2761fbffae8 Diff: https://reviews.apache.org/r/23348/diff/ Testing --- ./gradlew build Thanks, Dominic Hamon
Re: Review Request 24431: Implementing SQL mappers for saveUpdate and fetchDetails.
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/24431/#review49971 --- Ship it! LGTM once tests cover more than just the happy cases. src/main/java/org/apache/aurora/scheduler/storage/db/DBJobUpdateStore.java https://reviews.apache.org/r/24431/#comment87430 nit: use the same order for fields, constructor args, and assignments - Bill Farner On Aug. 7, 2014, 11:05 p.m., Maxim Khutornenko wrote: --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/24431/ --- (Updated Aug. 7, 2014, 11:05 p.m.) Review request for Aurora, David McLaughlin and Bill Farner. Bugs: AURORA-612 https://issues.apache.org/jira/browse/AURORA-612 Repository: aurora Description --- Adding SQL support for saving updates and fetching update details. The configuration and updateOnlyTheseInstances option support will come separately. Diffs - src/main/java/org/apache/aurora/scheduler/storage/db/DBJobUpdateStore.java 869590ed3c43c64936af42e60d82f5a6938475d3 src/main/java/org/apache/aurora/scheduler/storage/db/DbLockStore.java 5d4da0abfd73e5ecbfb99ad81f51fca151124559 src/main/java/org/apache/aurora/scheduler/storage/db/DbModule.java 5d6521813e40eed5cf7e6e0285a7400624c4c5b2 src/main/java/org/apache/aurora/scheduler/storage/db/DbStorage.java 8a573f7b04ecc37a19e3886f334f626af577839a src/main/java/org/apache/aurora/scheduler/storage/db/JobInstanceUpdateEventMapper.java PRE-CREATION src/main/java/org/apache/aurora/scheduler/storage/db/JobKeyMapper.java 844714c08cdaf280c8862e933a95ab009bd9e464 src/main/java/org/apache/aurora/scheduler/storage/db/JobUpdateDetailsMapper.java PRE-CREATION src/main/java/org/apache/aurora/scheduler/storage/db/JobUpdateEventMapper.java PRE-CREATION src/main/java/org/apache/aurora/scheduler/storage/db/JobUpdateMapper.java PRE-CREATION src/main/java/org/apache/aurora/scheduler/storage/db/LockKeyMapper.java 618d5b72fd3078ef59571b5f2e33ecce3eb7386c src/main/java/org/apache/aurora/scheduler/storage/db/typehandlers/JobUpdateActionTypeHandler.java PRE-CREATION src/main/java/org/apache/aurora/scheduler/storage/db/typehandlers/JobUpdateStatusTypeHandler.java PRE-CREATION src/main/java/org/apache/aurora/scheduler/storage/db/typehandlers/TypeHandlers.java f014123348e2b229b2bb9be0dce424327ec0dfbe src/main/java/org/apache/aurora/scheduler/storage/log/SnapshotStoreImpl.java 5d3ec36d9907be543296847134c53e6ddc6edc70 src/main/resources/org/apache/aurora/scheduler/storage/db/JobInstanceUpdateEventMapper.xml PRE-CREATION src/main/resources/org/apache/aurora/scheduler/storage/db/JobKeyMapper.xml 3997f9833a7289a49e4f4972efc3f953674bd41b src/main/resources/org/apache/aurora/scheduler/storage/db/JobUpdateDetailsMapper.xml PRE-CREATION src/main/resources/org/apache/aurora/scheduler/storage/db/JobUpdateEventMapper.xml PRE-CREATION src/main/resources/org/apache/aurora/scheduler/storage/db/JobUpdateMapper.xml PRE-CREATION src/main/resources/org/apache/aurora/scheduler/storage/db/schema.sql eb2216ae22ae95370d0b5cd15dbb3d61fca79272 src/main/thrift/org/apache/aurora/gen/api.thrift 35d14d48f0c1ea5a4b67380e4c12b99245640a5d src/test/java/org/apache/aurora/scheduler/storage/db/DBJobUpdateStoreTest.java PRE-CREATION src/test/java/org/apache/aurora/scheduler/storage/log/LogStorageTest.java a9545e1656a3b1b0ae55155eec4f06878158d8da src/test/java/org/apache/aurora/scheduler/storage/log/SnapshotStoreImplTest.java 48600b59b918434ef963b758279c48584ccd34ef src/test/resources/org/apache/aurora/gen/api.thrift.md5 f01e4b33ee94ee7e8a36aa71688b699a87bc0566 Diff: https://reviews.apache.org/r/24431/diff/ Testing --- gradle -Pq build Thanks, Maxim Khutornenko
Review Request 24486: Drop HostAttributes with no slaveId when recovering from persistent storage.
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/24486/ --- Review request for Aurora and Kevin Sweeney. Bugs: AURORA-641 https://issues.apache.org/jira/browse/AURORA-641 Repository: aurora Description --- Drop HostAttributes with no slaveId when recovering from persistent storage. Diffs - src/main/java/org/apache/aurora/scheduler/storage/log/LogStorage.java 345442035ccfa0a04a92f9eb389add50d0a492d9 src/main/java/org/apache/aurora/scheduler/storage/log/SnapshotStoreImpl.java 5d3ec36d9907be543296847134c53e6ddc6edc70 src/test/java/org/apache/aurora/scheduler/storage/log/LogStorageTest.java a9545e1656a3b1b0ae55155eec4f06878158d8da src/test/java/org/apache/aurora/scheduler/storage/log/SnapshotStoreImplTest.java 48600b59b918434ef963b758279c48584ccd34ef Diff: https://reviews.apache.org/r/24486/diff/ Testing --- ./gradlew build -Pq Thanks, Bill Farner
Re: Review Request 24486: Drop HostAttributes with no slaveId when recovering from persistent storage.
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/24486/#review49987 --- Any reason to do this at write-time instead of boot-time via StorageBackfill? - Kevin Sweeney On Aug. 7, 2014, 5:42 p.m., Bill Farner wrote: --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/24486/ --- (Updated Aug. 7, 2014, 5:42 p.m.) Review request for Aurora and Kevin Sweeney. Bugs: AURORA-641 https://issues.apache.org/jira/browse/AURORA-641 Repository: aurora Description --- Drop HostAttributes with no slaveId when recovering from persistent storage. Diffs - src/main/java/org/apache/aurora/scheduler/storage/log/LogStorage.java 345442035ccfa0a04a92f9eb389add50d0a492d9 src/main/java/org/apache/aurora/scheduler/storage/log/SnapshotStoreImpl.java 5d3ec36d9907be543296847134c53e6ddc6edc70 src/test/java/org/apache/aurora/scheduler/storage/log/LogStorageTest.java a9545e1656a3b1b0ae55155eec4f06878158d8da src/test/java/org/apache/aurora/scheduler/storage/log/SnapshotStoreImplTest.java 48600b59b918434ef963b758279c48584ccd34ef Diff: https://reviews.apache.org/r/24486/diff/ Testing --- ./gradlew build -Pq Thanks, Bill Farner
Re: Review Request 24431: Implementing SQL mappers for saveUpdate and fetchDetails.
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/24431/#review49998 --- Ship it! Ship It! - David McLaughlin On Aug. 8, 2014, 12:16 a.m., Maxim Khutornenko wrote: --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/24431/ --- (Updated Aug. 8, 2014, 12:16 a.m.) Review request for Aurora, David McLaughlin and Bill Farner. Bugs: AURORA-612 https://issues.apache.org/jira/browse/AURORA-612 Repository: aurora Description --- Adding SQL support for saving updates and fetching update details. The configuration and updateOnlyTheseInstances option support will come separately. Diffs - src/main/java/org/apache/aurora/scheduler/storage/db/DBJobUpdateStore.java 869590ed3c43c64936af42e60d82f5a6938475d3 src/main/java/org/apache/aurora/scheduler/storage/db/DbLockStore.java 5d4da0abfd73e5ecbfb99ad81f51fca151124559 src/main/java/org/apache/aurora/scheduler/storage/db/DbModule.java 5d6521813e40eed5cf7e6e0285a7400624c4c5b2 src/main/java/org/apache/aurora/scheduler/storage/db/DbStorage.java 8a573f7b04ecc37a19e3886f334f626af577839a src/main/java/org/apache/aurora/scheduler/storage/db/JobInstanceUpdateEventMapper.java PRE-CREATION src/main/java/org/apache/aurora/scheduler/storage/db/JobKeyMapper.java 844714c08cdaf280c8862e933a95ab009bd9e464 src/main/java/org/apache/aurora/scheduler/storage/db/JobUpdateDetailsMapper.java PRE-CREATION src/main/java/org/apache/aurora/scheduler/storage/db/JobUpdateEventMapper.java PRE-CREATION src/main/java/org/apache/aurora/scheduler/storage/db/LockKeyMapper.java 618d5b72fd3078ef59571b5f2e33ecce3eb7386c src/main/java/org/apache/aurora/scheduler/storage/db/typehandlers/JobUpdateActionTypeHandler.java PRE-CREATION src/main/java/org/apache/aurora/scheduler/storage/db/typehandlers/JobUpdateStatusTypeHandler.java PRE-CREATION src/main/java/org/apache/aurora/scheduler/storage/db/typehandlers/TypeHandlers.java f014123348e2b229b2bb9be0dce424327ec0dfbe src/main/java/org/apache/aurora/scheduler/storage/log/SnapshotStoreImpl.java 5d3ec36d9907be543296847134c53e6ddc6edc70 src/main/resources/org/apache/aurora/scheduler/storage/db/JobInstanceUpdateEventMapper.xml PRE-CREATION src/main/resources/org/apache/aurora/scheduler/storage/db/JobKeyMapper.xml 3997f9833a7289a49e4f4972efc3f953674bd41b src/main/resources/org/apache/aurora/scheduler/storage/db/JobUpdateDetailsMapper.xml PRE-CREATION src/main/resources/org/apache/aurora/scheduler/storage/db/JobUpdateEventMapper.xml PRE-CREATION src/main/resources/org/apache/aurora/scheduler/storage/db/schema.sql eb2216ae22ae95370d0b5cd15dbb3d61fca79272 src/main/thrift/org/apache/aurora/gen/api.thrift 35d14d48f0c1ea5a4b67380e4c12b99245640a5d src/test/java/org/apache/aurora/scheduler/storage/db/DBJobUpdateStoreTest.java PRE-CREATION src/test/java/org/apache/aurora/scheduler/storage/log/LogStorageTest.java a9545e1656a3b1b0ae55155eec4f06878158d8da src/test/java/org/apache/aurora/scheduler/storage/log/SnapshotStoreImplTest.java 48600b59b918434ef963b758279c48584ccd34ef src/test/resources/org/apache/aurora/gen/api.thrift.md5 f01e4b33ee94ee7e8a36aa71688b699a87bc0566 Diff: https://reviews.apache.org/r/24431/diff/ Testing --- gradle -Pq build Thanks, Maxim Khutornenko