You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2022/04/11 09:34:22 UTC

[GitHub] [shardingsphere] sandynz opened a new issue, #16730: Cleanup replication slot for MogDB failed when scaling job is almost completed

sandynz opened a new issue, #16730:
URL: https://github.com/apache/shardingsphere/issues/16730

   ## Bug Report
   
   ### Which version of ShardingSphere did you use?
   master branch, commit 2a144cc4716c0601989b4bba6ae2f1225e09d7aa
   
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   ShardingSphere-Proxy, backend database is MogDB (based on openGauss)
   
   ### Expected behavior
   Replication slot could be removed.
   
   It need to support cleanup replication slot in proxy cluster.
   
   ### Actual behavior
   Exception thrown:
   ```
   [WARN ] 2022-04-11 15:10:55.162 [_finished_check_Worker-1] o.a.s.d.p.s.r.RuleAlteredJobPreparer - Scaling job destroying failed
   org.opengauss.util.PSQLException: [127.0.0.1:55477/127.0.0.1:15432] ERROR: replication slot "sharding_scaling_scaling_ds_0" is already active
   	at org.opengauss.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2820)
   	at org.opengauss.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2550)
   	at org.opengauss.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:329)
   	at org.opengauss.jdbc.PgStatement.executeInternal(PgStatement.java:453)
   	at org.opengauss.jdbc.PgStatement.execute(PgStatement.java:377)
   	at org.opengauss.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:149)
   	at org.opengauss.jdbc.PgCallableStatement.executeWithFlags(PgCallableStatement.java:79)
   	at org.opengauss.jdbc.PgPreparedStatement.execute(PgPreparedStatement.java:138)
   	at com.zaxxer.hikari.pool.ProxyPreparedStatement.execute(ProxyPreparedStatement.java:44)
   	at com.zaxxer.hikari.pool.HikariProxyCallableStatement.execute(HikariProxyCallableStatement.java)
   	at org.apache.shardingsphere.data.pipeline.opengauss.ingest.wal.OpenGaussLogicalReplication.dropSlot(OpenGaussLogicalReplication.java:107)
   	at org.apache.shardingsphere.data.pipeline.opengauss.ingest.OpenGaussPositionInitializer.destroy(OpenGaussPositionInitializer.java:60)
   	at org.apache.shardingsphere.data.pipeline.scenario.rulealtered.RuleAlteredJobPreparer.cleanup(RuleAlteredJobPreparer.java:162)
   	at org.apache.shardingsphere.data.pipeline.core.api.impl.RuleAlteredJobAPIImpl.switchClusterConfiguration(RuleAlteredJobAPIImpl.java:373)
   	at org.apache.shardingsphere.data.pipeline.core.job.FinishedCheckJob.switchClusterConfiguration(FinishedCheckJob.java:126)
   	at org.apache.shardingsphere.data.pipeline.core.job.FinishedCheckJob.execute(FinishedCheckJob.java:86)
   ```
   
   ### Reason analyze (If you can)
   `RuleAlteredJobAPIImpl.switchClusterConfiguration` doesn't perform accurately:
   ```
           // TODO clean up should be done after the task is complete.
           try {
               TimeUnit.SECONDS.sleep(1);
           } catch (final InterruptedException ex) {
               log.error(ex.getMessage());
           }
   ```
   
   ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.
   
   ### Example codes for reproduce this issue (such as a github link).
   


-- 
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: notifications-unsubscribe@shardingsphere.apache.org.apache.org

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


[GitHub] [shardingsphere] tristaZero closed issue #16730: Cleanup replication slot for MogDB failed when scaling job is almost completed

Posted by GitBox <gi...@apache.org>.
tristaZero closed issue #16730: Cleanup replication slot for MogDB failed when scaling job is almost completed
URL: https://github.com/apache/shardingsphere/issues/16730


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

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