Opush
  1. Opush
  2. OP-128

Cannot synchronize a collection containing more than 65535 items

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Normal Normal
    • Resolution: Fixed
    • Affects Version/s: 3.0.2
    • Fix Version/s: 3.0.3
    • Labels:
      None
    • Rank:
      6533

      Description

      Reproduction steps
      usera has 70 000 emails in its INBOX
      usera synchronize its INBOX with any device

      Current behavior
      usera cannot synchronize
      there is an exception in logs:

      10:39:40.043 [ERROR] {o.o.p.h.SyncHandler$$EnhancerByGuice$$35c023e1} [t160829/cSync/r141252/user@linagora.com] Batch statement cannot 
      contain more than 65535 statements.
      java.lang.IllegalStateException: Batch statement cannot contain more than 65535 statements.
              at com.datastax.driver.core.BatchStatement.add(BatchStatement.java:143) ~[cassandra-driver-core-2.1.2.jar:na]
              at org.obm.push.cassandra.dao.WindowingDaoCassandraImpl.addInsertStatementInBatch(WindowingDaoCassandraImpl.java:265) ~[push-dao-cassandra-3.0.2-rc2.jar:na]
              at org.obm.push.cassandra.dao.WindowingDaoCassandraImpl.insertWindowingChanges(WindowingDaoCassandraImpl.java:246) ~[push-dao-cassandra-3.0.2-rc2.jar:na]
              at org.obm.push.cassandra.dao.WindowingDaoCassandraImpl.pushPendingChanges(WindowingDaoCassandraImpl.java:115) ~[push-dao-cassandra-3.0.2-rc2.jar:na]
              at org.obm.breakdownduration.BreakdownDurationInterceptor.invoke(BreakdownDurationInterceptor.java:58) ~[breakdown-duration-3.0.1-alpha3.jar:na]
              at org.obm.push.mail.MailBackendImpl.startWindowing(MailBackendImpl.java:355) ~[push-mail-3.0.2-rc2.jar:na]
              at org.obm.push.mail.MailBackendImpl.getChanged(MailBackendImpl.java:338) ~[push-mail-3.0.2-rc2.jar:na]
              at org.obm.breakdownduration.BreakdownDurationInterceptor.invoke(BreakdownDurationInterceptor.java:58) ~[breakdown-duration-3.0.1-alpha3.jar:na]
              at org.obm.push.ContentsExporter.getChanged(ContentsExporter.java:79) ~[push-core-3.0.2-rc2.jar:na]
              at org.obm.push.handler.SyncHandler.retreiveServerModifications(SyncHandler.java:281) ~[push-core-3.0.2-rc2.jar:na]
              at org.obm.push.handler.SyncHandler.doUpdates(SyncHandler.java:264) ~[push-core-3.0.2-rc2.jar:na]
              at org.obm.push.handler.SyncHandler.handleDataSync(SyncHandler.java:509) ~[push-core-3.0.2-rc2.jar:na]
              at org.obm.push.handler.SyncHandler.computeSyncState(SyncHandler.java:485) ~[push-core-3.0.2-rc2.jar:na]
      

      Expected behavior
      usera synchronize all its emails
      there is no exception in logs

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Thomas HILAIRE
            Reporter:
            Thomas HILAIRE
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: