can't removel an already DISABLED index and can't rebuild index with the same propertykey name

22 просмотра
Перейти к первому непрочитанному сообщению

gaming CG

не прочитано,
21 окт. 2019 г., 10:08:5921.10.2019
– JanusGraph users
In my work,i disabled a composite index inorder to remove it,I have confirm that the index status is DISABLE, but it can't be remove by SchamaAction.REMOVE_INDEX operation. when i check the index, it still shows up in management interface as DISABLED(official document say this is normal), but i can't rebuild index with the same propertykey name

Shubhram Mohanty

не прочитано,
21 окт. 2019 г., 22:11:2221.10.2019
– janusgra...@googlegroups.com
Hi There,

I had experienced the same issue, where I had an use case to rebuild the index. You are right on what you mentioned about the official documentation. 

So, the trick that I applied here was after REMOVE_INDEX operation, I renamed the corresponding index to something as <current_index_name>_hash_generated_key
With a precautionary check that this name doesn’t exist already in the schema.

As already mentioned in the documentation that after REMOVE_INDEX operation, janus only keeps index definition information and no data as such, there is not much wastage of memory as well.

With that said, you can easily proceed to build your index with that name again. Hope, it solves your use case.

Regards,
Shubhram



On Mon, 21 Oct 2019 at 19:39, gaming CG <17600...@163.com> wrote:
In my work,i disabled a composite index inorder to remove it,I have confirm that the index status is DISABLE, but it can't be remove by SchamaAction.REMOVE_INDEX operation. when i check the index, it still shows up in management interface as DISABLED(official document say this is normal), but i can't rebuild index with the same propertykey name

--
You received this message because you are subscribed to the Google Groups "JanusGraph users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to janusgraph-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/janusgraph-users/fce83bf8-0538-404a-ba1b-84884c26121d%40googlegroups.com.

Pino Chang

не прочитано,
22 окт. 2019 г., 04:29:5222.10.2019
– JanusGraph users
Hi ,
thank you for your useful case. This trick is sovled my issue.

Thanks again!
Pino

在 2019年10月22日星期二 UTC+8上午10:11:22,Shubhram Mohanty写道:
Hi There,

I had experienced the same issue, where I had an use case to rebuild the index. You are right on what you mentioned about the official documentation. 

So, the trick that I applied here was after REMOVE_INDEX operation, I renamed the corresponding index to something as <current_index_name>_hash_generated_key
With a precautionary check that this name doesn’t exist already in the schema.

As already mentioned in the documentation that after REMOVE_INDEX operation, janus only keeps index definition information and no data as such, there is not much wastage of memory as well.

With that said, you can easily proceed to build your index with that name again. Hope, it solves your use case.

Regards,
Shubhram


On Mon, 21 Oct 2019 at 19:39, gaming CG <17600...@163.com> wrote:
In my work,i disabled a composite index inorder to remove it,I have confirm that the index status is DISABLE, but it can't be remove by SchamaAction.REMOVE_INDEX operation. when i check the index, it still shows up in management interface as DISABLED(official document say this is normal), but i can't rebuild index with the same propertykey name

--
You received this message because you are subscribed to the Google Groups "JanusGraph users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to janusgra...@googlegroups.com.
Ответить всем
Отправить сообщение автору
Переслать
0 новых сообщений