Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/Sync doesn't populate nodes in elasticsearch #1204

Open
DavidOrtizR opened this issue May 19, 2021 · 3 comments
Open

/Sync doesn't populate nodes in elasticsearch #1204

DavidOrtizR opened this issue May 19, 2021 · 3 comments
Assignees
Labels

Comments

@DavidOrtizR
Copy link

DavidOrtizR commented May 19, 2021

Gentics Mesh Version, operating system, or hardware.

  • v1.7.6
  • v1.7.9

Operating System

  • K8s

Elasticsearch 7.7.0

Problem

/search/sync doesn't work properly.

Reproducer

1.-Create a new export file using the API /admin/graphdb/export
2.- Import using /admin/graphdb/import
3.- Clear indexes /search/clear
4.- Sync indexes using /search/sync

Expected behaviour

After restoring a backup or importing an export file and clear (/search/clear) and sync (/search/sync), the indexes in elasticseach should be populated as before.

Actual behaviour

After restoring a backup or importing an export file and clear (/search/clear) and sync (/search/sync), the indexes in elasticseach are empty

@plyhun plyhun added the bug label May 20, 2021
@plyhun plyhun self-assigned this May 20, 2021
@DavidOrtizR
Copy link
Author

Hi @plyhun, any updates on this topic?

@plyhun
Copy link
Contributor

plyhun commented Aug 16, 2021

Hi @DavidOrtizR ,
I have just checked the described behavior at the following environment:

  1. export at Mesh 1.6.16, import at clean Mesh 1.7.14
  2. export at Mesh 1.7.14, clean it by deleting the graphdb folder, import back at 1.7.14.

Both usecases reported the same results:

{
  "available": true,
  "metrics": {
    "tagfamily": {
      "insert": {
        "synced": 6,
        "pending": 0
      },
      "update": {
        "synced": 0,
        "pending": 0
      },
      "delete": {
        "synced": 0,
        "pending": 0
      }
    },
    "schema": {
      "insert": {
        "synced": 17,
        "pending": 0
      },
      "update": {
        "synced": 0,
        "pending": 0
      },
      "delete": {
        "synced": 3,
        "pending": 0
      }
    },
    "node": {
      "insert": {
        "synced": 4235,
        "pending": 0
      },
      "update": {
        "synced": 0,
        "pending": 0
      },
      "delete": {
        "synced": 0,
        "pending": 0
      }
    },
    "role": {
      "insert": {
        "synced": 4,
        "pending": 0
      },
      "update": {
        "synced": 0,
        "pending": 0
      },
      "delete": {
        "synced": 2,
        "pending": 0
      }
    },
    "microschema": {
      "insert": {
        "synced": 1,
        "pending": 0
      },
      "update": {
        "synced": 0,
        "pending": 0
      },
      "delete": {
        "synced": 0,
        "pending": 0
      }
    },
    "project": {
      "insert": {
        "synced": 2,
        "pending": 0
      },
      "update": {
        "synced": 0,
        "pending": 0
      },
      "delete": {
        "synced": 0,
        "pending": 0
      }
    },
    "tag": {
      "insert": {
        "synced": 2,
        "pending": 0
      },
      "update": {
        "synced": 0,
        "pending": 0
      },
      "delete": {
        "synced": 0,
        "pending": 0
      }
    },
    "user": {
      "insert": {
        "synced": 1214,
        "pending": 0
      },
      "update": {
        "synced": 0,
        "pending": 0
      },
      "delete": {
        "synced": 2,
        "pending": 0
      }
    },
    "group": {
      "insert": {
        "synced": 5,
        "pending": 0
      },
      "update": {
        "synced": 0,
        "pending": 0
      },
      "delete": {
        "synced": 2,
        "pending": 0
      }
    }
  }
}

e.g. the schemas and nodes have been synced.
Couldn't you please try with the latest v1.7.14, and monitor the logs during the backup/restore/index sync?
Thanks in advance!

@danfabi
Copy link

danfabi commented Jan 3, 2022

Having the same issue here (v1.7.22).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants