Actions
Issue #3654
closedCursorNotFound during checksums_and_templates migration
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
2.13.3
Platform Release:
2.16.2
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Sprint 36
Quarter:
Description
[DEBUG 2018-04-25 11:18:47 main] Applying migration pulp_rpm.plugins.migrations.0300_upstream_0033_checksums_and_templates failed.
[DEBUG 2018-04-25 11:18:47 main] Halting migrations due to a migration failure.
[DEBUG 2018-04-25 11:18:47 main] Cursor not found, cursor id: 164658109027
[DEBUG 2018-04-25 11:18:47 main] Traceback (most recent call last):
[DEBUG 2018-04-25 11:18:47 main] File "/usr/lib/python2.7/site-packages/pulp/server/db/manage.py", line 235, in main
[DEBUG 2018-04-25 11:18:47 main] return _auto_manage_db(options)
[DEBUG 2018-04-25 11:18:47 main] File "/usr/lib/python2.7/site-packages/pulp/server/db/manage.py", line 302, in _auto_manage_db
[DEBUG 2018-04-25 11:18:47 main] migrate_database(options)
[DEBUG 2018-04-25 11:18:47 main] File "/usr/lib/python2.7/site-packages/pulp/server/db/manage.py", line 129, in migrate_database
[DEBUG 2018-04-25 11:18:47 main] update_current_version=not options.test)
[DEBUG 2018-04-25 11:18:47 main] File "/usr/lib/python2.7/site-packages/pulp/server/db/migrate/models.py", line 186, in apply_migration
[DEBUG 2018-04-25 11:18:47 main] migration.migrate()
[DEBUG 2018-04-25 11:18:47 main] File "/usr/lib/python2.7/site-packages/pulp_rpm/plugins/migrations/0300_upstream_0033_checksums_and_templates.py", line 47, in migrate
[DEBUG 2018-04-25 11:18:47 main] for rpm in rpm_collection.find({}, ['checksum', 'checksumtype', 'repodata']):
[DEBUG 2018-04-25 11:18:47 main] File "/usr/lib64/python2.7/site-packages/pymongo/cursor.py", line 1097, in next
[DEBUG 2018-04-25 11:18:47 main] if len(self.__data) or self._refresh():
[DEBUG 2018-04-25 11:18:47 main] File "/usr/lib64/python2.7/site-packages/pymongo/cursor.py", line 1039, in _refresh
[DEBUG 2018-04-25 11:18:47 main] self.__max_await_time_ms))
[DEBUG 2018-04-25 11:18:47 main] File "/usr/lib64/python2.7/site-packages/pymongo/cursor.py", line 903, in __send_message
[DEBUG 2018-04-25 11:18:47 main] codec_options=self.__codec_options)
[DEBUG 2018-04-25 11:18:47 main] File "/usr/lib64/python2.7/site-packages/pymongo/helpers.py", line 114, in _unpack_response
[DEBUG 2018-04-25 11:18:47 main] raise CursorNotFound(msg, 43, errobj)
[DEBUG 2018-04-25 11:18:47 main] CursorNotFound: Cursor not found, cursor id: 164658109027
Batch size should be added to avoid cursor timeout here. Similar to this.
Updated by dalley almost 5 years ago
- Priority changed from Normal to High
- Triaged changed from No to Yes
- Sprint set to Sprint 36
Updated by ttereshc almost 5 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to ttereshc
Added by ttereshc almost 5 years ago
Updated by ttereshc almost 5 years ago
- Status changed from ASSIGNED to POST
Updated by ttereshc almost 5 years ago
- Status changed from POST to MODIFIED
Applied in changeset 2bcbc354be93605a689443f2dbc5efb22f7e7033.
Added by ttereshc almost 5 years ago
Set batch size to avoid cursor timeout during migration
closes #3654 https://pulp.plan.io/issues/3654
(cherry picked from commit 2bcbc354be93605a689443f2dbc5efb22f7e7033)
Updated by ttereshc almost 5 years ago
Applied in changeset 2b0e45955f026706e608b82697d71160078ac88f.
Updated by ipanova@redhat.com over 4 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Actions
Set batch size to avoid cursor timeout during migration
closes #3654 https://pulp.plan.io/issues/3654