You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hawq.apache.org by realdawn <gi...@git.apache.org> on 2016/01/29 04:03:08 UTC

[GitHub] incubator-hawq pull request: HAWQ-360. Fixed Data loss when alter ...

GitHub user realdawn opened a pull request:

    https://github.com/apache/incubator-hawq/pull/304

    HAWQ-360. Fixed Data loss when alter partition table by add two column in one time.

    When executing the sql "alter table part_1 add column p int default 3,add column q int default 4;" , the executing process has tow phases. 
    Phase 1:
    create a pg_tmp_1 table
    create pg_temp_1's aoseg table
    copy every column in origin table with adding a column p to pg_temp_1 table
    update its aoseg table
    
    Phase 2:
    create a pg_temp_2 table
    create its pg_temp_2's aoseg table
    copy every column in pg_temp_1 with adding a column q to pg_temp_2 table.
    update its aoseg table
    
    However, with using previous code, by the 3rd step in phase2 it use ActiveSnapshot, which means it can't get the latest aoseg table of pg_temp_1.  As a result, it cause data loss.
    So I modify it by using SnapshotSelf.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/realdawn/incubator-hawq HAWQ-360

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-hawq/pull/304.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #304
    
----
commit 2404fb5daf11dc2bdc50271daf7f99e8e824c572
Author: doli <do...@pivotal.io>
Date:   2016-01-29T02:50:17Z

    HAWQ-360. Fixed Data loss when alter partition table by add two column in one time.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-hawq pull request: HAWQ-360. Fixed Data loss when alter ...

Posted by liming01 <gi...@git.apache.org>.
Github user liming01 commented on the pull request:

    https://github.com/apache/incubator-hawq/pull/304#issuecomment-176548203
  
    Looks good. +1. 
    Need run a thorough test for this change. 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-hawq pull request: HAWQ-360. Fixed Data loss when alter ...

Posted by realdawn <gi...@git.apache.org>.
Github user realdawn closed the pull request at:

    https://github.com/apache/incubator-hawq/pull/304


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-hawq pull request: HAWQ-360. Fixed Data loss when alter ...

Posted by wangzw <gi...@git.apache.org>.
Github user wangzw commented on the pull request:

    https://github.com/apache/incubator-hawq/pull/304#issuecomment-176557356
  
    Code looks good to me. Please pass all tests before merge.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-hawq pull request: HAWQ-360. Fixed Data loss when alter ...

Posted by realdawn <gi...@git.apache.org>.
Github user realdawn commented on the pull request:

    https://github.com/apache/incubator-hawq/pull/304#issuecomment-176635472
  
    All the concurrent test  cases have passed.
    And I have added test cases for it.



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-hawq pull request: HAWQ-360. Fixed Data loss when alter ...

Posted by wangzw <gi...@git.apache.org>.
Github user wangzw commented on the pull request:

    https://github.com/apache/incubator-hawq/pull/304#issuecomment-176639257
  
    I have merged it to master. Well done @realdawn !


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---