pycontribs/jira

jira reindex doesn't work as expected

Opened this issue · 0 comments

Bug summary

When using jira.reindex(), it states that a reindex is already running... Although, it isn't; There's no background or foreground process currently running on the jira instance.

The message displayed:
WARNING:jira:Jira re-indexing is already running.

I noticed that the code isn't using the REST API to make the call considering the url is different. As a test, I used curl POST '{site.url}/jira/rest/api/2/reindex?type=FOREGROUND' and that works...

Note: I don't see a difference between v3.2.0 and the latest v3.8.0

Is there an existing issue for this?

  • I have searched the existing issues

Jira Instance type

Jira Server or Data Center (Self-hosted)

Jira instance version

9.12.7

jira-python version

3.2.0

Python Interpreter version

3.9

Which operating systems have you used?

  • Linux
  • macOS
  • Windows

Reproduction steps

# 1. Given a Jira client instance
jira: JIRA
# 2. When I call the function with argument x
jira.reindex(force=True, background=False)
# 3. Results
WARNING:jira:Jira re-indexing is already running.

Stack trace

WARNING:jira:Jira re-indexing is already running.

Expected behaviour

For an actual reindex to start, specifically foreground. Having jira.reindex() default, also produces the same message.

Additional Context

No response