You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2021/09/17 13:49:18 UTC

[GitHub] [incubator-doris] qzsee opened a new issue #6694: [Bug] If new group name is the same as old group name when mod table colocate group name, master ckpt npe may occur

qzsee opened a new issue #6694:
URL: https://github.com/apache/incubator-doris/issues/6694


   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/incubator-doris/issues?q=is%3Aissue) and found no similar issues.
   
   
   ### Version
   
   0.13.11
   
   ### What's Wrong?
   
   ```shell
   mysql> alter table test set("colocate_with"="test01");
   Query OK, 0 rows affected (0.02 sec)
   
   mysql> show proc "/colocation_group";
   +---------------+---------------+----------+------------+----------------+------------------------+----------+
   | GroupId       | GroupName     | TableIds | BucketsNum | ReplicationNum | DistCols               | IsStable |
   +---------------+---------------+----------+------------+----------------+------------------------+----------+
   | 191766.193070 | 191766_test01 | 191770   | 10         | 1              | bigint(20), bigint(20) | true     |
   +---------------+---------------+----------+------------+----------------+------------------------+----------+
   1 row in set (0.02 sec)
   
   mysql> show proc "/colocation_group/191766.193070";
   +-------------+------------+
   | BucketIndex | BackendIds |
   +-------------+------------+
   | 0           | 10003      |
   | 1           | 11001      |
   | 2           | 10003      |
   | 3           | 11001      |
   | 4           | 10003      |
   | 5           | 11001      |
   | 6           | 10003      |
   | 7           | 11001      |
   | 8           | 10003      |
   | 9           | 11001      |
   +-------------+------------+
   10 rows in set (0.02 sec)
   
   # 相同的SQL在执行一次
   mysql> alter table test set("colocate_with"="test01");
   Query OK, 0 rows affected (0.02 sec)
   
   mysql> show proc "/colocation_group";
   +---------------+---------------+----------+------------+----------------+------------------------+----------+
   | GroupId       | GroupName     | TableIds | BucketsNum | ReplicationNum | DistCols               | IsStable |
   +---------------+---------------+----------+------------+----------------+------------------------+----------+
   | 191766.193071 | 191766_test01 | 191770   | 10         | 1              | bigint(20), bigint(20) | false    |
   +---------------+---------------+----------+------------+----------------+------------------------+----------+
   1 row in set (0.01 sec)
   
   mysql> show proc "/colocation_group/191766.193071"; # BucketIndex | BackendIds 信息却没了.....
   Empty set (0.01 sec)
   ```
   
   In this case, a bug is triggered.
   
   Obviously, in the variable `group2BackendsPerBucketSeq` without this information.
   
   When the master does ckpt, this bug will throw npe and ckpt will not work. The number of databases in BDB continues to rise
   
   ### What You Expected?
   
   fix this bug
   
   ### How to Reproduce?
   
   _No response_
   
   ### Anything Else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


[GitHub] [incubator-doris] morningman closed issue #6694: [Bug] If new group name is the same as old group name when mod table colocate group name, the group has been in an unstable state

Posted by GitBox <gi...@apache.org>.
morningman closed issue #6694:
URL: https://github.com/apache/incubator-doris/issues/6694


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org