Reviews mix file types, clear inconsistancies in stored diff cache

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

問題

Reviews are mixing files of one type with another type in the UI. However, clicking on the code changeset shows the correct code.  

原因

There is likely an inconsistency between what Crucible thinks is in the stored diff cache and what is actually there. The stored diff cache is in FISHEYE_INST/var/data/uploads/... and the DB table cru_revision maps these to paths and revisions via the cru_upload_item table.

In the DB, the contents of the files likely do not match what cru_revision expects.


Previous scenarios analysed

This problem has been observed when the following conditions occurred:

  • two instances of Crucible have been running against the same database, this lead to the incorrect set of values for the cru_upload_item field.
  • two backups of Fisheye/Crucible have been restored, where one contained an older set of review caches, and another one a more recent status for the database.

回避策

  • Make sure that the is a single instance of Fisheye/Crucible connected to the database
  • Force the reviews to create new cache entries by applying the following SQL to the DB:

    update cru_revision set cru_upload_item = null

    データベースの変更を行う場合は必ず事前にバックアップを取得してください。

    Next time a review is viewed, the diffs will be retrieved from your repository and stored again.

  • Vote for this feature request: CRUC-7260 - Getting issue details... STATUS

最終更新日 2018 年 7 月 31 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.