/**
 * Copyright (c) Dell Inc., or its subsidiaries. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 */
package io.pravega.client.state;

import io.pravega.client.stream.EventWriterConfig;
import java.io.Serializable;
import lombok.Builder;
import lombok.Data;

/**
 * The configuration for a Consistent replicated state synchronizer.
 */
@Data
@Builder
public class SynchronizerConfig implements Serializable {

    private static final long serialVersionUID = 2L;
    EventWriterConfig eventWriterConfig;
    int readBufferSize;
    
    public static class SynchronizerConfigBuilder {
        private EventWriterConfig eventWriterConfig = EventWriterConfig.builder().enableConnectionPooling(true).build();
        private int readBufferSize = 256 * 1024;
    }
}

@@ -671,48 +671,489 @@
 2L;%0A
-    EventWriterConfig eventWriterConfig;
+%0A    /**%0A     * This writer config is used by the segment writers in the StateSyncrhonizer. The default values%0A     * enable connection pooling and ensures the background connection retry attempts continue until the StateSyncrhonizer%0A     * is closed.%0A     */%0A    EventWriterConfig eventWriterConfig;%0A    /**%0A     * This size is used to allocate buffer space for the bytes the reader in the StateSyncrhonizer reads from the%0A     * segment. The default buffer size is 256KB.%0A     */
 %0A   
@@ -1312,16 +1312,49 @@
 ilder().
+retryAttempts(Integer.MAX_VALUE).
 enableCo

Fix the default configuration for StateSyncrhonizer. (#5668)