Re: [Pulp-dev] filtering tasks by reserved resources

2019-07-11 Thread David Davis
I was thinking the same thing. @dalley also had the suggestion to store reserved resources in Redis and have ReservedResource be the historical model. David On Thu, Jul 11, 2019 at 4:46 PM Dennis Kliban wrote: > On Thu, Jul 11, 2019 at 4:21 PM David Davis wrote: > >> ReservedResources are uni

Re: [Pulp-dev] filtering tasks by reserved resources

2019-07-11 Thread Dennis Kliban
On Thu, Jul 11, 2019 at 4:21 PM David Davis wrote: > ReservedResources are unique[0] and the tasking code relies on this > uniqueness to prevent race conditions[1]. The db transaction prevents two > workers from acquiring a lock on the same resource. I read through 5120 but > I am not sure how th

Re: [Pulp-dev] filtering tasks by reserved resources

2019-07-11 Thread David Davis
ReservedResources are unique[0] and the tasking code relies on this uniqueness to prevent race conditions[1]. The db transaction prevents two workers from acquiring a lock on the same resource. I read through 5120 but I am not sure how the design would prevent that from happening? [0] https://gith

[Pulp-dev] filtering tasks by reserved resources

2019-07-11 Thread Dennis Kliban
I just wrote up a story to add an ability to filter Tasks by the resources that they reserved. This is needed for the migration plan tasks and will be just as useful for other tasks. The design requires storing ReservedResources permanently in the database. The status of the task associated with t

Re: [Pulp-dev] Database support in Pulp 3

2019-07-11 Thread Daniel Alley
One more note: Not all MySQL / MariaDB installations support transactions, which we use heavily (and rely on?) https://docs.djangoproject.com/en/2.2/topics/db/transactions/#transactions-in-mysql On Thu, Jul 11, 2019 at 3:55 PM David Davis wrote: > Two plugins are currently running into issues

Re: [Pulp-dev] Database support in Pulp 3

2019-07-11 Thread Bryan Kearney
On 7/11/19 3:54 PM, David Davis wrote: > Two plugins are currently running into issues trying to support > mariadb/mysql. The pulp_ansible plugin is interested in adding full text > search and JSONFields. Meanwhile, the pulp_python plugin is trying to > store emojis in text which mariadb/mysql does

[Pulp-dev] Database support in Pulp 3

2019-07-11 Thread David Davis
Two plugins are currently running into issues trying to support mariadb/mysql. The pulp_ansible plugin is interested in adding full text search and JSONFields. Meanwhile, the pulp_python plugin is trying to store emojis in text which mariadb/mysql doesn't handle well since it uses 3-byte utf-8 by d

[Pulp-dev] Breaking Changes and Travis Failures Communication Changes

2019-07-11 Thread Brian Bouterse
Based on recent feedback and discussion with the Pulp developers, we want to collectively adopt two communication practices: # Breaking Change Communication * All breaking changes are advertised to pulp-dev using [breaking] brackets in the subject * A timeline of when the change is being applied