Closed Bug 1381869 Opened 7 years ago Closed 7 years ago

Use separate elasticsearch index for Bugzilla::User

Categories

(bugzilla.mozilla.org :: General, enhancement)

Production
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: dylan, Assigned: dylan)

Details

Attachments

(1 file, 1 obsolete file)

45 bytes, text/x-github-pull-request
dylan
: review+
Details | Review
Currently :ted and :fubar have "ghosts" in autocompete: despite removing all the documents of type 'user' the suggestion items remain.

If we keep users in a different index, it will allow us to delete it at will.
This is sort of a brute force approach, but we can also lay the groundwork for downtimeless schema updates:

10:56 <ekyle> yes, and give it a unique name eg `users<YYMMDDhhmmss>`
10:56 <ekyle> and give it an alias `users`
10:57 <ekyle> then you can rebuild new indexes; and when done, add the alias to the new index, remove it from the old, and you have no downtime
Attached file PR (obsolete) —
Attachment #8887645 - Flags: review?(rsoderberg)
Attached file PR (corrected)
Attachment #8887645 - Attachment is obsolete: true
Attachment #8887645 - Flags: review?(rsoderberg)
Attachment #8888046 - Flags: review?(rsoderberg)
Attachment #8888046 - Flags: review?(rsoderberg) → review+
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: