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

Call ATTACH INDEX with specifing same PLAIN index twice make Manticore hanging #168

Closed
drewblin opened this issue Feb 22, 2019 · 2 comments

Comments

Projects
None yet
4 participants
@drewblin
Copy link

commented Feb 22, 2019

Describe the environment

Manticore Search version: 2.7.5

OS version: FreeBSD 11.2-RELEASE-p4

Describe the problem

Description of the issue:

Call ATTACH INDEX with specifing same PLAIN index twice make Manticore hanging.
attach index prod_v2_plain to rtindex prod_v2_plain with truncate

prod_v2_plain is plain index

Steps to reproduce:

  1. Create plain index
source src_prod_v2:src_pattern {
        sql_query = \
                SELECT id, synonym \
                FROM some_table
        sql_query_range = SELECT MIN(id), MAX(id) FROM some_table
        sql_range_step = 1000
}

index prod_v2_plain {
        type = plain
        source = src_prod_v2
        path = /db/sphinx/prod_v2_plain/prod_v2_plain

        charset_table = 0..9, A..Z->a..z, _, a..z, \
                U 410..U 42F->U 430..U 44F, U 430..U 44F, \
                U 404->U 454, U 454, U 406->U 456, U 456, U 407->U 457, U 457
        min_prefix_len = 1
        phrase_boundary = .
        phrase_boundary_step = 1000
}
  1. Call indexer

sudo -u _sphinx /usr/local/bin/indexer -c /usr/local/etc/sphinx.conf --rotate prod_v2_plain

  1. Call ATTACH INDEX

attach index prod_v2_plain to rtindex prod_v2_plain with truncate

Messsages from log files:

Nothing in logs

CHangelog: fixed deadlock at ATTACH index to itself and now daemon will give error message instead of hung

@githubmanticore githubmanticore added the bug label Feb 25, 2019

@manticoresearch

This comment has been minimized.

Copy link
Contributor

commented Feb 25, 2019

Thanks for the bug report

@tomatolog

This comment has been minimized.

Copy link
Contributor

commented Mar 6, 2019

I've just fixed this issue at 3562f65 now deadlock at ATTACH index to itself should be no more instead you will get error message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.