Skip to content
This repository has been archived by the owner on Mar 11, 2021. It is now read-only.

Add support for system_* fields along with system.* fields #2341

Merged
merged 27 commits into from
Jan 22, 2019

Conversation

jarifibrahim
Copy link
Member

@jarifibrahim jarifibrahim commented Oct 31, 2018

Fixes #2343

The following PRs have to be merged before this PR can be merged

@jarifibrahim jarifibrahim self-assigned this Oct 31, 2018
@jarifibrahim jarifibrahim changed the title WIP: Rename field names from system.* to system_ WIP: Add support for system_* fields along with system.* fields Oct 31, 2018
Merge jarifibrahim/osio-story-743-rename-fields into fabric8-wit/osio-story-743-rename-fields.
* Add replaceFieldName and addFieldName with tests

* Remove unnecessary log.Error from golden_files_test.go

* Fix failing test in expression_compiler_blackbox_test.go

* Skip FullTextSearch and iteration test until migrations are added

* Add golden files with old and new field names

* Add todo to skipped tests

* Add foo.bar test for expression_compiler

* fix TODO formatting
* Change workitemtype response payload

* Update golden files related to workitemtype response change
* Add event_name attribute to the event response

* fix golden files related to workitem_event

* Rename event_name to onField in event/show response

* Update golden files

* fix typo
* Add migration for workitem_type field renames

* Add field rename migrations for work_items and work_item_revisions table
* Add migration for TSV vector and triggers for field renames

* Remove out of date comment
@jarifibrahim jarifibrahim changed the title WIP: Add support for system_* fields along with system.* fields Add support for system_* fields along with system.* fields Dec 3, 2018
Copy link
Collaborator

@kwk kwk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jarifibrahim please do not merge before I'm back from PTO.

Copy link
Collaborator

@kwk kwk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but I'm very nervous 😰 :) Before we merge roll this one out to production, let's make sure only this change is in the roll-out and nothing else.

@jarifibrahim
Copy link
Member Author

[test]

@jarifibrahim jarifibrahim merged commit 587d0d2 into master Jan 22, 2019
jarifibrahim added a commit to jarifibrahim/fabric8-wit that referenced this pull request Jan 22, 2019
jarifibrahim added a commit that referenced this pull request Jan 23, 2019
…2341)" (#2401)

This reverts commit 587d0d2.

Revert "Add support for system_* fields along with system.* fields (#2341)"
This reverts commit 587d0d2.

#2341 was merged but the `core-97` deployment was failing. This PR reverts the changes.

A possible reason for the deployment failure could be the huge database migration. The field rename PR updates **every row of 3 tables**. This is a database intensive operation and would take some amount of time to complete. But since it didn't complete within the timeout, openshift marks the pod as `unhealthy` and kills it. A new pod would come up and the same cycle would repeat.

Kibana logs - https://logs.dsaas-stg.openshift.com/app/kibana#/discover?_g=(refreshInterval:(display:Off,pause:!f,value:0),time:(from:'2019-01-22T12:50:00.000Z',mode:absolute,to:'2019-01-22T13:20:00.000Z'))&_a=(columns:!(_source),filters:!(),index:'project.dsaas-preview.6e520a9f-d097-11e8-9fb7-121499db9246.*',interval:auto,query:(query_string:(analyze_wildcard:!t,query:'kubernetes.labels.deployment:core-97')),sort:!('@timestamp',desc))

This shows the Kibana logs for the actual pod: [`kubernetes.pod_name:"core-97-6cjh9" AND kubernetes.namespace_name:"dsaas-preview"`](https://logs.dsaas-stg.openshift.com/app/kibana#/discover?_g=(time:(from:now-1w,mode:relative,to:now))&_a=(columns:!(kubernetes.container_name,message),index:'project.dsaas-preview.6e520a9f-d097-11e8-9fb7-121499db9246.*',interval:auto,query:(query_string:(analyze_wildcard:!t,query:'kubernetes.pod_name:%22core-97-6cjh9%22+AND+kubernetes.namespace_name:%22dsaas-preview%22')),sort:!('@timestamp',desc)))
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants