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 2022/05/16 08:29:36 UTC

[GitHub] [incubator-doris] carlvinhust2012 opened a new pull request, #9592: [regression] fix the regression case fail in test_compaction

carlvinhust2012 opened a new pull request, #9592:
URL: https://github.com/apache/incubator-doris/pull/9592

   # Proposed changes
   This pr is used to solve the regression test encounter fails in test_compaction.
   
   Issue Number: close #xxx
   
   ## Problem Summary:
   if you run regression test and the test_compaction report "No such property: beHttpAdderss fo class: org.apache.doris.regression.config", you can use this pr to solve.
   
   Describe the overview of changes.
   
   ## Checklist(Required)
   
   1. Does it affect the original behavior: (No)
   2. Has unit tests been added: (No)
   3. Has document been added or modified: (No)
   4. Does it need to update dependencies: (No)
   5. Are there any changes that cannot be rolled back: (No)
   
   ## Further comments
   
   If this is a relatively large or complex change, kick off the discussion at [dev@doris.apache.org](mailto:dev@doris.apache.org) by explaining why you chose the solution you did and what alternatives you considered, etc...
   


-- 
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] yiguolei commented on pull request #9592: [regression] fix the regression case fail in test_compaction

Posted by GitBox <gi...@apache.org>.
yiguolei commented on PR #9592:
URL: https://github.com/apache/incubator-doris/pull/9592#issuecomment-1128289400

   Exception in compaction/test_compaction.groovy(line 34):
   
           StringBuilder showConfigCommand = new StringBuilder();
           showConfigCommand.append("curl -X GET http://")
           showConfigCommand.append(beHttpAddress)
           showConfigCommand.append("/api/show_config")
           def process = showConfigCommand.toString().execute()
           int code = process.waitFor()
           String err = IOGroovyMethods.getText(new BufferedReader(new InputStreamReader(process.getErrorStream())));
           String out = process.getText()
           logger.info("Show config: code=" + code + ", out=" + out + ", err=" + err)
           assertEquals(code, 0)
   ^^^^^^^^^^^^^^^^^^^^^^^^^^ERROR LINE^^^^^^^^^^^^^^^^^^^^^^^^^^
           def configList = parseJson(out.trim())
           assert configList instanceof List
   
           int cumulativeCompactionSkipWindowSeconds = -1
           boolean disableAutoCompaction = true
           for (Object ele in (List) configList) {
               assert ele instanceof List<String>
               if (((List<String>) ele)[0] == "cumulative_compaction_skip_window_seconds") {
                   cumulativeCompactionSkipWindowSeconds = Integer.parseInt(((List<String>) ele)[2])
               } else if (((List<String>) ele)[0] == "disable_auto_compaction") {
   
   
   test failed


-- 
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] carlvinhust2012 closed pull request #9592: [regression] fix the regression case fail in test_compaction

Posted by GitBox <gi...@apache.org>.
carlvinhust2012 closed pull request #9592: [regression] fix the regression case fail in test_compaction
URL: https://github.com/apache/incubator-doris/pull/9592


-- 
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] carlvinhust2012 commented on pull request #9592: [regression] fix the regression case fail in test_compaction

Posted by GitBox <gi...@apache.org>.
carlvinhust2012 commented on PR #9592:
URL: https://github.com/apache/incubator-doris/pull/9592#issuecomment-1128551724

   
   
   
   > Exception in compaction/test_compaction.groovy(line 34):
   > 
   > ```
   >     StringBuilder showConfigCommand = new StringBuilder();
   >     showConfigCommand.append("curl -X GET http://")
   >     showConfigCommand.append(beHttpAddress)
   >     showConfigCommand.append("/api/show_config")
   >     def process = showConfigCommand.toString().execute()
   >     int code = process.waitFor()
   >     String err = IOGroovyMethods.getText(new BufferedReader(new InputStreamReader(process.getErrorStream())));
   >     String out = process.getText()
   >     logger.info("Show config: code=" + code + ", out=" + out + ", err=" + err)
   >     assertEquals(code, 0)
   > ```
   > 
   > ^^^^^^^^^^^^^^^^^^^^^^^^^^ERROR LINE^^^^^^^^^^^^^^^^^^^^^^^^^^ def configList = parseJson(out.trim()) assert configList instanceof List
   > 
   > ```
   >     int cumulativeCompactionSkipWindowSeconds = -1
   >     boolean disableAutoCompaction = true
   >     for (Object ele in (List) configList) {
   >         assert ele instanceof List<String>
   >         if (((List<String>) ele)[0] == "cumulative_compaction_skip_window_seconds") {
   >             cumulativeCompactionSkipWindowSeconds = Integer.parseInt(((List<String>) ele)[2])
   >         } else if (((List<String>) ele)[0] == "disable_auto_compaction") {
   > ```
   > 
   > test failed
   
   I have reproduced the problem and find the regression test is just not work in my local environment.
   so the root cause is that I should run "sh run-regression-test.sh --clean" and then run "sh run-regression-test.sh --run test_compaction" when I update my local code.


-- 
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