Project

Profile

Help

Issue #3133

CursorNotFound while queueing applicability tasks

Added by ttereshc over 2 years ago. Updated 11 months ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Severity:
2. Medium
Version:
Platform Release:
2.15.1
Blocks Release:
OS:
Backwards Incompatible:
No
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
QA Contact:
Complexity:
Smash Test:
Verified:
No
Verification Required:
No
Sprint:
Sprint 30

Description

Presumably it happens when many consumer profiles are associated with the requested repos.

 Traceback (most recent call last):
   File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 112, in get_response
     response = wrapped_callback(request, *callback_args, **callback_kwargs)
   File "/usr/lib/python2.7/site-packages/django/views/generic/base.py", line 69, in view
     return self.dispatch(request, *args, **kwargs)
   File "/usr/lib/python2.7/site-packages/django/views/generic/base.py", line 87, in dispatch
     return handler(request, *args, **kwargs)
   File "/usr/lib/python2.7/site-packages/pulp/server/webservices/views/decorators.py", line 241, in _auth_decorator
     return _verify_auth(self, operation, super_user_only, method, *args, **kwargs)
   File "/usr/lib/python2.7/site-packages/pulp/server/webservices/views/decorators.py", line 195, in _verify_auth
     value = method(self, *args, **kwargs)
   File "/usr/lib/python2.7/site-packages/pulp/server/webservices/views/util.py", line 130, in wrapper
     return func(*args, **kwargs)
   File "/usr/lib/python2.7/site-packages/pulp/server/webservices/views/repositories.py", line 913, in post
     queue_regenerate_applicability_for_repos(repo_criteria.as_dict())
   File "/usr/lib/python2.7/site-packages/pulp/server/managers/consumer/applicability.py", line 167, in queue_regenerate_applicability_for_repos
     for batch in paginate(profile_hashes, 10):
   File "/usr/lib/python2.7/site-packages/pulp/plugins/util/misc.py", line 33, in paginate
     page = tuple(itertools.islice(generator, 0, page_size))
   File "/usr/lib/python2.7/site-packages/pulp/plugins/util/misc.py", line 31, in <genexpr>
   File "/usr/lib64/python2.7/site-packages/pymongo/cursor.py", line 1097, in next
     if len(self.__data) or self._refresh():
   File "/usr/lib64/python2.7/site-packages/pymongo/cursor.py", line 1039, in _refresh
   File "/usr/lib64/python2.7/site-packages/pymongo/cursor.py", line 903, in __send_message
     codec_options=self.__codec_options)
   File "/usr/lib64/python2.7/site-packages/pymongo/helpers.py", line 114, in _unpack_response
     raise CursorNotFound(msg, 43, errobj)
 CursorNotFound: Cursor not found, cursor id: 138030585475

Related issues

Copied to Pulp - Issue #3886: CursorNotFound while queueing applicability tasks CLOSED - CURRENTRELEASE Actions

Associated revisions

Revision 7810d6fe View on GitHub
Added by ttereshc about 2 years ago

Add repo_id index to applicability collection

Search by repo_id is used to queue applicability tasks. If there are many consumer profiles in a collection, cursor may timeout.

closes #3133 https://pulp.plan.io/issues/3133

Revision a2a00088 View on GitHub
Added by ttereshc about 2 years ago

Add repo_id index to applicability collection

Search by repo_id is used to queue applicability tasks. If there are many consumer profiles in a collection, cursor may timeout.

closes #3133 https://pulp.plan.io/issues/3133

(cherry picked from commit 7810d6fe04b58f93ae96887116a2a1f9fa6b6239)

History

#1 Updated by dalley over 2 years ago

  • Triaged changed from No to Yes

#2 Updated by rchan about 2 years ago

  • Sprint/Milestone set to 48

#3 Updated by ttereshc about 2 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to ttereshc

#4 Updated by ttereshc about 2 years ago

  • Status changed from ASSIGNED to POST

#5 Updated by rchan about 2 years ago

  • Sprint/Milestone changed from 48 to 52

#6 Updated by ttereshc about 2 years ago

  • Status changed from POST to MODIFIED

#7 Updated by pcreech about 2 years ago

  • Platform Release set to 2.15.1

#9 Updated by pcreech about 2 years ago

  • Status changed from MODIFIED to ON_QA

#10 Updated by pcreech about 2 years ago

  • Status changed from ON_QA to CLOSED - CURRENTRELEASE

#11 Updated by bmbouter almost 2 years ago

  • Sprint set to Sprint 30

#12 Updated by bmbouter almost 2 years ago

  • Sprint/Milestone deleted (52)

#13 Updated by ttereshc over 1 year ago

  • Copied to Issue #3886: CursorNotFound while queueing applicability tasks added

#14 Updated by bmbouter 11 months ago

  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF