[jira] [Commented] (TRAFODION-2844) dcsserver restart mxosrvr should have a time range
[ https://issues.apache.org/jira/browse/TRAFODION-2844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16316903#comment-16316903 ] ASF GitHub Bot commented on TRAFODION-2844: --- Github user selvaganesang commented on a diff in the pull request: https://github.com/apache/trafodion/pull/1344#discussion_r160235536 --- Diff: dcs/src/main/java/org/trafodion/dcs/util/RetryCounter.java --- @@ -20,54 +20,94 @@ */ package org.trafodion.dcs.util; +import java.util.LinkedList; +import java.util.Queue; import java.util.concurrent.TimeUnit; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; public class RetryCounter { - private static final Log LOG = LogFactory.getLog(RetryCounter.class); - private final int maxRetries; - private int retriesRemaining; - private final int retryIntervalMillis; - private final TimeUnit timeUnit; +private static final Log LOG = LogFactory.getLog(RetryCounter.class); +private final int maxRetries; +private int retriesRemaining; +private int retryInterval; +private Queue queue; +private TimeUnit timeUnit; - public RetryCounter(int maxRetries, - int retryIntervalMillis, TimeUnit timeUnit) { -this.maxRetries = maxRetries; -this.retriesRemaining = maxRetries; -this.retryIntervalMillis = retryIntervalMillis; -this.timeUnit = timeUnit; - } +public RetryCounter(int maxRetries, int retryInterval, TimeUnit timeUnit) { +this.maxRetries = maxRetries; +this.retriesRemaining = maxRetries; +this.retryInterval = retryInterval; +this.queue = new LinkedList(); +this.timeUnit = timeUnit; +} - public int getMaxRetries() { -return maxRetries; - } +public int getMaxRetries() { +return maxRetries; +} - /** - * Sleep for a exponentially back off time - * @throws InterruptedException - */ - public void sleepUntilNextRetry() throws InterruptedException { -int attempts = getAttemptTimes(); -long sleepTime = (long) (retryIntervalMillis * Math.log(attempts+15)); -LOG.info("Sleeping " + sleepTime + "ms before retry #" + attempts + "..."); -timeUnit.sleep(sleepTime); - } +/** + * Sleep for a exponentially back off time + * @throws InterruptedException + */ +public void sleepUntilNextRetry() throws InterruptedException { +int attempts = getAttemptTimes(); +long sleepTime = (long) (retryInterval * Math.log(attempts + 15)); +LOG.info("Sleeping " + sleepTime + "ms before retry #" + attempts + "..."); +timeUnit.sleep(sleepTime); --- End diff -- Good catch It looks like earlier the sleep time was incorrect if the TimeUnit wasn't in milliseconds. > dcsserver restart mxosrvr should have a time range > -- > > Key: TRAFODION-2844 > URL: https://issues.apache.org/jira/browse/TRAFODION-2844 > Project: Apache Trafodion > Issue Type: Bug > Components: dcs >Reporter: mashengchen >Assignee: mashengchen > > when mxosrvr down ,dcsserver will restart it , and if mxosrvr down a lot of > times in a period of time , there should reject the restart. if time between > 6 times age(default setting) and this time are a very long time, dcsserver > should allow the restart -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Commented] (TRAFODION-2892) "make all" print error because SP_EXPORT_LIB is empty
[ https://issues.apache.org/jira/browse/TRAFODION-2892?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16316796#comment-16316796 ] ASF GitHub Bot commented on TRAFODION-2892: --- Github user asfgit closed the pull request at: https://github.com/apache/trafodion/pull/1379 > "make all" print error because SP_EXPORT_LIB is empty > - > > Key: TRAFODION-2892 > URL: https://issues.apache.org/jira/browse/TRAFODION-2892 > Project: Apache Trafodion > Issue Type: Bug >Reporter: xiaozhong.wang > > core/seamonster/src/Makefile:59:-mkdir -p $(SP_EXPORT_LIB) > core/sql/nskgmake/executor/Makefile:134:EXTERN_LIBS := > $(SP_EXPORT_LIB)/libwrappersq.so > /usr/bin/gcc -fpic -Wno-long-long -fmessage-length=0 > -I/home/wangxz/code/trafodion/core/sqf/export/include libsm.c -c > ##(SEAMONSTER) > /usr/bin/gcc -fpic -Wno-long-long -fmessage-length=0 > -I/home/wangxz/code/trafodion/core/sqf/export/include verssm.c -c > ##(SEAMONSTER) > cd /home/wangxz/code/trafodion/core/sqf; /usr/local/bin/make genverhdr; > ##(Security) > make[3]: 进入目录“/home/wangxz/code/trafodion/core/sqf” ##(Security) > mkdir -p /home/wangxz/code/trafodion/core/sqf/export/include##(SEAMONSTER) > cp sm.h /home/wangxz/code/trafodion/core/sqf/export/include ##(SEAMONSTER) > mkdir -p##(SEAMONSTER) > mkdir: 缺少操作数 ##(SEAMONSTER) > 请尝试执行"mkdir --help"来获取更多信息。##(SEAMONSTER) > make[2]: > [Makefile:59:/home/wangxz/code/trafodion/core/sqf/export/lib64d/libsm.so] 错误 > 1 (已忽略)##(SEAMONSTER) > /usr/bin/gcc -fpic -Wno-long-long -fmessage-length=0 -Wall -Werror -shared \ > ##(SEAMONSTER) > -Wl,-soname,libsm.so -o > /home/wangxz/code/trafodion/core/sqf/export/lib64d/libsm.so libsm.o verssm.o > -lrt ##(SEAMONSTER) > /bin/cp -p scripts/sqcertgen /home/wangxz/code/trafodion/core/sqf/sql/scripts > ##(Security) > /bin/cp -p scripts/update_auth > /home/wangxz/code/trafodion/core/sqf/sql/scripts ##(Security) > Building Apache Trafodion Version 2.3.0 debug ##(Security) > ##(Security) > make[2]: 离开目录“/home/wangxz/code/trafodion/core/seamonster/src” > ##(SEAMONSTER) -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Commented] (TRAFODION-2887) extra $ sign in trafci Makefile
[ https://issues.apache.org/jira/browse/TRAFODION-2887?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16316787#comment-16316787 ] ASF GitHub Bot commented on TRAFODION-2887: --- Github user asfgit closed the pull request at: https://github.com/apache/trafodion/pull/1374 > extra $ sign in trafci Makefile > --- > > Key: TRAFODION-2887 > URL: https://issues.apache.org/jira/browse/TRAFODION-2887 > Project: Apache Trafodion > Issue Type: Bug >Reporter: liu ming >Assignee: liu ming >Priority: Minor > > a strange $ sign at the end of line in trafci Makefile > should remove it -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Updated] (TRAFODION-2883) Preliminary Trafodion Foundation Scalability Enhancements
[ https://issues.apache.org/jira/browse/TRAFODION-2883?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gonzalo E Correa updated TRAFODION-2883: Summary: Preliminary Trafodion Foundation Scalability Enhancements (was: Preliminary Trafodion Scalability Enhancements) > Preliminary Trafodion Foundation Scalability Enhancements > - > > Key: TRAFODION-2883 > URL: https://issues.apache.org/jira/browse/TRAFODION-2883 > Project: Apache Trafodion > Issue Type: Improvement > Components: dtm, foundation, installer >Affects Versions: 2.3 >Reporter: Gonzalo E Correa >Assignee: Gonzalo E Correa > Fix For: 2.3 > > > Initial changes required to increase the size of Trafodion instance from 256 > servers to 1024 servers. -- This message was sent by Atlassian JIRA (v6.4.14#64029)