Cannot query aptly while mirror updates #45

Closed
nightlyone opened this Issue Apr 25, 2014 · 4 comments

Comments

Projects
None yet
2 participants
@nightlyone

Updating a mirror can take quite some time, initial updates can take hours.

During this time several aptly query commands cannot be used.

This all seems to boil down to the database being locked.

One idea might be to allow (host local) communication with the long running process instead of locking out the user.

@smira

This comment has been minimized.

Show comment
Hide comment
@smira

smira Apr 26, 2014

Member

Yes, that's something like design limitation right now. Database is single user, it is locked while aptly is running executing (except for aptly serve command). One option is to close DB while downloading and re-open it at the end to store final status.

Member

smira commented Apr 26, 2014

Yes, that's something like design limitation right now. Database is single user, it is locked while aptly is running executing (except for aptly serve command). One option is to close DB while downloading and re-open it at the end to store final status.

@smira smira added this to the v0.6 milestone Apr 26, 2014

@smira

This comment has been minimized.

Show comment
Hide comment
@smira

smira Apr 26, 2014

Member

It's not that easy, I believe, as database would have to be re-opened. And that would require to update DB instances in all collections...

Member

smira commented Apr 26, 2014

It's not that easy, I believe, as database would have to be re-opened. And that would require to update DB instances in all collections...

@smira smira added the enhancement label May 10, 2014

@smira smira modified the milestones: v0.7, v0.6 Jun 5, 2014

@smira smira modified the milestones: v0.8, v0.7 Jun 27, 2014

smira added a commit that referenced this issue Oct 2, 2014

smira added a commit that referenced this issue Oct 3, 2014

smira added a commit that referenced this issue Oct 3, 2014

smira added a commit to aptly-dev/aptly-dev.github.io that referenced this issue Oct 3, 2014

@smira

This comment has been minimized.

Show comment
Hide comment
@smira

smira Oct 3, 2014

Member

Done in master: concurrent operations while package files are downloaded.

Member

smira commented Oct 3, 2014

Done in master: concurrent operations while package files are downloaded.

@smira smira closed this Oct 3, 2014

@freehck freehck referenced this issue Oct 6, 2014

Closed

Locked database #117

@nightlyone

This comment has been minimized.

Show comment
Hide comment
@nightlyone

nightlyone Oct 8, 2014

Great news!

Great news!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment