You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@impala.apache.org by "Anonymous Coward (Code Review)" <ge...@cloudera.org> on 2022/07/18 01:19:32 UTC

[Impala-ASF-CR] IMPALA-11439: Add option to control whether prepopulate m2 directory or not.

yx91490@126.com has uploaded this change for review. ( http://gerrit.cloudera.org:8080/18740


Change subject: IMPALA-11439: Add option to control whether prepopulate m2 directory or not.
......................................................................

IMPALA-11439: Add option to control whether prepopulate m2 directory or not.

The bootstrap_system.sh will prepopulate the .m2 directory by
downloading a 800M+ m2_archive.tar.gz to speed up the following maven
packaging process, although it's not necessary. Meanwhile, due to
different network environment, the download speed of the archive file
is not necessarily fast.

There add an environment variable 'PREPOPULATE_M2_REPOSITORY' to control
whether to prepopulate the m2 directory or not, which is true by
default.

Testing:
- manually run './bin/bootstrap_system.sh' and expect to see the log
  '>>> Populating m2 directory...' and 'Downloading m2 archive from ...',
  and the terminal returned for a while.
- manually run 'PREPOPULATE_M2_REPOSITORY=true ./bin/bootstrap_system.sh'
  and expect to see the log '>>> Populating m2 directory...' and
  'Downloading m2 archive from ...', and the terminal returned for a while.
- manually run 'PREPOPULATE_M2_REPOSITORY=false ./bin/bootstrap_system.sh'
  and expect to see the log ">>> Skip populating m2 directory", and
  the terminal returned immediately.

Change-Id: Ie3ac55099f326e2abe2f7dc66c08ad7023cb6baf
---
M bin/bootstrap_system.sh
1 file changed, 7 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/40/18740/2
-- 
To view, visit http://gerrit.cloudera.org:8080/18740
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie3ac55099f326e2abe2f7dc66c08ad7023cb6baf
Gerrit-Change-Number: 18740
Gerrit-PatchSet: 2
Gerrit-Owner: Anonymous Coward <yx...@126.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>

[Impala-ASF-CR] IMPALA-11439: Add option to control whether prepopulate m2 directory or not.

Posted by "Michael Smith (Code Review)" <ge...@cloudera.org>.
Michael Smith has posted comments on this change. ( http://gerrit.cloudera.org:8080/18740 )

Change subject: IMPALA-11439: Add option to control whether prepopulate m2 directory or not.
......................................................................


Patch Set 2:

> Patch Set 2:
> 
> Your concern is valid, and the implementation looks fine.
> However, I do have some concern about changing the default behavior of the build, when the environment variable is absent.

My reading of the change is that the default behavior doesn't change. If the variable's unset, it defaults to PREPOPULATE_M2_REPOSITORY=true.


-- 
To view, visit http://gerrit.cloudera.org:8080/18740
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ie3ac55099f326e2abe2f7dc66c08ad7023cb6baf
Gerrit-Change-Number: 18740
Gerrit-PatchSet: 2
Gerrit-Owner: Anonymous Coward <yx...@126.com>
Gerrit-Reviewer: Anonymous Coward <yx...@126.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Laszlo Gaal (Cloudera) <la...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Comment-Date: Mon, 25 Jul 2022 15:54:45 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-11439: Add option to control whether prepopulate m2 directory or not.

Posted by "Joe McDonnell (Code Review)" <ge...@cloudera.org>.
Joe McDonnell has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/18740 )

Change subject: IMPALA-11439: Add option to control whether prepopulate m2 directory or not.
......................................................................

IMPALA-11439: Add option to control whether prepopulate m2 directory or not.

The bootstrap_system.sh will prepopulate the .m2 directory by
downloading a 800M+ m2_archive.tar.gz to speed up the following maven
packaging process, although it's not necessary. Meanwhile, due to
different network environment, the download speed of the archive file
is not necessarily fast.

There add an environment variable 'PREPOPULATE_M2_REPOSITORY' to control
whether to prepopulate the m2 directory or not, which is true by
default.

Testing:
- manually run './bin/bootstrap_system.sh' and expect to see the log
  '>>> Populating m2 directory...' and 'Downloading m2 archive from ...',
  and the terminal returned for a while.
- manually run 'PREPOPULATE_M2_REPOSITORY=true ./bin/bootstrap_system.sh'
  and expect to see the log '>>> Populating m2 directory...' and
  'Downloading m2 archive from ...', and the terminal returned for a while.
- manually run 'PREPOPULATE_M2_REPOSITORY=false ./bin/bootstrap_system.sh'
  and expect to see the log ">>> Skip populating m2 directory", and
  the terminal returned immediately.

Change-Id: Ie3ac55099f326e2abe2f7dc66c08ad7023cb6baf
Reviewed-on: http://gerrit.cloudera.org:8080/18740
Tested-by: Impala Public Jenkins <im...@cloudera.com>
Reviewed-by: Joe McDonnell <jo...@cloudera.com>
---
M bin/bootstrap_system.sh
1 file changed, 7 insertions(+), 2 deletions(-)

Approvals:
  Impala Public Jenkins: Verified
  Joe McDonnell: Looks good to me, approved

-- 
To view, visit http://gerrit.cloudera.org:8080/18740
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Ie3ac55099f326e2abe2f7dc66c08ad7023cb6baf
Gerrit-Change-Number: 18740
Gerrit-PatchSet: 3
Gerrit-Owner: Anonymous Coward <yx...@126.com>
Gerrit-Reviewer: Anonymous Coward <yx...@126.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Laszlo Gaal (Cloudera) <la...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>

[Impala-ASF-CR] IMPALA-11439: Add option to control whether prepopulate m2 directory or not.

Posted by "Joe McDonnell (Code Review)" <ge...@cloudera.org>.
Joe McDonnell has posted comments on this change. ( http://gerrit.cloudera.org:8080/18740 )

Change subject: IMPALA-11439: Add option to control whether prepopulate m2 directory or not.
......................................................................


Patch Set 2: Code-Review+1

This looks good to me.

I double-checked the precommit run for this and verified that precommit is still prepopulating the m2 directory.

Unless there is some objection, I will +2 and merge this tomorrow.


-- 
To view, visit http://gerrit.cloudera.org:8080/18740
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ie3ac55099f326e2abe2f7dc66c08ad7023cb6baf
Gerrit-Change-Number: 18740
Gerrit-PatchSet: 2
Gerrit-Owner: Anonymous Coward <yx...@126.com>
Gerrit-Reviewer: Anonymous Coward <yx...@126.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Laszlo Gaal (Cloudera) <la...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Comment-Date: Wed, 27 Jul 2022 04:28:09 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-11439: Add option to control whether prepopulate m2 directory or not.

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/18740 )

Change subject: IMPALA-11439: Add option to control whether prepopulate m2 directory or not.
......................................................................


Patch Set 2:

Build Successful 

https://jenkins.impala.io/job/gerrit-code-review-checks/10982/ : Initial code review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun to run full precommit tests.


-- 
To view, visit http://gerrit.cloudera.org:8080/18740
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ie3ac55099f326e2abe2f7dc66c08ad7023cb6baf
Gerrit-Change-Number: 18740
Gerrit-PatchSet: 2
Gerrit-Owner: Anonymous Coward <yx...@126.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Comment-Date: Mon, 18 Jul 2022 01:40:16 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-11439: Add option to control whether prepopulate m2 directory or not.

Posted by "Anonymous Coward (Code Review)" <ge...@cloudera.org>.
yx91490@126.com has posted comments on this change. ( http://gerrit.cloudera.org:8080/18740 )

Change subject: IMPALA-11439: Add option to control whether prepopulate m2 directory or not.
......................................................................


Patch Set 2:

Hi Joe McDonnell, can you help me review this issue? many thanks.


-- 
To view, visit http://gerrit.cloudera.org:8080/18740
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ie3ac55099f326e2abe2f7dc66c08ad7023cb6baf
Gerrit-Change-Number: 18740
Gerrit-PatchSet: 2
Gerrit-Owner: Anonymous Coward <yx...@126.com>
Gerrit-Reviewer: Anonymous Coward <yx...@126.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Comment-Date: Sat, 23 Jul 2022 06:28:44 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-11439: Add option to control whether prepopulate m2 directory or not.

Posted by "Laszlo Gaal (Cloudera) (Code Review)" <ge...@cloudera.org>.
Laszlo Gaal (Cloudera) has posted comments on this change. ( http://gerrit.cloudera.org:8080/18740 )

Change subject: IMPALA-11439: Add option to control whether prepopulate m2 directory or not.
......................................................................


Patch Set 2:

Your concern is valid, and the implementation looks fine.
However, I do have some concern about changing the default behavior of the build, when the environment variable is absent.
I've left detailed comments on the Jira, as I think that's a better forum for a design discussion.


-- 
To view, visit http://gerrit.cloudera.org:8080/18740
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ie3ac55099f326e2abe2f7dc66c08ad7023cb6baf
Gerrit-Change-Number: 18740
Gerrit-PatchSet: 2
Gerrit-Owner: Anonymous Coward <yx...@126.com>
Gerrit-Reviewer: Anonymous Coward <yx...@126.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Laszlo Gaal (Cloudera) <la...@cloudera.com>
Gerrit-Comment-Date: Sat, 23 Jul 2022 18:03:38 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-11439: Add option to control whether prepopulate m2 directory or not.

Posted by "Joe McDonnell (Code Review)" <ge...@cloudera.org>.
Joe McDonnell has posted comments on this change. ( http://gerrit.cloudera.org:8080/18740 )

Change subject: IMPALA-11439: Add option to control whether prepopulate m2 directory or not.
......................................................................


Patch Set 2: Code-Review+2


-- 
To view, visit http://gerrit.cloudera.org:8080/18740
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ie3ac55099f326e2abe2f7dc66c08ad7023cb6baf
Gerrit-Change-Number: 18740
Gerrit-PatchSet: 2
Gerrit-Owner: Anonymous Coward <yx...@126.com>
Gerrit-Reviewer: Anonymous Coward <yx...@126.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Laszlo Gaal (Cloudera) <la...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Comment-Date: Thu, 28 Jul 2022 15:26:58 +0000
Gerrit-HasComments: No